Skip to content

Commit a927d4f

Browse files
committed
travis.yml: rearrange/sort by name/type and remove duplicates
Also fixes regression from rebase Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 4be5864 commit a927d4f

2 files changed

Lines changed: 14 additions & 11 deletions

File tree

.travis.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ env:
3232
global:
3333
- PATH=$HOME/.local/bin:$PATH
3434
matrix:
35+
# Keep the TESTS sorted by name and grouped by type
3536
- TESTS="smoke/test_accounts
3637
smoke/test_affinity_groups
3738
smoke/test_affinity_groups_projects
@@ -108,29 +109,21 @@ env:
108109
component/test_acl_listsnapshot
109110
component/test_acl_listvm
110111
component/test_acl_listvolume
111-
component/test_acl_sharednetwork
112-
component/test_affinity_groups_projects"
112+
component/test_acl_sharednetwork"
113113

114114
- TESTS="component/test_allocation_states
115115
component/test_acl_sharednetwork_deployVM-impersonation
116116
component/test_affinity_groups_projects
117117
component/test_cpu_domain_limits
118118
component/test_cpu_limits"
119119

120-
- TESTS="component/test_acl_sharednetwork_deployVM-impersonation
121-
component/test_affinity_groups_projects
122-
component/test_allocation_states"
123-
124-
- TESTS="component/test_cpu_domain_limits"
125-
126120
- TESTS="component/test_cpu_max_limits
127121
component/test_acl_isolatednetwork
128122
component/test_cpu_project_limits
129123
component/test_deploy_vm_userdata_multi_nic
130124
component/test_egress_fw_rules
131125
component/test_invalid_gw_nm
132126
component/test_ip_reservation
133-
component/test_acl_isolatednetwork
134127
component/test_lb_secondary_ip"
135128

136129
- TESTS="component/test_memory_limits
@@ -150,7 +143,7 @@ env:
150143
component/test_snapshots
151144
component/test_stopped_vm"
152145

153-
- TESTS="component/test_project_resources"
146+
- TESTS="component/test_resource_limits"
154147

155148
- TESTS="component/test_tags
156149
component/test_templates

test/integration/component/test_host_ha.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,19 @@ def disconnectHostfromNetwork(self, hostIp, timeout):
281281
ssh = SshClient(hostIp, 22, self.hostConfig["username"],
282282
self.hostConfig["password"])
283283
ssh.scp(srcFile, "/root/test_host_ha.sh")
284-
ssh.execute("nohup sh /root/test_host_ha.sh -t %s -d agent > /dev/null 2>&1 &\n" % timeout)
284+
ssh.execute("nohup sh /root/test_host_ha.sh -t %s -d all > /dev/null 2>&1 &\n" % timeout)
285285
return
286286

287+
def stopAgentOnHost(self, hostIp, timeout):
288+
srcFile = os.path.dirname(os.path.realpath(__file__)) + "/test_host_ha.sh"
289+
if not(os.path.isfile(srcFile)):
290+
self.logger.debug("File %s not found" % srcFile)
291+
raise unittest.SkipTest("Script file %s required for HA not found" % srcFile)
292+
293+
ssh = SshClient(hostIp, 22, self.hostConfig["username"], self.hostConfig["password"])
294+
ssh.scp(srcFile, "/root/test_host_ha.sh")
295+
ssh.execute("nohup sh /root/test_host_ha.sh -t %s -d agent > /dev/null 2>&1 &\n" % timeout)
296+
return
287297

288298
@attr(
289299
tags=[

0 commit comments

Comments
 (0)