@@ -32,7 +32,8 @@ def test_bulk_sync_no_change(client):
32
32
"dataPlane" : "data-plane-1" ,
33
33
"host" : "abc.api.gov.bc.ca" ,
34
34
"sessionCookieEnabled" : True ,
35
- "dataClass" : None
35
+ "dataClass" : None ,
36
+ "sslCertificateId" : "default"
36
37
}]
37
38
response = client .post ('/namespaces/examplens/routes/sync' , json = data )
38
39
assert response .status_code == 200
@@ -56,6 +57,7 @@ def test_bulk_sync_no_change(client):
56
57
aps-ssl: "data-api.tls"
57
58
aps-data-plane: "data-plane-1"
58
59
aps-template-version: "v1"
60
+
59
61
spec:
60
62
host: abc.api.gov.bc.ca
61
63
port:
@@ -109,7 +111,8 @@ def test_bulk_sync_new_route_session_cookie(client):
109
111
"dataPlane" : "data-plane-1" ,
110
112
"host" : "abc.api.gov.bc.ca" ,
111
113
"sessionCookieEnabled" : True ,
112
- "dataClass" : None
114
+ "dataClass" : None ,
115
+ "sslCertificateId" : "default"
113
116
}]
114
117
response = client .post ('/namespaces/examplens/routes/sync' , json = data )
115
118
assert response .status_code == 200
@@ -154,7 +157,8 @@ def test_bulk_sync_change_session_cookie(client):
154
157
"dataPlane" : "data-plane-1" ,
155
158
"host" : "abc.api.gov.bc.ca" ,
156
159
"sessionCookieEnabled" : True ,
157
- "dataClass" : None
160
+ "dataClass" : None ,
161
+ "sslCertificateId" : "default"
158
162
}]
159
163
response = client .post ('/namespaces/examplens/routes/sync' , json = data )
160
164
assert response .status_code == 200
@@ -182,6 +186,7 @@ def test_bulk_sync_change_session_cookie(client):
182
186
aps-ssl: "data-api.tls"
183
187
aps-data-plane: "data-plane-1"
184
188
aps-template-version: "v2"
189
+
185
190
spec:
186
191
host: abc.api.gov.bc.ca
187
192
port:
@@ -236,7 +241,8 @@ def test_bulk_sync_new_route_data_class(client):
236
241
"dataPlane" : "data-plane-1" ,
237
242
"host" : "abc.api.gov.bc.ca" ,
238
243
"sessionCookieEnabled" : False ,
239
- "dataClass" : "high"
244
+ "dataClass" : "high" ,
245
+ "sslCertificateId" : "default"
240
246
}]
241
247
response = client .post ('/namespaces/examplens/routes/sync' , json = data )
242
248
assert response .status_code == 200
@@ -281,7 +287,8 @@ def test_bulk_sync_add_data_class(client):
281
287
"dataPlane" : "data-plane-1" ,
282
288
"host" : "abc.api.gov.bc.ca" ,
283
289
"sessionCookieEnabled" : False ,
284
- "dataClass" : "high"
290
+ "dataClass" : "high" ,
291
+ "sslCertificateId" : "default"
285
292
}]
286
293
response = client .post ('/namespaces/examplens/routes/sync' , json = data )
287
294
assert response .status_code == 200
@@ -328,7 +335,8 @@ def test_bulk_sync_remove_data_class(client):
328
335
"dataPlane" : "data-plane-1" ,
329
336
"host" : "abc.api.gov.bc.ca" ,
330
337
"sessionCookieEnabled" : True ,
331
- "dataClass" : None
338
+ "dataClass" : None ,
339
+ "sslCertificateId" : "default"
332
340
}]
333
341
response = client .post ('/namespaces/examplens/routes/sync' , json = data )
334
342
assert response .status_code == 200
@@ -375,7 +383,8 @@ def test_bulk_sync_change_data_class(client):
375
383
"dataPlane" : "data-plane-1" ,
376
384
"host" : "abc.api.gov.bc.ca" ,
377
385
"sessionCookieEnabled" : False ,
378
- "dataClass" : "high"
386
+ "dataClass" : "high" ,
387
+ "sslCertificateId" : "default"
379
388
}]
380
389
response = client .post ('/namespaces/examplens/routes/sync' , json = data )
381
390
assert response .status_code == 200
0 commit comments