From 2978020181f63576567e37c7ebb319694c275e6b Mon Sep 17 00:00:00 2001 From: Tatyana Leontovich Date: Tue, 12 Apr 2016 13:03:57 +0300 Subject: [PATCH] Do not check exit code while curl to ostf api Change-Id: I1ada31a36bf85134877fb0d43140c3227b119b92 Closes-Bug: #1569252 --- gates_tests/helpers/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gates_tests/helpers/utils.py b/gates_tests/helpers/utils.py index aefcdbc08..ef86f78f9 100644 --- a/gates_tests/helpers/utils.py +++ b/gates_tests/helpers/utils.py @@ -158,7 +158,8 @@ def update_ostf(): cmd = "service ostf status" helpers.wait(lambda: "dead" in ssh.execute_on_remote( ssh.admin_ip, cmd=cmd, - raise_on_assert=False)['stdout_str'], timeout=60) + raise_on_assert=False, + assert_ec_equal=[3])['stdout_str'], timeout=60) logger.info("OSTF status: inactive") cmd = "rpm -e fuel-ostf" ssh.execute_on_remote(ssh.admin_ip, cmd=cmd) @@ -182,7 +183,7 @@ def update_ostf(): cmd = "curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:8777" helpers.wait( lambda: "401" in ssh.execute_on_remote( - ssh.admin_ip, cmd=cmd)['stdout_str'], + ssh.admin_ip, cmd=cmd, raise_on_assert=False)['stdout_str'], timeout=60) logger.info("OSTF status: RUNNING")