From 8111a1371e4221d0224b388e5896ce29c8d7e7e0 Mon Sep 17 00:00:00 2001 From: Juha Kosonen Date: Mon, 13 Jun 2016 10:35:49 +0000 Subject: Remove external server references on Rally scenarios Use url derived from OS_AUTH_URL on a scenario making http request and checking the response. This way successful test execution does not require internet connection nor rely on external servers functionality. JIRA: FUNCTEST-201 Change-Id: Ic11f8f5c32d015624bdec1db07d8bb49f7b77bc8 Signed-off-by: Juha Kosonen --- testcases/OpenStack/rally/run_rally-cert.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testcases/OpenStack/rally/run_rally-cert.py') diff --git a/testcases/OpenStack/rally/run_rally-cert.py b/testcases/OpenStack/rally/run_rally-cert.py index 6bb29b8e0..a8628bc51 100755 --- a/testcases/OpenStack/rally/run_rally-cert.py +++ b/testcases/OpenStack/rally/run_rally-cert.py @@ -196,6 +196,12 @@ def build_task_args(test_file_name): task_args['netid'] = str(net_id) task_args['live_migration'] = live_migration_supported() + auth_url = os.getenv('OS_AUTH_URL') + if auth_url is not None: + task_args['request_url'] = auth_url.rsplit(":", 1)[0] + else: + task_args['request_url'] = '' + return task_args -- cgit 1.2.3-korg