@@ -98,7 +98,7 @@ def setUp(self):
9898 _compute_quota_set .QuotaSet
9999 )
100100 # the defaults are global hence use of return_value here
101- self .compute_sdk_client .get_quota_set_defaults .return_value = (
101+ self .compute_client .get_quota_set_defaults .return_value = (
102102 self .default_compute_quotas
103103 )
104104 self .compute_reference_data = (
@@ -164,7 +164,7 @@ def setUp(self):
164164
165165 def test_quota_list_compute (self ):
166166 # Two projects with non-default quotas
167- self .compute_sdk_client .get_quota_set .side_effect = self .compute_quotas
167+ self .compute_client .get_quota_set .side_effect = self .compute_quotas
168168
169169 arglist = [
170170 '--compute' ,
@@ -183,7 +183,7 @@ def test_quota_list_compute(self):
183183
184184 def test_quota_list_compute_default (self ):
185185 # One of the projects is at defaults
186- self .compute_sdk_client .get_quota_set .side_effect = [
186+ self .compute_client .get_quota_set .side_effect = [
187187 self .compute_quotas [0 ],
188188 self .default_compute_quotas ,
189189 ]
@@ -205,7 +205,7 @@ def test_quota_list_compute_default(self):
205205
206206 def test_quota_list_compute_project_not_found (self ):
207207 # Make one of the projects disappear
208- self .compute_sdk_client .get_quota_set .side_effect = [
208+ self .compute_client .get_quota_set .side_effect = [
209209 self .compute_quotas [0 ],
210210 sdk_exceptions .NotFoundException ("NotFound" ),
211211 ]
@@ -227,7 +227,7 @@ def test_quota_list_compute_project_not_found(self):
227227
228228 def test_quota_list_compute_project_inaccessible (self ):
229229 # Make one of the projects inaccessible
230- self .compute_sdk_client .get_quota_set .side_effect = [
230+ self .compute_client .get_quota_set .side_effect = [
231231 self .compute_quotas [0 ],
232232 sdk_exceptions .ForbiddenException ("Forbidden" ),
233233 ]
@@ -249,7 +249,7 @@ def test_quota_list_compute_project_inaccessible(self):
249249
250250 def test_quota_list_compute_server_error (self ):
251251 # Make the server "break"
252- self .compute_sdk_client .get_quota_set .side_effect = (
252+ self .compute_client .get_quota_set .side_effect = (
253253 sdk_exceptions .HttpException ("Not implemented?" )
254254 )
255255
@@ -470,7 +470,7 @@ def test_quota_set(self):
470470 'server_group_members' : servgroup_members_num ,
471471 }
472472
473- self .compute_sdk_client .update_quota_set .assert_called_once_with (
473+ self .compute_client .update_quota_set .assert_called_once_with (
474474 self .projects [0 ].id , ** kwargs
475475 )
476476 self .assertIsNone (result )
@@ -744,7 +744,7 @@ def test_quota_set_with_class(self):
744744 'volumes' : volumes ,
745745 }
746746
747- self .compute_sdk_client .update_quota_class_set .assert_called_with (
747+ self .compute_client .update_quota_class_set .assert_called_with (
748748 self .projects [0 ].name , ** kwargs_compute
749749 )
750750 self .volume_sdk_client .update_quota_class_set .assert_called_with (
@@ -842,7 +842,7 @@ def test_quota_set_default(self):
842842 'volumes' : volumes ,
843843 }
844844
845- self .compute_sdk_client .update_quota_class_set .assert_called_with (
845+ self .compute_client .update_quota_class_set .assert_called_with (
846846 'default' , ** kwargs_compute
847847 )
848848 self .volume_sdk_client .update_quota_class_set .assert_called_with (
@@ -899,7 +899,7 @@ def test_quota_set_with_force(self):
899899 'subnet' : subnet ,
900900 'force' : True ,
901901 }
902- self .compute_sdk_client .update_quota_set .assert_called_once_with (
902+ self .compute_client .update_quota_set .assert_called_once_with (
903903 self .projects [0 ].id , ** kwargs_compute
904904 )
905905 self .volume_sdk_client .update_quota_set .assert_called_once_with (
@@ -942,7 +942,7 @@ def test_quota_set_with_no_force(self):
942942 'subnet' : 10 ,
943943 'check_limit' : True ,
944944 }
945- self .compute_sdk_client .update_quota_set .assert_called_once_with (
945+ self .compute_client .update_quota_set .assert_called_once_with (
946946 self .projects [0 ].id , ** kwargs_compute
947947 )
948948 self .volume_sdk_client .update_quota_set .assert_called_once_with (
@@ -977,13 +977,13 @@ def setUp(self):
977977
978978 self .identity_sdk_client .find_project .return_value = self .projects [0 ]
979979
980- self .compute_sdk_client .get_quota_set .return_value = (
980+ self .compute_client .get_quota_set .return_value = (
981981 sdk_fakes .generate_fake_resource (_compute_quota_set .QuotaSet )
982982 )
983983 self .default_compute_quotas = sdk_fakes .generate_fake_resource (
984984 _compute_quota_set .QuotaSet
985985 )
986- self .compute_sdk_client .get_quota_set_defaults .return_value = (
986+ self .compute_client .get_quota_set_defaults .return_value = (
987987 self .default_compute_quotas
988988 )
989989
@@ -1027,7 +1027,7 @@ def test_quota_show(self):
10271027
10281028 self .cmd .take_action (parsed_args )
10291029
1030- self .compute_sdk_client .get_quota_set .assert_called_once_with (
1030+ self .compute_client .get_quota_set .assert_called_once_with (
10311031 self .projects [0 ].id ,
10321032 usage = False ,
10331033 )
@@ -1054,7 +1054,7 @@ def test_quota_show__with_compute(self):
10541054
10551055 self .cmd .take_action (parsed_args )
10561056
1057- self .compute_sdk_client .get_quota_set .assert_called_once_with (
1057+ self .compute_client .get_quota_set .assert_called_once_with (
10581058 self .projects [0 ].id ,
10591059 usage = False ,
10601060 )
@@ -1074,7 +1074,7 @@ def test_quota_show__with_volume(self):
10741074
10751075 self .cmd .take_action (parsed_args )
10761076
1077- self .compute_sdk_client .get_quota_set .assert_not_called ()
1077+ self .compute_client .get_quota_set .assert_not_called ()
10781078 self .volume_sdk_client .get_quota_set .assert_called_once_with (
10791079 self .projects [0 ].id ,
10801080 usage = False ,
@@ -1094,7 +1094,7 @@ def test_quota_show__with_network(self):
10941094
10951095 self .cmd .take_action (parsed_args )
10961096
1097- self .compute_sdk_client .get_quota_set .assert_not_called ()
1097+ self .compute_client .get_quota_set .assert_not_called ()
10981098 self .volume_sdk_client .get_quota_set .assert_not_called ()
10991099 self .network_client .get_quota .assert_called_once_with (
11001100 self .projects [0 ].id ,
@@ -1115,7 +1115,7 @@ def test_quota_show__with_default(self):
11151115
11161116 self .cmd .take_action (parsed_args )
11171117
1118- self .compute_sdk_client .get_quota_set_defaults .assert_called_once_with (
1118+ self .compute_client .get_quota_set_defaults .assert_called_once_with (
11191119 self .projects [0 ].id ,
11201120 )
11211121 self .volume_sdk_client .get_quota_set_defaults .assert_called_once_with (
@@ -1139,7 +1139,7 @@ def test_quota_show__with_usage(self):
11391139
11401140 self .cmd .take_action (parsed_args )
11411141
1142- self .compute_sdk_client .get_quota_set .assert_called_once_with (
1142+ self .compute_client .get_quota_set .assert_called_once_with (
11431143 self .projects [0 ].id ,
11441144 usage = True ,
11451145 )
@@ -1161,7 +1161,7 @@ def test_quota_show__no_project(self):
11611161
11621162 self .cmd .take_action (parsed_args )
11631163
1164- self .compute_sdk_client .get_quota_set .assert_called_once_with (
1164+ self .compute_client .get_quota_set .assert_called_once_with (
11651165 self .projects [1 ].id , usage = False
11661166 )
11671167 self .volume_sdk_client .get_quota_set .assert_called_once_with (
@@ -1181,7 +1181,7 @@ def setUp(self):
11811181
11821182 self .identity_sdk_client .find_project .return_value = self .projects [0 ]
11831183
1184- self .compute_sdk_client .revert_quota_set .return_value = None
1184+ self .compute_client .revert_quota_set .return_value = None
11851185 self .volume_sdk_client .revert_quota_set .return_value = None
11861186 self .network_client .delete_quota .return_value = None
11871187
@@ -1205,7 +1205,7 @@ def test_delete(self):
12051205 self .identity_sdk_client .find_project .assert_called_once_with (
12061206 self .projects [0 ].id , ignore_missing = False
12071207 )
1208- self .compute_sdk_client .revert_quota_set .assert_called_once_with (
1208+ self .compute_client .revert_quota_set .assert_called_once_with (
12091209 self .projects [0 ].id ,
12101210 )
12111211 self .volume_sdk_client .revert_quota_set .assert_called_once_with (
@@ -1234,7 +1234,7 @@ def test_delete__compute(self):
12341234 self .identity_sdk_client .find_project .assert_called_once_with (
12351235 self .projects [0 ].id , ignore_missing = False
12361236 )
1237- self .compute_sdk_client .revert_quota_set .assert_called_once_with (
1237+ self .compute_client .revert_quota_set .assert_called_once_with (
12381238 self .projects [0 ].id ,
12391239 )
12401240 self .volume_sdk_client .revert_quota_set .assert_not_called ()
@@ -1259,7 +1259,7 @@ def test_delete__volume(self):
12591259 self .identity_sdk_client .find_project .assert_called_once_with (
12601260 self .projects [0 ].id , ignore_missing = False
12611261 )
1262- self .compute_sdk_client .revert_quota_set .assert_not_called ()
1262+ self .compute_client .revert_quota_set .assert_not_called ()
12631263 self .volume_sdk_client .revert_quota_set .assert_called_once_with (
12641264 self .projects [0 ].id ,
12651265 )
@@ -1284,7 +1284,7 @@ def test_delete__network(self):
12841284 self .identity_sdk_client .find_project .assert_called_once_with (
12851285 self .projects [0 ].id , ignore_missing = False
12861286 )
1287- self .compute_sdk_client .revert_quota_set .assert_not_called ()
1287+ self .compute_client .revert_quota_set .assert_not_called ()
12881288 self .volume_sdk_client .revert_quota_set .assert_not_called ()
12891289 self .network_client .delete_quota .assert_called_once_with (
12901290 self .projects [0 ].id ,
0 commit comments