@@ -33,7 +33,7 @@ def test_bound_network_init(self, network_response):
3333
3434 assert len (bound_network .subnets ) == 2
3535 assert isinstance (bound_network .subnets [0 ], NetworkSubnet )
36- assert bound_network .subnets [0 ].type == "server "
36+ assert bound_network .subnets [0 ].type == "cloud "
3737 assert bound_network .subnets [0 ].ip_range == "10.0.1.0/24"
3838 assert bound_network .subnets [0 ].network_zone == "eu-central"
3939 assert bound_network .subnets [0 ].gateway == "10.0.0.1"
@@ -80,10 +80,10 @@ def test_change_protection(self, hetzner_client, bound_network, generic_action):
8080
8181 def test_add_subnet (self , hetzner_client , bound_network , generic_action ):
8282 hetzner_client .request .return_value = generic_action
83- subnet = NetworkSubnet (type = "server " , ip_range = "10.0.1.0/24" , network_zone = "eu-central" )
83+ subnet = NetworkSubnet (type = "cloud " , ip_range = "10.0.1.0/24" , network_zone = "eu-central" )
8484 action = bound_network .add_subnet (subnet )
8585 hetzner_client .request .assert_called_with (url = "/networks/14/actions/add_subnet" , method = "POST" ,
86- json = {"type" : "server " , "ip_range" : "10.0.1.0/24" ,
86+ json = {"type" : "cloud " , "ip_range" : "10.0.1.0/24" ,
8787 "network_zone" : "eu-central" })
8888
8989 assert action .id == 1
@@ -137,7 +137,7 @@ def networks_client(self):
137137
138138 @pytest .fixture ()
139139 def network_subnet (self ):
140- return NetworkSubnet (type = "server " , ip_range = "10.0.1.0/24" , network_zone = "eu-central" )
140+ return NetworkSubnet (type = "cloud " , ip_range = "10.0.1.0/24" , network_zone = "eu-central" )
141141
142142 @pytest .fixture ()
143143 def network_route (self ):
@@ -243,7 +243,7 @@ def test_create_with_subnet(self, networks_client, network_subnet, network_creat
243243 'ip_range' : "10.0.0.0/8" ,
244244 'subnets' : [
245245 {
246- 'type' : "server " ,
246+ 'type' : "cloud " ,
247247 'ip_range' : "10.0.1.0/24" ,
248248 'network_zone' : "eu-central"
249249 }
@@ -290,7 +290,7 @@ def test_create_with_route_and_subnet(self, networks_client, network_subnet, net
290290 'ip_range' : "10.0.0.0/8" ,
291291 'subnets' : [
292292 {
293- 'type' : "server " ,
293+ 'type' : "cloud " ,
294294 'ip_range' : "10.0.1.0/24" ,
295295 'network_zone' : "eu-central"
296296 }
@@ -352,7 +352,7 @@ def test_add_subnet(self, networks_client, network, generic_action, network_subn
352352
353353 action = networks_client .add_subnet (network , network_subnet )
354354 networks_client ._client .request .assert_called_with (url = "/networks/1/actions/add_subnet" , method = "POST" ,
355- json = {"type" : "server " , "ip_range" : "10.0.1.0/24" ,
355+ json = {"type" : "cloud " , "ip_range" : "10.0.1.0/24" ,
356356 "network_zone" : "eu-central" })
357357
358358 assert action .id == 1
0 commit comments