aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/VIM/OpenStack/CI/libraries
diff options
context:
space:
mode:
authorJuha Kosonen <juha.kosonen@nokia.com>2016-04-22 07:21:29 +0000
committerJuha Kosonen <juha.kosonen@nokia.com>2016-04-22 13:44:53 +0000
commit9d597b415d92afca3b1b4bbacbb8f6276a25921a (patch)
tree857a417ae4f089f421fe47ca2bbdb331f8716f51 /testcases/VIM/OpenStack/CI/libraries
parentade54b8ec63fc674cfd7d7e0a893b7e34f6b44b1 (diff)
Introduce a sanity test mode for Rally test
In a sanity test mode the number of iterations is reduced and only a subset of tests is executed. JIRA: FUNCTEST-220 Change-Id: I722f12b8cc6df29bfcb81b8798d8d0802b207d94 Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
Diffstat (limited to 'testcases/VIM/OpenStack/CI/libraries')
-rwxr-xr-xtestcases/VIM/OpenStack/CI/libraries/run_rally-cert.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/testcases/VIM/OpenStack/CI/libraries/run_rally-cert.py b/testcases/VIM/OpenStack/CI/libraries/run_rally-cert.py
index 41c359cc..562c2e58 100755
--- a/testcases/VIM/OpenStack/CI/libraries/run_rally-cert.py
+++ b/testcases/VIM/OpenStack/CI/libraries/run_rally-cert.py
@@ -60,6 +60,9 @@ parser.add_argument("-v", "--verbose",
parser.add_argument("-n", "--noclean",
help="Don't clean the created resources for this test.",
action="store_true")
+parser.add_argument("-z", "--sanity",
+ help="Sanity test mode, execute only a subset of tests",
+ action="store_true")
args = parser.parse_args()
@@ -107,7 +110,6 @@ TENANTS_AMOUNT = 3
ITERATIONS_AMOUNT = 10
CONCURRENCY = 4
-###
RESULTS_DIR = functest_yaml.get("general").get("directories"). \
get("dir_rally_res")
TEMPEST_CONF_FILE = functest_yaml.get("general").get("directories"). \
@@ -196,7 +198,6 @@ def live_migration_supported():
def build_task_args(test_file_name):
task_args = {'service_list': [test_file_name]}
- task_args['smoke'] = args.smoke
task_args['image_name'] = GLANCE_IMAGE_NAME
task_args['flavor_name'] = FLAVOR_NAME
task_args['glance_image_location'] = GLANCE_IMAGE_PATH
@@ -207,6 +208,13 @@ def build_task_args(test_file_name):
task_args['iterations'] = ITERATIONS_AMOUNT
task_args['concurrency'] = CONCURRENCY
+ if args.sanity:
+ task_args['full_mode'] = False
+ task_args['smoke'] = True
+ else:
+ task_args['full_mode'] = True
+ task_args['smoke'] = args.smoke
+
ext_net = openstack_utils.get_external_net(client_dict['neutron'])
if ext_net:
task_args['floating_network'] = str(ext_net)