Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashansa-K committed Sep 10, 2024
1 parent c22fb6a commit cf877d9
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tests/integration/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4579,8 +4579,21 @@ func Test_Sync_ConsumerGroupsScopedPluginsKonnect(t *testing.T) {
client, err := getTestClient()
require.NoError(t, err)

// ignoreFields := []cmp.Option{
// cmpopts.IgnoreFields(kong.Plugin{}, "Config"),

// }

ignoreFields := []cmp.Option{
cmpopts.IgnoreFields(kong.Plugin{}, "Config"),
cmp.FilterValues(func(x, y interface{}) bool {
// Apply this filtering when comparing maps
mapX, okX := x.(map[string]interface{})

Check failure on line 4590 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / lint

mapX declared and not used

Check failure on line 4590 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration (kong:2.8)

mapX declared and not used

Check failure on line 4590 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration

mapX declared and not used

Check failure on line 4590 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration (kong:3.4)

mapX declared and not used

Check failure on line 4590 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration (kong:3.5)

mapX declared and not used

Check failure on line 4590 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration (kong/kong-gateway:2.8)

mapX declared and not used

Check failure on line 4590 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration (kong/kong-gateway:3.4)

mapX declared and not used

Check failure on line 4590 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration (kong:3.6)

mapX declared and not used

Check failure on line 4590 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration (kong/kong-gateway:3.5)

mapX declared and not used

Check failure on line 4590 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration (kong:3.7)

mapX declared and not used

Check failure on line 4590 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration (kong/kong:master)

mapX declared and not used

Check failure on line 4590 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration (kong/kong-gateway:3.7)

mapX declared and not used
mapY, okY := y.(map[string]interface{})

Check failure on line 4591 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / lint

mapY declared and not used (typecheck)

Check failure on line 4591 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration (kong:2.8)

mapY declared and not used

Check failure on line 4591 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration

mapY declared and not used

Check failure on line 4591 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration (kong:3.4)

mapY declared and not used

Check failure on line 4591 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration (kong:3.5)

mapY declared and not used

Check failure on line 4591 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration (kong/kong-gateway:2.8)

mapY declared and not used

Check failure on line 4591 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration (kong/kong-gateway:3.4)

mapY declared and not used

Check failure on line 4591 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration (kong:3.6)

mapY declared and not used

Check failure on line 4591 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration (kong/kong-gateway:3.5)

mapY declared and not used

Check failure on line 4591 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration (kong:3.7)

mapY declared and not used

Check failure on line 4591 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration (kong/kong:master)

mapY declared and not used

Check failure on line 4591 in tests/integration/sync_test.go

View workflow job for this annotation

GitHub Actions / integration (kong/kong-gateway:3.7)

mapY declared and not used
return okX && okY
}, cmpopts.IgnoreMapEntries(func(key string, value interface{}) bool {
// Ignore the "redis" key in all comparisons
return key == "redis"
})),
}

tests := []struct {
Expand Down

0 comments on commit cf877d9

Please sign in to comment.