diff options
author | zhihui wu <wu.zhihui1@zte.com.cn> | 2017-08-10 02:31:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-08-10 02:31:47 +0000 |
commit | 1542b9288c494706c93a710382b42b6975592a5c (patch) | |
tree | 435fe10137b54a8334e847cbd6e6f06087946576 /tests | |
parent | 8c1e9c553cc6b4b8b78c31e7f5f48836c0d945e1 (diff) | |
parent | 2501453ab6facb74b1a4ded824c8ccb17fac8d66 (diff) |
Merge "Refactor QPI module"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/cli/cmd_qpi_test.py | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/tests/unit/cli/cmd_qpi_test.py b/tests/unit/cli/cmd_qpi_test.py index e7823c9b..ba5f814e 100644 --- a/tests/unit/cli/cmd_qpi_test.py +++ b/tests/unit/cli/cmd_qpi_test.py @@ -20,24 +20,14 @@ def runner(): def test_list(runner): result = runner.invoke(cli, ['qpi', 'list']) - assert 'QPIs' and 'compute' in result.output - - -def test_run(runner): - result = runner.invoke(cli, ['qpi', 'run', 'fake-qpi']) - assert result.output == '' - - result = runner.invoke(cli, ['qpi', 'run']) - assert 'Missing argument "name".' in result.output + assert 'QPI' in result.output + assert 'compute' in result.output + assert 'Description' in result.output + assert 'QTIP Performance Index of compute' in result.output def test_show(runner): result = runner.invoke(cli, ['qpi', 'show', 'compute']) - assert 'Name: compute' in result.output - assert 'Description: sample performance index of computing' in result.output - - result = runner.invoke(cli, ['qpi', 'show']) - assert 'Missing argument "name".' in result.output - - result = runner.invoke(cli, ['qpi', 'show', 'xyz']) - assert "ERROR: qpi spec: xyz not found" in result.output + assert 'QPI' in result.output + assert 'Description' in result.output + assert 'Formula' in result.output |