summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2015-05-26 15:59:58 +0200
committerjose.lausuch <jose.lausuch@ericsson.com>2015-05-26 15:59:58 +0200
commit5e5344e960612a26b9dcf8e793e82a74178faa09 (patch)
tree91a1069bc7a734e7abb7c6f6bb170bc3bfb92887
parent0b10079d8e6796e4909e461548850dc9d15c8326 (diff)
Refactor functest environment. Bugfixes: arguments missing
JIRA: FUNCTEST-10 Change-Id: I796542f32a75892ff66ea23115cbcddd72438323 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
-rw-r--r--testcases/VIM/OpenStack/CI/libraries/run_rally.py3
-rw-r--r--testcases/vPing/CI/libraries/vPing.py1
2 files changed, 3 insertions, 1 deletions
diff --git a/testcases/VIM/OpenStack/CI/libraries/run_rally.py b/testcases/VIM/OpenStack/CI/libraries/run_rally.py
index 5e6789c60..d7a004b9d 100644
--- a/testcases/VIM/OpenStack/CI/libraries/run_rally.py
+++ b/testcases/VIM/OpenStack/CI/libraries/run_rally.py
@@ -20,13 +20,14 @@ test_date = cmd.read().rstrip()
""" tests configuration """
tests = ['authenticate', 'glance', 'cinder', 'heat', 'keystone', 'neutron', 'nova', 'quotas', 'requests', 'vm', 'tempest', 'all', 'smoke']
parser = argparse.ArgumentParser()
+parser.add_argument("repo_path", help="Path to the repository")
parser.add_argument("test_name", help="The name of the test you want to perform with rally. "
"Possible values are : "
"[ {d[0]} | {d[1]} | {d[2]} | {d[3]} | {d[4]} | {d[5]} | {d[6]} "
"| {d[7]} | {d[8]} | {d[9]} | {d[10]} | {d[11]} | {d[12]}]. The 'all' value performs all the possible tests scenarios"
"except 'tempest'".format(d=tests))
-
parser.add_argument("-d", "--debug", help="Debug mode", action="store_true")
+
parser.add_argument("test_mode", help="Tempest test mode", nargs='?', default="smoke")
args = parser.parse_args()
test_mode=args.test_mode
diff --git a/testcases/vPing/CI/libraries/vPing.py b/testcases/vPing/CI/libraries/vPing.py
index 5c02d5a32..e14155357 100644
--- a/testcases/vPing/CI/libraries/vPing.py
+++ b/testcases/vPing/CI/libraries/vPing.py
@@ -20,6 +20,7 @@ pp = pprint.PrettyPrinter(indent=4)
parser = argparse.ArgumentParser()
+parser.add_argument("repo_path", help="Path to the repository")
parser.add_argument("-d", "--debug", help="Debug mode", action="store_true")
args = parser.parse_args()