@@ -726,7 +726,7 @@ def test_update_service_with_defaults_name(self):
726
726
727
727
task_tmpl = docker .types .TaskTemplate (container_spec , force_update = 10 )
728
728
self ._update_service (
729
- svc_id , name , version_index , task_tmpl , use_current_spec = True
729
+ svc_id , name , version_index , task_tmpl , fetch_current_spec = True
730
730
)
731
731
svc_info = self .client .inspect_service (svc_id )
732
732
new_index = svc_info ['Version' ]['Index' ]
@@ -753,7 +753,7 @@ def test_update_service_with_defaults_labels(self):
753
753
task_tmpl = docker .types .TaskTemplate (container_spec , force_update = 10 )
754
754
self ._update_service (
755
755
svc_id , name , version_index , task_tmpl , name = name ,
756
- use_current_spec = True
756
+ fetch_current_spec = True
757
757
)
758
758
svc_info = self .client .inspect_service (svc_id )
759
759
new_index = svc_info ['Version' ]['Index' ]
@@ -781,7 +781,7 @@ def test_update_service_with_defaults_mode(self):
781
781
782
782
self ._update_service (
783
783
svc_id , name , version_index , labels = {'force' : 'update' },
784
- use_current_spec = True
784
+ fetch_current_spec = True
785
785
)
786
786
svc_info = self .client .inspect_service (svc_id )
787
787
new_index = svc_info ['Version' ]['Index' ]
@@ -811,7 +811,7 @@ def test_update_service_with_defaults_container_labels(self):
811
811
812
812
self ._update_service (
813
813
svc_id , name , version_index , labels = {'force' : 'update' },
814
- use_current_spec = True
814
+ fetch_current_spec = True
815
815
)
816
816
svc_info = self .client .inspect_service (svc_id )
817
817
new_index = svc_info ['Version' ]['Index' ]
@@ -827,7 +827,7 @@ def test_update_service_with_defaults_container_labels(self):
827
827
)
828
828
task_tmpl = docker .types .TaskTemplate (container_spec )
829
829
self ._update_service (
830
- svc_id , name , new_index , task_tmpl , use_current_spec = True
830
+ svc_id , name , new_index , task_tmpl , fetch_current_spec = True
831
831
)
832
832
svc_info = self .client .inspect_service (svc_id )
833
833
newer_index = svc_info ['Version' ]['Index' ]
@@ -858,7 +858,7 @@ def test_update_service_with_defaults_update_config(self):
858
858
859
859
self ._update_service (
860
860
svc_id , name , version_index , labels = {'force' : 'update' },
861
- use_current_spec = True
861
+ fetch_current_spec = True
862
862
)
863
863
svc_info = self .client .inspect_service (svc_id )
864
864
new_index = svc_info ['Version' ]['Index' ]
@@ -896,7 +896,7 @@ def test_update_service_with_defaults_networks(self):
896
896
897
897
self ._update_service (
898
898
svc_id , name , version_index , labels = {'force' : 'update' },
899
- use_current_spec = True
899
+ fetch_current_spec = True
900
900
)
901
901
svc_info = self .client .inspect_service (svc_id )
902
902
new_index = svc_info ['Version' ]['Index' ]
@@ -908,7 +908,7 @@ def test_update_service_with_defaults_networks(self):
908
908
909
909
self ._update_service (
910
910
svc_id , name , new_index , networks = [net1 ['Id' ]],
911
- use_current_spec = True
911
+ fetch_current_spec = True
912
912
)
913
913
svc_info = self .client .inspect_service (svc_id )
914
914
assert 'Networks' in svc_info ['Spec' ]['TaskTemplate' ]
@@ -951,7 +951,7 @@ def test_update_service_with_defaults_endpoint_spec(self):
951
951
952
952
self ._update_service (
953
953
svc_id , name , version_index , labels = {'force' : 'update' },
954
- use_current_spec = True
954
+ fetch_current_spec = True
955
955
)
956
956
svc_info = self .client .inspect_service (svc_id )
957
957
new_index = svc_info ['Version' ]['Index' ]
@@ -1003,7 +1003,7 @@ def test_update_service_remove_healthcheck(self):
1003
1003
version_index = svc_info ['Version' ]['Index' ]
1004
1004
1005
1005
self ._update_service (
1006
- svc_id , name , version_index , task_tmpl , use_current_spec = True
1006
+ svc_id , name , version_index , task_tmpl , fetch_current_spec = True
1007
1007
)
1008
1008
svc_info = self .client .inspect_service (svc_id )
1009
1009
new_index = svc_info ['Version' ]['Index' ]
@@ -1030,7 +1030,7 @@ def test_update_service_remove_labels(self):
1030
1030
version_index = svc_info ['Version' ]['Index' ]
1031
1031
1032
1032
self ._update_service (
1033
- svc_id , name , version_index , labels = {}, use_current_spec = True
1033
+ svc_id , name , version_index , labels = {}, fetch_current_spec = True
1034
1034
)
1035
1035
svc_info = self .client .inspect_service (svc_id )
1036
1036
new_index = svc_info ['Version' ]['Index' ]
@@ -1061,7 +1061,7 @@ def test_update_service_remove_container_labels(self):
1061
1061
)
1062
1062
task_tmpl = docker .types .TaskTemplate (container_spec )
1063
1063
self ._update_service (
1064
- svc_id , name , version_index , task_tmpl , use_current_spec = True
1064
+ svc_id , name , version_index , task_tmpl , fetch_current_spec = True
1065
1065
)
1066
1066
svc_info = self .client .inspect_service (svc_id )
1067
1067
new_index = svc_info ['Version' ]['Index' ]
@@ -1100,7 +1100,7 @@ def test_update_service_with_network_change(self):
1100
1100
task_tmpl = docker .types .TaskTemplate (container_spec )
1101
1101
self ._update_service (
1102
1102
svc_id , name , version_index , task_tmpl , name = name ,
1103
- networks = [net2 ['Id' ]], use_current_spec = True
1103
+ networks = [net2 ['Id' ]], fetch_current_spec = True
1104
1104
)
1105
1105
svc_info = self .client .inspect_service (svc_id )
1106
1106
task_template = svc_info ['Spec' ]['TaskTemplate' ]
@@ -1114,7 +1114,7 @@ def test_update_service_with_network_change(self):
1114
1114
1115
1115
self ._update_service (
1116
1116
svc_id , name , new_index , name = name , networks = [net1 ['Id' ]],
1117
- use_current_spec = True
1117
+ fetch_current_spec = True
1118
1118
)
1119
1119
svc_info = self .client .inspect_service (svc_id )
1120
1120
task_template = svc_info ['Spec' ]['TaskTemplate' ]
@@ -1136,7 +1136,7 @@ def test_update_service_with_network_change(self):
1136
1136
)
1137
1137
self ._update_service (
1138
1138
svc_id , name , new_index , task_tmpl , name = name ,
1139
- use_current_spec = True
1139
+ fetch_current_spec = True
1140
1140
)
1141
1141
svc_info = self .client .inspect_service (svc_id )
1142
1142
task_template = svc_info ['Spec' ]['TaskTemplate' ]
0 commit comments