From: rakesh Date: Mon, 4 Feb 2019 06:44:14 +0000 (+0530) Subject: added doc string and script default value X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5ac18b30bf8ff759b79d6a8d051a5e91669fba3b;p=ceph.git added doc string and script default value --- diff --git a/qa/tasks/rgw_system_test.py b/qa/tasks/rgw_system_test.py index c7e39b5274c..0f8e0d71dd8 100644 --- a/qa/tasks/rgw_system_test.py +++ b/qa/tasks/rgw_system_test.py @@ -23,6 +23,19 @@ MASTER_BRANCH = 'master' @contextlib.contextmanager def task(ctx, config): + + """ + example: + tasks: + rgw-system-test: + test: + script: | default value is .py + test_version: | ex: v1 or v2, default value is v2 + clients: | ex: [client.0, client.1] default value is ['client.0] + config: + | default values is the yaml file config from ceph-qe-scripts + """ + log.info('starting rgw-tests') log.info('config %s' % config) if config is None: @@ -32,12 +45,12 @@ def task(ctx, config): config_file_name = config['test'] + ".yaml" log.info('test_version: %s' % config.get('test_version', 'v2')) log.info('test: %s' % config['test']) - log.info('script: %s' % config['script']) + log.info('script: %s' % config.get('script', config['test'] + ".py")) test_root_dir = 'rgw-tests' test_base_path = os.path.join(test_root_dir, 'ceph-qe-scripts') script = os.path.join(test_base_path, DIR[config.get('test_version', 'v2')]['script'], - config['script']) + config.get('script', config['test'] + ".py")) config_file = os.path.join(test_base_path, DIR[config.get('test_version', 'v2')]['config'], config_file_name)