diff options
-rw-r--r-- | qtip/runner/__init__.py | 0 | ||||
-rw-r--r-- | qtip/runner/perftest.py | 27 | ||||
-rw-r--r-- | qtip/runner/suite.py | 28 | ||||
-rw-r--r-- | qtip/runner/test_plan.py | 28 | ||||
-rw-r--r-- | tests/__init__.py | 0 | ||||
-rw-r--r-- | tests/data/output/hosts (renamed from tests/output/hosts) | 0 | ||||
-rw-r--r-- | tests/data/schema/test_bm_schema.yaml (renamed from tests/schema/test_bm_schema.yaml) | 0 | ||||
-rw-r--r-- | tests/data/schema/test_vm_schema.yaml (renamed from tests/schema/test_vm_schema.yaml) | 0 | ||||
-rw-r--r-- | tests/data/test_plan/bm_ping.yaml (renamed from tests/test_case/bm_ping.yaml) | 0 | ||||
-rw-r--r-- | tests/data/test_plan/bm_with_proxy.yaml (renamed from tests/test_case/bm_with_proxy.yaml) | 0 | ||||
-rw-r--r-- | tests/data/test_plan/bm_without_proxy.yaml (renamed from tests/test_case/bm_without_proxy.yaml) | 0 | ||||
-rw-r--r-- | tests/data/test_plan/vm.yaml (renamed from tests/test_case/vm.yaml) | 0 | ||||
-rw-r--r-- | tests/data/test_plan/vm_error.yaml (renamed from tests/test_case/vm_error.yaml) | 0 | ||||
-rw-r--r-- | tests/functional/__init__.py | 0 | ||||
-rw-r--r-- | tests/functional/yaml_schema_test.py (renamed from tests/yaml_schema_test.py) | 0 | ||||
-rw-r--r-- | tests/unit/__init__.py | 0 | ||||
-rw-r--r-- | tests/unit/api/__init__.py | 0 | ||||
-rw-r--r-- | tests/unit/api/qtip_server_test.py (renamed from tests/qtip_server_test.py) | 0 | ||||
-rw-r--r-- | tests/unit/cli/__init__.py | 0 | ||||
-rw-r--r-- | tests/unit/runner/__init__.py | 0 | ||||
-rw-r--r-- | tests/unit/runner/perftest_test.py | 13 | ||||
-rw-r--r-- | tests/unit/runner/suite_test.py | 13 | ||||
-rw-r--r-- | tests/unit/runner/test_plan_test.py | 13 | ||||
-rw-r--r-- | tests/unit/utils/__init__.py | 0 | ||||
-rw-r--r-- | tests/unit/utils/ansible_api_test.py (renamed from tests/ansible_api_test.py) | 0 | ||||
-rw-r--r-- | tests/unit/utils/args_handler_test.py (renamed from tests/args_handler_test.py) | 0 | ||||
-rw-r--r-- | tests/unit/utils/cli_test.py (renamed from tests/cli_test.py) | 0 | ||||
-rw-r--r-- | tests/unit/utils/create_zones_test.py (renamed from tests/create_zones_test.py) | 0 | ||||
-rw-r--r-- | tests/unit/utils/driver_test.py (renamed from tests/driver_test.py) | 0 | ||||
-rw-r--r-- | tests/unit/utils/env_setup_test.py (renamed from tests/env_setup_test.py) | 0 | ||||
-rw-r--r-- | tests/unit/utils/spawn_vm_test.py (renamed from tests/spawn_vm_test.py) | 0 |
31 files changed, 122 insertions, 0 deletions
diff --git a/qtip/runner/__init__.py b/qtip/runner/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/qtip/runner/__init__.py diff --git a/qtip/runner/perftest.py b/qtip/runner/perftest.py new file mode 100644 index 00000000..835f2a81 --- /dev/null +++ b/qtip/runner/perftest.py @@ -0,0 +1,27 @@ +############################################################################## +# Copyright (c) 2016 ZTE Corp and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + + +class PerfTest: + """A perf test collects raw performance metrics by running test tools""" + + def __init__(self): + pass + + @staticmethod + def list_all(): + """list all available perf tests""" + pass + + def desc(self): + """description of the perf test""" + pass + + def run(self): + pass diff --git a/qtip/runner/suite.py b/qtip/runner/suite.py new file mode 100644 index 00000000..f0f2f63e --- /dev/null +++ b/qtip/runner/suite.py @@ -0,0 +1,28 @@ +############################################################################## +# Copyright (c) 2016 ZTE Corp and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + + +class Suite: + """A suite is consist of one or several perf tests and produces one QPI""" + + def __init__(self): + pass + + @staticmethod + def list_all(): + """list all available suites""" + pass + + def desc(self): + """description of the suite""" + pass + + def run(self): + """run included perftests in the suite""" + pass diff --git a/qtip/runner/test_plan.py b/qtip/runner/test_plan.py new file mode 100644 index 00000000..d20221df --- /dev/null +++ b/qtip/runner/test_plan.py @@ -0,0 +1,28 @@ +############################################################################## +# Copyright (c) 2016 ZTE Corp and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + + +class TestPlan: + """A test plan is consist of test configuration and selected test suites""" + + def __init__(self): + pass + + @staticmethod + def list_all(): + """list all available test plans""" + pass + + def desc(self): + """description of the test plan""" + pass + + def run(self): + """run included suites""" + pass diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tests/__init__.py diff --git a/tests/output/hosts b/tests/data/output/hosts index 9b47df0e..9b47df0e 100644 --- a/tests/output/hosts +++ b/tests/data/output/hosts diff --git a/tests/schema/test_bm_schema.yaml b/tests/data/schema/test_bm_schema.yaml index a7c27e3f..a7c27e3f 100644 --- a/tests/schema/test_bm_schema.yaml +++ b/tests/data/schema/test_bm_schema.yaml diff --git a/tests/schema/test_vm_schema.yaml b/tests/data/schema/test_vm_schema.yaml index 524f8fe4..524f8fe4 100644 --- a/tests/schema/test_vm_schema.yaml +++ b/tests/data/schema/test_vm_schema.yaml diff --git a/tests/test_case/bm_ping.yaml b/tests/data/test_plan/bm_ping.yaml index 41d696e2..41d696e2 100644 --- a/tests/test_case/bm_ping.yaml +++ b/tests/data/test_plan/bm_ping.yaml diff --git a/tests/test_case/bm_with_proxy.yaml b/tests/data/test_plan/bm_with_proxy.yaml index 1d73300b..1d73300b 100644 --- a/tests/test_case/bm_with_proxy.yaml +++ b/tests/data/test_plan/bm_with_proxy.yaml diff --git a/tests/test_case/bm_without_proxy.yaml b/tests/data/test_plan/bm_without_proxy.yaml index a9ae3b71..a9ae3b71 100644 --- a/tests/test_case/bm_without_proxy.yaml +++ b/tests/data/test_plan/bm_without_proxy.yaml diff --git a/tests/test_case/vm.yaml b/tests/data/test_plan/vm.yaml index 4c8453ca..4c8453ca 100644 --- a/tests/test_case/vm.yaml +++ b/tests/data/test_plan/vm.yaml diff --git a/tests/test_case/vm_error.yaml b/tests/data/test_plan/vm_error.yaml index f13d3a00..f13d3a00 100644 --- a/tests/test_case/vm_error.yaml +++ b/tests/data/test_plan/vm_error.yaml diff --git a/tests/functional/__init__.py b/tests/functional/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tests/functional/__init__.py diff --git a/tests/yaml_schema_test.py b/tests/functional/yaml_schema_test.py index a975dca6..a975dca6 100644 --- a/tests/yaml_schema_test.py +++ b/tests/functional/yaml_schema_test.py diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tests/unit/__init__.py diff --git a/tests/unit/api/__init__.py b/tests/unit/api/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tests/unit/api/__init__.py diff --git a/tests/qtip_server_test.py b/tests/unit/api/qtip_server_test.py index 96544c95..96544c95 100644 --- a/tests/qtip_server_test.py +++ b/tests/unit/api/qtip_server_test.py diff --git a/tests/unit/cli/__init__.py b/tests/unit/cli/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tests/unit/cli/__init__.py diff --git a/tests/unit/runner/__init__.py b/tests/unit/runner/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tests/unit/runner/__init__.py diff --git a/tests/unit/runner/perftest_test.py b/tests/unit/runner/perftest_test.py new file mode 100644 index 00000000..798afadd --- /dev/null +++ b/tests/unit/runner/perftest_test.py @@ -0,0 +1,13 @@ +############################################################################## +# Copyright (c) 2016 ZTE Corp and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + + +class TestPerfTest: + def test_list(self): + assert True diff --git a/tests/unit/runner/suite_test.py b/tests/unit/runner/suite_test.py new file mode 100644 index 00000000..a2023cf8 --- /dev/null +++ b/tests/unit/runner/suite_test.py @@ -0,0 +1,13 @@ +############################################################################## +# Copyright (c) 2016 ZTE Corp and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + + +class TestSuite: + def test_list(self): + assert True diff --git a/tests/unit/runner/test_plan_test.py b/tests/unit/runner/test_plan_test.py new file mode 100644 index 00000000..81f618c7 --- /dev/null +++ b/tests/unit/runner/test_plan_test.py @@ -0,0 +1,13 @@ +############################################################################## +# Copyright (c) 2016 ZTE Corp and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + + +class TestTestPlan: + def test_list(self): + assert True diff --git a/tests/unit/utils/__init__.py b/tests/unit/utils/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tests/unit/utils/__init__.py diff --git a/tests/ansible_api_test.py b/tests/unit/utils/ansible_api_test.py index 6b1afb44..6b1afb44 100644 --- a/tests/ansible_api_test.py +++ b/tests/unit/utils/ansible_api_test.py diff --git a/tests/args_handler_test.py b/tests/unit/utils/args_handler_test.py index b67fd993..b67fd993 100644 --- a/tests/args_handler_test.py +++ b/tests/unit/utils/args_handler_test.py diff --git a/tests/cli_test.py b/tests/unit/utils/cli_test.py index 86dd6b98..86dd6b98 100644 --- a/tests/cli_test.py +++ b/tests/unit/utils/cli_test.py diff --git a/tests/create_zones_test.py b/tests/unit/utils/create_zones_test.py index 8b1e97cc..8b1e97cc 100644 --- a/tests/create_zones_test.py +++ b/tests/unit/utils/create_zones_test.py diff --git a/tests/driver_test.py b/tests/unit/utils/driver_test.py index 432ce1ae..432ce1ae 100644 --- a/tests/driver_test.py +++ b/tests/unit/utils/driver_test.py diff --git a/tests/env_setup_test.py b/tests/unit/utils/env_setup_test.py index e28c6a18..e28c6a18 100644 --- a/tests/env_setup_test.py +++ b/tests/unit/utils/env_setup_test.py diff --git a/tests/spawn_vm_test.py b/tests/unit/utils/spawn_vm_test.py index ba237378..ba237378 100644 --- a/tests/spawn_vm_test.py +++ b/tests/unit/utils/spawn_vm_test.py |