diff options
author | xudan <xudan16@huawei.com> | 2016-10-21 08:03:43 +0000 |
---|---|---|
committer | xudan <xudan16@huawei.com> | 2016-11-02 09:05:23 +0000 |
commit | 4def3379f3513aa92b6df2f23551082ba7aa6ad4 (patch) | |
tree | 5e3279f125bc34b32f7d71cc3a18a78cad37b8ff /dovetail/conf/cmd_config.yml | |
parent | d8c7fcfd3dd2bf331ca65ca41b593d65e4c0d97a (diff) |
dovetail tool: Add cli mechanism for changing envs at run-time
JIRA: DOVETAIL-23
1. Add file cmd_config.yml for defining arguments and options.
2. Using python click module to add and parse cmds in cmd_config.yml
3. Using envs options to update envs in yardstick/functest config file
Change-Id: Ie513c0f0a1ed76f29408419a4bcbbcf21334bb3f
Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'dovetail/conf/cmd_config.yml')
-rw-r--r-- | dovetail/conf/cmd_config.yml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dovetail/conf/cmd_config.yml b/dovetail/conf/cmd_config.yml new file mode 100644 index 00000000..63d51ed0 --- /dev/null +++ b/dovetail/conf/cmd_config.yml @@ -0,0 +1,45 @@ +cli: + arguments: + envs: + # This is a simple example of arguments. + # Dovetail has no need of this kind of parameters currently. + # The arguments must be given orderly at the run-time. + # + # docker_tag: + # flags: 'docker_tag' + non-envs: + + options: + envs: + SUT_TYPE: + flags: + - '--SUT_TYPE' + - '-t' + help: 'Installer type of the system under test (SUT).' + SUT_IP: + flags: + - '--SUT_IP' + - '-i' + help: 'IP of the system under test (SUT).' + DEPLOY_SCENARIO: + flags: + - '--DEPLOY_SCENARIO' + - '-S' + help: 'DEPLOY_SCENARIO of the system under test (SUT).' + DEPLOY_TYPE: + flags: + - '--DEPLOY_TYPE' + - '-T' + help: 'DEPLOY_TYPE of the system under test (SUT).' + CI_DEBUG: + flags: + - '--CI_DEBUG' + - '-d' + help: 'CI_DEBUG for showing debug log.' + non-envs: + scenario: + flags: + - '--scenario' + - '-s' + default: 'basic' + help: 'certification scenario.' |