Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions test/integration/test_gen2.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def test_get_bare_metal_server_network_interface_ip(self, createGen2Service):
ips = get_bare_metal_server_network_interface_ip(
createGen2Service, store['created_bare_metal_server_id'], store['bms_nic_id'], store['created_subnet_reserved_ip'])
assertGetPatchResponse(ips)

def test_delete_bare_metal_server_nic_fip(self, createGen2Service):
fips = remove_bare_metal_server_network_interface_floating_ip(
createGen2Service, store['created_bare_metal_server_id'], store['bms_nic_id'], store['created_fip_id'])
Expand Down Expand Up @@ -5171,20 +5171,15 @@ def delete_placement_group(service, pgid):
# Utils
# --------------------------------------------------------


def generate_name(r_type):
names = ("cloudy", "jumble", "lavender", "mayfly", "green", "yellow", "fox", "unrest", "red", "windy", "foggy", "hatchet", "mushily", "beach", "slacker")
return "psdk-" + names[random.randint(0, len(names) - 1)] + "-" + r_type


def assertListResponse(output, rType):
response = output.get_result()
assert output.status_code == 200
assert response[rType] is not None

#


def assertGetPatchResponse(output):
response = output.get_result()
assert output.status_code == 200
Expand Down