@@ -85,7 +85,7 @@ def setUp(self):
8585 self .services ["root_admin" ]["roletype" ])
8686
8787 """
88- Set public.ip.address.quarantine.duration to 60 minutes
88+ Set public.ip.address.quarantine.duration to 1 minute
8989 """
9090 update_configuration_cmd = updateConfiguration .updateConfigurationCmd ()
9191 update_configuration_cmd .name = "public.ip.address.quarantine.duration"
@@ -168,8 +168,7 @@ def test_only_owner_can_allocate_ip_in_quarantine_vpc(self):
168168 zoneid = self .zone .id ,
169169 vpcid = root_vpc .id ,
170170 ipaddress = ip_address )
171- self .assertIn (f"Failed to allocate public IP address [{ ip_address } ] as it is in quarantine." ,
172- exception .exception .errorMsg )
171+ self .assertIn ("errorCode: 533" , exception .exception .errorMsg )
173172
174173 # Owner should be able to allocate its IP in quarantine
175174 public_ip = PublicIPAddress .create (self .domain_admin_apiclient ,
@@ -267,8 +266,7 @@ def test_only_owner_can_allocate_ip_in_quarantine_network(self):
267266 zoneid = self .zone .id ,
268267 networkid = root_network .id ,
269268 ipaddress = ip_address )
270- self .assertIn (f"Failed to allocate public IP address [{ ip_address } ] as it is in quarantine." ,
271- exception .exception .errorMsg )
269+ self .assertIn ("errorCode: 533" , exception .exception .errorMsg )
272270
273271 # Owner should be able to allocate its IP in quarantine
274272 public_ip = PublicIPAddress .create (self .domain_admin_apiclient ,
0 commit comments