Merge "Sort node ids in cli acceptance tests" into stable/mitaka
This commit is contained in:
commit
03a689e137
@ -125,9 +125,8 @@ class CommandLineTest(test_cli_base.CommandLine):
|
|||||||
Duration 50m
|
Duration 50m
|
||||||
"""
|
"""
|
||||||
self.env.revert_snapshot("ready_with_3_slaves")
|
self.env.revert_snapshot("ready_with_3_slaves")
|
||||||
node_ids = [self.fuel_web.get_nailgun_node_by_devops_node(
|
node_ids = sorted([node['id'] for node in
|
||||||
self.env.d_env.nodes().slaves[
|
self.fuel_web.client.list_nodes()])
|
||||||
slave_id])['id']for slave_id in range(3)]
|
|
||||||
release_id = self.fuel_web.get_releases_list_for_os(
|
release_id = self.fuel_web.get_releases_list_for_os(
|
||||||
release_name=OPENSTACK_RELEASE)[0]
|
release_name=OPENSTACK_RELEASE)[0]
|
||||||
admin_ip = self.ssh_manager.admin_ip
|
admin_ip = self.ssh_manager.admin_ip
|
||||||
@ -420,7 +419,8 @@ class CommandLineTest(test_cli_base.CommandLine):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Get nodes ids
|
# Get nodes ids
|
||||||
node_ids = [node['id'] for node in self.fuel_web.client.list_nodes()]
|
node_ids = sorted([node['id'] for node in
|
||||||
|
self.fuel_web.client.list_nodes()])
|
||||||
admin_ip = self.ssh_manager.admin_ip
|
admin_ip = self.ssh_manager.admin_ip
|
||||||
|
|
||||||
# Add and provision a controller node node_ids[0]
|
# Add and provision a controller node node_ids[0]
|
||||||
|
@ -46,9 +46,8 @@ class CommandLineAcceptanceDeploymentTests(test_cli_base.CommandLine):
|
|||||||
"""
|
"""
|
||||||
self.env.revert_snapshot("ready_with_3_slaves")
|
self.env.revert_snapshot("ready_with_3_slaves")
|
||||||
|
|
||||||
node_ids = [self.fuel_web.get_nailgun_node_by_devops_node(
|
node_ids = sorted([node['id'] for node in
|
||||||
self.env.d_env.nodes().slaves[slave_id])['id']
|
self.fuel_web.client.list_nodes()])
|
||||||
for slave_id in range(3)]
|
|
||||||
release_id = self.fuel_web.get_releases_list_for_os(
|
release_id = self.fuel_web.get_releases_list_for_os(
|
||||||
release_name=OPENSTACK_RELEASE)[0]
|
release_name=OPENSTACK_RELEASE)[0]
|
||||||
|
|
||||||
@ -119,9 +118,8 @@ class CommandLineAcceptanceDeploymentTests(test_cli_base.CommandLine):
|
|||||||
Duration 50m
|
Duration 50m
|
||||||
"""
|
"""
|
||||||
self.env.revert_snapshot("ready_with_3_slaves")
|
self.env.revert_snapshot("ready_with_3_slaves")
|
||||||
node_ids = [self.fuel_web.get_nailgun_node_by_devops_node(
|
node_ids = sorted([node['id'] for node in
|
||||||
self.env.d_env.nodes().slaves[slave_id])['id']
|
self.fuel_web.client.list_nodes()])
|
||||||
for slave_id in range(3)]
|
|
||||||
|
|
||||||
release_id = self.fuel_web.get_releases_list_for_os(
|
release_id = self.fuel_web.get_releases_list_for_os(
|
||||||
release_name=OPENSTACK_RELEASE)[0]
|
release_name=OPENSTACK_RELEASE)[0]
|
||||||
|
@ -51,9 +51,8 @@ class CommandLineAcceptanceCephDeploymentTests(test_cli_base.CommandLine):
|
|||||||
self.env.bootstrap_nodes(
|
self.env.bootstrap_nodes(
|
||||||
self.env.d_env.nodes().slaves[:7])
|
self.env.d_env.nodes().slaves[:7])
|
||||||
|
|
||||||
node_ids = [self.fuel_web.get_nailgun_node_by_devops_node(
|
node_ids = sorted([node['id'] for node in
|
||||||
self.env.d_env.nodes().slaves[slave_id])['id']
|
self.fuel_web.client.list_nodes()])
|
||||||
for slave_id in range(7)]
|
|
||||||
release_id = self.fuel_web.get_releases_list_for_os(
|
release_id = self.fuel_web.get_releases_list_for_os(
|
||||||
release_name=OPENSTACK_RELEASE)[0]
|
release_name=OPENSTACK_RELEASE)[0]
|
||||||
|
|
||||||
@ -133,9 +132,8 @@ class CommandLineAcceptanceCephDeploymentTests(test_cli_base.CommandLine):
|
|||||||
|
|
||||||
self.env.revert_snapshot("ready_with_9_slaves")
|
self.env.revert_snapshot("ready_with_9_slaves")
|
||||||
|
|
||||||
node_ids = [self.fuel_web.get_nailgun_node_by_devops_node(
|
node_ids = sorted([node['id'] for node in
|
||||||
self.env.d_env.nodes().slaves[slave_id])['id']
|
self.fuel_web.client.list_nodes()])
|
||||||
for slave_id in range(8)]
|
|
||||||
|
|
||||||
release_id = self.fuel_web.get_releases_list_for_os(
|
release_id = self.fuel_web.get_releases_list_for_os(
|
||||||
release_name=OPENSTACK_RELEASE)[0]
|
release_name=OPENSTACK_RELEASE)[0]
|
||||||
|
@ -50,9 +50,8 @@ class CommandLineRoleTests(test_cli_base.CommandLine):
|
|||||||
"""
|
"""
|
||||||
self.show_step(1, initialize=True)
|
self.show_step(1, initialize=True)
|
||||||
self.env.revert_snapshot("ready_with_3_slaves")
|
self.env.revert_snapshot("ready_with_3_slaves")
|
||||||
node_ids = [self.fuel_web.get_nailgun_node_by_devops_node(
|
node_ids = sorted([node['id'] for node in
|
||||||
self.env.d_env.nodes().slaves[slave_id])['id']
|
self.fuel_web.client.list_nodes()])
|
||||||
for slave_id in range(3)]
|
|
||||||
release_id = self.fuel_web.get_releases_list_for_os(
|
release_id = self.fuel_web.get_releases_list_for_os(
|
||||||
release_name=OPENSTACK_RELEASE)[0]
|
release_name=OPENSTACK_RELEASE)[0]
|
||||||
|
|
||||||
@ -139,9 +138,8 @@ class CommandLineRoleTests(test_cli_base.CommandLine):
|
|||||||
"""
|
"""
|
||||||
self.show_step(1, initialize=True)
|
self.show_step(1, initialize=True)
|
||||||
self.env.revert_snapshot("ready_with_3_slaves")
|
self.env.revert_snapshot("ready_with_3_slaves")
|
||||||
node_ids = [self.fuel_web.get_nailgun_node_by_devops_node(
|
node_ids = sorted([node['id'] for node in
|
||||||
self.env.d_env.nodes().slaves[slave_id])['id']
|
self.fuel_web.client.list_nodes()])
|
||||||
for slave_id in range(3)]
|
|
||||||
release_id = self.fuel_web.get_releases_list_for_os(
|
release_id = self.fuel_web.get_releases_list_for_os(
|
||||||
release_name=OPENSTACK_RELEASE)[0]
|
release_name=OPENSTACK_RELEASE)[0]
|
||||||
templates_path = os.path.join(
|
templates_path = os.path.join(
|
||||||
@ -230,9 +228,8 @@ class CommandLineRoleTests(test_cli_base.CommandLine):
|
|||||||
"""
|
"""
|
||||||
self.show_step(1, initialize=True)
|
self.show_step(1, initialize=True)
|
||||||
self.env.revert_snapshot("ready_with_3_slaves")
|
self.env.revert_snapshot("ready_with_3_slaves")
|
||||||
node_ids = [self.fuel_web.get_nailgun_node_by_devops_node(
|
node_ids = sorted([node['id'] for node in
|
||||||
self.env.d_env.nodes().slaves[slave_id])['id']
|
self.fuel_web.client.list_nodes()])
|
||||||
for slave_id in range(3)]
|
|
||||||
release_id = self.fuel_web.get_releases_list_for_os(
|
release_id = self.fuel_web.get_releases_list_for_os(
|
||||||
release_name=OPENSTACK_RELEASE)[0]
|
release_name=OPENSTACK_RELEASE)[0]
|
||||||
templates_path = os.path.join(
|
templates_path = os.path.join(
|
||||||
@ -315,9 +312,8 @@ class CommandLineRoleTests(test_cli_base.CommandLine):
|
|||||||
"""
|
"""
|
||||||
self.show_step(1, initialize=True)
|
self.show_step(1, initialize=True)
|
||||||
self.env.revert_snapshot("ready_with_3_slaves")
|
self.env.revert_snapshot("ready_with_3_slaves")
|
||||||
node_ids = [self.fuel_web.get_nailgun_node_by_devops_node(
|
node_ids = sorted([node['id'] for node in
|
||||||
self.env.d_env.nodes().slaves[slave_id])['id']
|
self.fuel_web.client.list_nodes()])
|
||||||
for slave_id in range(3)]
|
|
||||||
release_id = self.fuel_web.get_releases_list_for_os(
|
release_id = self.fuel_web.get_releases_list_for_os(
|
||||||
release_name=OPENSTACK_RELEASE)[0]
|
release_name=OPENSTACK_RELEASE)[0]
|
||||||
templates_path = os.path.join(
|
templates_path = os.path.join(
|
||||||
|
Loading…
Reference in New Issue
Block a user