Skip to content

Commit 5c32b76

Browse files
committed
Fixup e2e tests for running with multiple zones
1 parent cff8e1a commit 5c32b76

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

test/integration/component/test_affinity_groups_projects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,7 @@ def test_02_deploy_vm_anti_affinity_group_fail_on_not_enough_hosts(self):
10651065
"""
10661066
test DeployVM in anti-affinity groups with more vms than hosts.
10671067
"""
1068-
hosts = list_hosts(self.api_client, type="routing")
1068+
hosts = list_hosts(self.api_client, type="routing", zoneid=self.zone.id)
10691069
aff_grp = self.create_aff_grp(self.account_api_client)
10701070
vms = []
10711071
for host in hosts:

test/integration/smoke/test_secondary_storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def test_05_migrate_to_less_free_space(self):
340340
# 1. Try complete migration from a storage with more (or equal) free space - migration should be refused
341341

342342
storages = self.list_secondary_storages(self.apiclient)
343-
if (len(storages)) < 2:
343+
if (len(storages)) < 2 or (storages[0]['zoneid'] != storages[1]['zoneid']):
344344
self.skipTest(
345345
"This test requires more than one secondary storage")
346346

test/integration/smoke/test_templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ def test_09_copy_delete_template(self):
11561156

11571157
list_template_response = Template.list(
11581158
self.apiclient,
1159-
templatefilter=self.services["template"]["templatefilter"],
1159+
templatefilter=self.services["templatefilter"],
11601160
id=self.template.id,
11611161
zoneid=self.destZone.id
11621162
)

0 commit comments

Comments
 (0)