Skip to content

Commit ff41415

Browse files
committed
tests: fixed konnect plugin-partial default lookups test
1 parent 94aa2be commit ff41415

File tree

1 file changed

+25
-36
lines changed

1 file changed

+25
-36
lines changed

tests/integration/sync_test.go

Lines changed: 25 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -10269,28 +10269,17 @@ func Test_Sync_Partials_Tagging_Konnect(t *testing.T) {
1026910269
Name: kong.String("redis-ee-common"),
1027010270
Type: kong.String("redis-ee"),
1027110271
Config: kong.Configuration{
10272-
"cloud_authentication": nil,
1027310272
"cluster_max_redirections": float64(5),
10274-
"cluster_nodes": nil,
1027510273
"connect_timeout": float64(2000),
1027610274
"connection_is_proxied": bool(false),
1027710275
"database": float64(0),
1027810276
"host": string("127.0.0.1"),
10279-
"keepalive_backlog": nil,
1028010277
"keepalive_pool_size": float64(256),
10281-
"password": nil,
1028210278
"port": float64(6379),
1028310279
"read_timeout": float64(3001),
1028410280
"send_timeout": float64(2004),
10285-
"sentinel_master": nil,
10286-
"sentinel_nodes": nil,
10287-
"sentinel_password": nil,
10288-
"sentinel_role": nil,
10289-
"sentinel_username": nil,
10290-
"server_name": nil,
1029110281
"ssl": bool(false),
1029210282
"ssl_verify": bool(false),
10293-
"username": nil,
1029410283
},
1029510284
Tags: kong.StringSlice("redis-partials"),
1029610285
},
@@ -10299,16 +10288,12 @@ func Test_Sync_Partials_Tagging_Konnect(t *testing.T) {
1029910288
Name: kong.String("redis-ee-sentinel"),
1030010289
Type: kong.String("redis-ee"),
1030110290
Config: kong.Configuration{
10302-
"cloud_authentication": nil,
1030310291
"cluster_max_redirections": float64(5),
10304-
"cluster_nodes": nil,
1030510292
"connect_timeout": float64(2000),
1030610293
"connection_is_proxied": bool(false),
1030710294
"database": float64(0),
1030810295
"host": string("127.0.0.1"),
10309-
"keepalive_backlog": nil,
1031010296
"keepalive_pool_size": float64(256),
10311-
"password": nil,
1031210297
"port": float64(6379),
1031310298
"read_timeout": float64(2000),
1031410299
"send_timeout": float64(2000),
@@ -10318,13 +10303,9 @@ func Test_Sync_Partials_Tagging_Konnect(t *testing.T) {
1031810303
map[string]any{"host": string("redis-node-1"), "port": float64(26379)},
1031910304
map[string]any{"host": string("redis-node-2"), "port": float64(26379)},
1032010305
},
10321-
"sentinel_password": nil,
10322-
"sentinel_role": string("master"),
10323-
"sentinel_username": nil,
10324-
"server_name": nil,
10325-
"ssl": bool(false),
10326-
"ssl_verify": bool(false),
10327-
"username": nil,
10306+
"sentinel_role": string("master"),
10307+
"ssl": bool(false),
10308+
"ssl_verify": bool(false),
1032810309
},
1032910310
Tags: kong.StringSlice("redis-partials"),
1033010311
},
@@ -10364,19 +10345,23 @@ func Test_Sync_Partials_Tagging_Konnect(t *testing.T) {
1036410345
"lock_dictionary_name": string("kong_locks"),
1036510346
"namespace": string("test-ns"),
1036610347
"path": nil,
10367-
"retry_after_jitter_max": float64(0),
10368-
"strategy": string("local"),
10369-
"sync_rate": float64(-1),
10370-
"throttling": nil,
10371-
"window_size": []any{float64(60)},
10372-
"window_type": string("fixed"),
10348+
"redis": map[string]any{
10349+
"redis_proxy_type": nil,
10350+
},
10351+
"retry_after_jitter_max": float64(0),
10352+
"strategy": string("local"),
10353+
"sync_rate": float64(-1),
10354+
"throttling": nil,
10355+
"window_size": []any{float64(60)},
10356+
"window_type": string("fixed"),
1037310357
},
1037410358
Enabled: kong.Bool(true),
1037510359
Protocols: kong.StringSlice("grpc", "grpcs", "http", "https"),
1037610360
Partials: []*kong.PartialLink{
1037710361
{
1037810362
Partial: &kong.Partial{
10379-
ID: kong.String("13dc230d-d65e-439a-9f05-9fd71abfee4d"),
10363+
ID: kong.String("13dc230d-d65e-439a-9f05-9fd71abfee4d"),
10364+
Name: kong.String("redis-ee-common"),
1038010365
},
1038110366
Path: kong.String("config.redis"),
1038210367
},
@@ -10403,20 +10388,24 @@ func Test_Sync_Partials_Tagging_Konnect(t *testing.T) {
1040310388
"lock_dictionary_name": string("kong_locks"),
1040410389
"namespace": string("testns"),
1040510390
"path": nil,
10406-
"retry_after_jitter_max": float64(0),
10407-
"strategy": string("redis"),
10408-
"sync_rate": float64(2),
10409-
"throttling": nil,
10410-
"window_size": []any{float64(30)},
10411-
"window_type": string("sliding"),
10391+
"redis": map[string]any{
10392+
"redis_proxy_type": nil,
10393+
},
10394+
"retry_after_jitter_max": float64(0),
10395+
"strategy": string("redis"),
10396+
"sync_rate": float64(2),
10397+
"throttling": nil,
10398+
"window_size": []any{float64(30)},
10399+
"window_type": string("sliding"),
1041210400
},
1041310401
Enabled: kong.Bool(true),
1041410402
Protocols: kong.StringSlice("grpc", "grpcs", "http", "https"),
1041510403
Tags: kong.StringSlice("api:partials-test-1"),
1041610404
Partials: []*kong.PartialLink{
1041710405
{
1041810406
Partial: &kong.Partial{
10419-
ID: kong.String("b426adc7-7f11-4cda-a862-112ddabae9ef"),
10407+
ID: kong.String("b426adc7-7f11-4cda-a862-112ddabae9ef"),
10408+
Name: kong.String("redis-ee-sentinel"),
1042010409
},
1042110410
Path: kong.String("config.redis"),
1042210411
},

0 commit comments

Comments
 (0)