Commit b520fb8
committed
test/integration: don't check for deprecated Networks field
These tests depended on the deprecated Spec.Networks field, which
is no longer part of current API versions, causing the test to
fail;
=================================== FAILURES ===================================
_____________ ServiceTest.test_create_service_with_custom_networks _____________
tests/integration/api_service_test.py:379: in test_create_service_with_custom_networks
assert 'Networks' in svc_info['Spec']
E AssertionError: assert 'Networks' in {'Labels': {}, 'Mode': {'Replicated': {'Replicas': 1}}, 'Name': 'dockerpytest_a538894175d07404', 'TaskTemplate': {'Con...pec': {'Command': ['true'], 'Image': 'alpine:3.10', 'Isolation': 'default'}, 'ForceUpdate': 0, 'Runtime': 'container'}}
____________ ServiceTest.test_update_service_with_defaults_networks ____________
tests/integration/api_service_test.py:1128: in test_update_service_with_defaults_networks
assert 'Networks' in svc_info['Spec']
E AssertionError: assert 'Networks' in {'Labels': {}, 'Mode': {'Replicated': {'Replicas': 1}}, 'Name': 'dockerpytest_6d8e30f359c0f5e', 'TaskTemplate': {'Cont...pec': {'Command': ['true'], 'Image': 'alpine:3.10', 'Isolation': 'default'}, 'ForceUpdate': 0, 'Runtime': 'container'}}
_____________ ServiceTest.test_update_service_with_network_change ______________
tests/integration/api_service_test.py:1333: in test_update_service_with_network_change
assert 'Networks' in svc_info['Spec']
E AssertionError: assert 'Networks' in {'Labels': {}, 'Mode': {'Replicated': {'Replicas': 1}}, 'Name': 'dockerpytest_d4e23667cdbaf159', 'TaskTemplate': {'Con... {'Command': ['echo', 'hello'], 'Image': 'busybox', 'Isolation': 'default'}, 'ForceUpdate': 0, 'Runtime': 'container'}}
------- generated xml file: /src/bundles/test-docker-py/junit-report.xml -------
=========================== short test summary info ============================
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>1 parent 824d3ab commit b520fb8
1 file changed
+35
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
| 370 | + | |
| 371 | + | |
374 | 372 | | |
375 | 373 | | |
376 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
377 | 379 | | |
378 | | - | |
379 | | - | |
| 380 | + | |
| 381 | + | |
380 | 382 | | |
381 | 383 | | |
382 | 384 | | |
| |||
1116 | 1118 | | |
1117 | 1119 | | |
1118 | 1120 | | |
1119 | | - | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
| 1121 | + | |
| 1122 | + | |
1123 | 1123 | | |
1124 | 1124 | | |
1125 | 1125 | | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
1126 | 1130 | | |
1127 | | - | |
1128 | | - | |
| 1131 | + | |
| 1132 | + | |
1129 | 1133 | | |
1130 | 1134 | | |
1131 | 1135 | | |
| |||
1143 | 1147 | | |
1144 | 1148 | | |
1145 | 1149 | | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
1146 | 1153 | | |
1147 | | - | |
| 1154 | + | |
1148 | 1155 | | |
1149 | 1156 | | |
1150 | 1157 | | |
| |||
1313 | 1320 | | |
1314 | 1321 | | |
1315 | 1322 | | |
1316 | | - | |
1317 | 1323 | | |
1318 | 1324 | | |
1319 | 1325 | | |
| |||
1324 | 1330 | | |
1325 | 1331 | | |
1326 | 1332 | | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
1327 | 1336 | | |
1328 | 1337 | | |
1329 | | - | |
| 1338 | + | |
1330 | 1339 | | |
1331 | 1340 | | |
1332 | | - | |
1333 | | - | |
1334 | | - | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
1335 | 1344 | | |
1336 | 1345 | | |
1337 | 1346 | | |
1338 | 1347 | | |
1339 | | - | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
1340 | 1351 | | |
1341 | 1352 | | |
1342 | | - | |
| 1353 | + | |
1343 | 1354 | | |
1344 | 1355 | | |
1345 | 1356 | | |
| |||
1351 | 1362 | | |
1352 | 1363 | | |
1353 | 1364 | | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
1354 | 1368 | | |
1355 | | - | |
| 1369 | + | |
1356 | 1370 | | |
1357 | 1371 | | |
1358 | 1372 | | |
| |||
0 commit comments