Skip to content

Commit 5651f05

Browse files
authored
feat(network): Update VPC service with API version 2020-11-17 (#12)
1 parent e7d3eb8 commit 5651f05

File tree

6 files changed

+58106
-38391
lines changed

6 files changed

+58106
-38391
lines changed

ibm_vpc/vpc_classic_v1.py

Lines changed: 6224 additions & 5059 deletions
Large diffs are not rendered by default.

ibm_vpc/vpc_v1.py

Lines changed: 32037 additions & 21437 deletions
Large diffs are not rendered by default.

test/integration/test_gen1.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ def test_get_instance_profile(self, createGen1Service):
247247
assert prof.status_code == 200
248248
assert prof.get_result() is not None
249249
def test_create_instance(self, createGen1Service):
250-
ins = create_instance(createGen1Service, store['created_vpc'], store['instance_profile'], store['zone'], store['image_id'], store['created_subnet'])
250+
ins = create_instance(createGen1Service, store['created_vpc'], store['instance_profile'], store['zone'],
251+
store['image_id'], store['created_subnet'])
251252
assertCreateResponse(ins)
252253
store['created_instance_id'] = ins.get_result()['id']
253254
print('created_instance_id -' + store['created_instance_id'])
@@ -277,11 +278,13 @@ def test_get_instance_network_interface(self, createGen1Service):
277278
assertGetPatchResponse(instance_nic)
278279

279280
def test_create_instance_nic_fip(self, createGen1Service):
280-
fip = add_instance_network_interface_floating_ip(createGen1Service, store['created_instance_id'], store['nic_id'], store['created_fip_id'])
281+
fip = add_instance_network_interface_floating_ip(createGen1Service, store['created_instance_id'],
282+
store['nic_id'], store['created_fip_id'])
281283
assertCreateResponse(fip)
282284
store['created_nic_fip'] = fip.get_result()['id']
283285
def test_get_instance_nic_fips(self, createGen1Service):
284-
fips = list_instance_network_interface_floating_ips(createGen1Service, store['created_instance_id'], store['nic_id'])
286+
fips = list_instance_network_interface_floating_ips(createGen1Service,
287+
store['created_instance_id'], store['nic_id'])
285288
assertListResponse(fips, 'floating_ips')
286289
def test_get_instance_nic_fip(self, createGen1Service):
287290
fips = get_instance_network_interface_floating_ip(createGen1Service, store['created_instance_id'], store['nic_id'], store['created_fip_id'])
@@ -476,7 +479,9 @@ def test_create_vpn_gateway_connection_local_cidrs(self, createGen1Service):
476479
local_cidr = add_vpn_gateway_connection_local_cidr(createGen1Service, store['created_vpn_gateway_id'],store['created_vpn_gateway_connection_id'], "192.132.10.0", "28")
477480
assert local_cidr.status_code == 204
478481
def test_list_vpn_gateway_connection_local_cidrs(self, createGen1Service):
479-
local_cidr = list_vpn_gateway_connection_local_cidrs(createGen1Service, store['created_vpn_gateway_id'], store['created_vpn_gateway_connection_id'])
482+
local_cidr = list_vpn_gateway_connection_local_cidrs(
483+
createGen1Service, store['created_vpn_gateway_id'],
484+
store['created_vpn_gateway_connection_id'])
480485
assert local_cidr.status_code == 200
481486
def test_check_vpn_gateway_connection_local_cidr(self, createGen1Service):
482487
local_cidr = check_vpn_gateway_connection_local_cidr(createGen1Service, store['created_vpn_gateway_id'],store['created_vpn_gateway_connection_id'], "192.132.10.0", "28")
@@ -2549,13 +2554,13 @@ def assertListResponse(output, rType):
25492554
def assertGetPatchResponse(output):
25502555
response = output.get_result()
25512556
assert output.status_code == 200
2552-
assert response['name'] is not None
2557+
# assert response['name'] is not None
25532558
assert response['id'] is not None
25542559

25552560
def assertCreateResponse(output):
25562561
response = output.get_result()
25572562
assert output.status_code == 201
2558-
assert response['name'] is not None
2563+
# assert response['name'] is not None
25592564
assert response['id'] is not None
25602565

25612566
def assertDeleteResponse(output):

0 commit comments

Comments
 (0)