Skip to content

Commit

Permalink
chore: bump go-database-reconciler dependency
Browse files Browse the repository at this point in the history
- make lookups for consumer-group's consumers more performant
- properly expand ipv6 targets avoid misleading diffs
  • Loading branch information
GGabriele committed Jul 4, 2024
1 parent 4fbb49b commit 927f88d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/fatih/color v1.15.0
github.com/google/go-cmp v0.6.0
github.com/kong/go-apiops v0.1.33
github.com/kong/go-database-reconciler v1.12.2
github.com/kong/go-database-reconciler v1.13.0
github.com/kong/go-kong v0.55.0
github.com/mitchellh/go-homedir v1.1.0
github.com/spf13/cobra v1.8.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ github.com/klauspost/cpuid/v2 v2.2.5 h1:0E5MSMDEoAulmXNFquVs//DdoomxaoTY1kUhbc/q
github.com/klauspost/cpuid/v2 v2.2.5/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws=
github.com/kong/go-apiops v0.1.33 h1:Y7IVksHPdHcXM6C+gPc25JiY4KRgYDAOn/jTx3sDU1k=
github.com/kong/go-apiops v0.1.33/go.mod h1:o8lzBtbCLSXCMKzzqR8dcBhB7yzPs+9csAMZ1T1hsL0=
github.com/kong/go-database-reconciler v1.12.2 h1:bnlvLCgP4OjgJOK5JYqq1MlIJ2F7erXERMj8n/LNU8M=
github.com/kong/go-database-reconciler v1.12.2/go.mod h1:bUPJkoeW//x4hzNxewQMoIkeoDzJzunI0stDMYJ3BkU=
github.com/kong/go-database-reconciler v1.13.0 h1:6gRGeLDep0mvzT/5fCQY5waQp0F/T9MsyZ9fJmJq+Cc=
github.com/kong/go-database-reconciler v1.13.0/go.mod h1:bUPJkoeW//x4hzNxewQMoIkeoDzJzunI0stDMYJ3BkU=
github.com/kong/go-kong v0.55.0 h1:lonKRzsDGk12dh9E+y+pWnY2ThXhKuMHjzBHSpCvQLw=
github.com/kong/go-kong v0.55.0/go.mod h1:i1cMgTu6RYPHSyMpviShddRnc+DML/vlpgKC00hr8kU=
github.com/kong/go-slugify v1.0.0 h1:vCFAyf2sdoSlBtLcrmDWUFn0ohlpKiKvQfXZkO5vSKY=
Expand Down
17 changes: 17 additions & 0 deletions tests/integration/diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -765,3 +765,20 @@ func Test_Diff_NoDiffUnorderedArray(t *testing.T) {
assert.Equal(t, emptyOutput, out)
reset(t)
}

// test scope:
// - 3.5
func Test_Diff_NoDiffCompressedTarget(t *testing.T) {
runWhen(t, "kong", ">=3.5.0")
setup(t)

// test that the diff command does not return any changes when
// target is a compressed IPv6.
stateFile := "testdata/diff/005-no-diff-target/kong.yaml"
assert.NoError(t, sync(stateFile))

out, err := diff(stateFile)
assert.NoError(t, err)
assert.Equal(t, emptyOutput, out)
reset(t)
}
6 changes: 6 additions & 0 deletions tests/integration/testdata/diff/005-no-diff-target/kong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
_format_version: "3.0"
upstreams:
- name: upstream1
algorithm: round-robin
targets:
- target: "::1"

0 comments on commit 927f88d

Please sign in to comment.