Update murano-api services count

Current value is 6 processes.
Also deprecated function change.

Change-Id: I69ab82b332c6bfa7e00c9999a72b4225bddffcb3
Closes-Bug: 1654267
This commit is contained in:
Dmitry Belyaninov 2017-03-03 14:27:27 +01:00
parent e4b02de18a
commit 46d2680d9e
2 changed files with 6 additions and 4 deletions

View File

@ -127,9 +127,9 @@ def check_image(image, md5, path):
@logwrap
def verify_service(ip, service_name, count=1,
ignore_count_of_proccesses=False):
ps_output = ssh_manager.execute_on_remote(
ps_output = ssh_manager.check_call(
ip=ip,
cmd='ps ax'
command='ps ax'
)['stdout']
api = [ps for ps in ps_output if service_name in ps]
logger.debug("{} \\n: {}".format(service_name, str(api)))

View File

@ -247,7 +247,8 @@ class SaharaHA(TestBasic):
self.env.make_snapshot("deploy_sahara_ha_tun")
@test(groups=["services", "services.murano", "services_ha_one_controller"])
@test(groups=["services", "services.murano", "services_ha_one_controller"],
enabled=False)
class MuranoHAOneController(TestBasic):
"""Murano HA with 1 controller tests.
Don't recommend to start tests without kvm.
@ -301,7 +302,8 @@ class MuranoHAOneController(TestBasic):
self.fuel_web.deploy_cluster_wait(cluster_id)
_ip = self.fuel_web.get_nailgun_node_by_name("slave-01")['ip']
checkers.verify_service(_ip, service_name='murano-api')
checkers.verify_service(_ip, service_name='murano-api',
ignore_count_of_proccesses=True)
logger.debug('Run sanity and functional Murano OSTF tests')
self.fuel_web.run_ostf(cluster_id=cluster_id, test_sets=['sanity'])