summaryrefslogtreecommitdiffstats
path: root/vstf/vstf/controller/unittest
diff options
context:
space:
mode:
authorYiting.Li <liyiting@huawei.com>2016-01-22 10:46:57 +0800
committerJun Li <matthew.lijun@huawei.com>2016-01-25 01:30:21 +0000
commit07fa6d43cf0ac1baf3cd67e741f474273fbd387d (patch)
tree17ed17fa64b121bd5189070f46e14db336a50bd4 /vstf/vstf/controller/unittest
parent486719ea0024e683f4e90832e647becf3d5d5ab7 (diff)
JIRA: BOTTLENECKS-29
Add a end-to-end test framework delete the wrong author flag and fix some missing of the copy right Change-Id: Ia9f72ff3e523f05cd0d5e32e3349a3f6acad5bd1 Signed-off-by: Yiting.Li <liyiting@huawei.com> (cherry picked from commit 0ea3b714615e7a9383048a13695bbe4d62f028fd)
Diffstat (limited to 'vstf/vstf/controller/unittest')
-rwxr-xr-xvstf/vstf/controller/unittest/README45
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/unittest/__init__.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/unittest/configuration.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/unittest/model.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/unittest/test_cfg_intent_parse.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/unittest/test_collect.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/unittest/test_driver_function.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/unittest/test_env_build.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/unittest/test_perf.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/unittest/test_ssh.py0
10 files changed, 0 insertions, 45 deletions
diff --git a/vstf/vstf/controller/unittest/README b/vstf/vstf/controller/unittest/README
deleted file mode 100755
index 61ef1a24..00000000
--- a/vstf/vstf/controller/unittest/README
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-the procedure to integrate a module unit testing into the unit testing framework:
-
-1.create your own unit test module, the name should start by 'test', for example, test_env.py
-
-2.create the test cases inside the module, inherit unittest.TestCase, for example:
- class TestNetnsManager(unittest.TestCase):
- def setUp(self): // preparing the testig
- pass
- def tearDown(self):// cleanup after testing
- pass
- def testCase1(self):// cases
- pass
-
-3.single modules testing, appending below code at the end of the module, execute 'python test_env.py'.
-
-if __name__ == "__main__":
- import logging
- logging.getLogger(__name__)
- logging.basicConfig(level = logging.DEBUG)
- unittest.main()
-
-4.multiple modules integration, create run_test.py,run_test.py the example code as below:
-
-import unittest
-import importlib
-
-test_order_list = [
- "vstf.services.agent.unittest.perf.test_utils",
- "vstf.services.agent.unittest.perf.test_netns",
- "vstf.services.agent.unittest.perf.test_netperf",
- "vstf.services.agent.unittest.perf.test_qperf",
- "vstf.services.agent.unittest.perf.test_pktgen",
-]
-
-if __name__ == '__main__':
- import logging
- logging.getLogger(__name__)
- logging.basicConfig(level = logging.DEBUG)
- for mod_name in test_order_list:
- mod = importlib.import_module(mod_name)
- suit = unittest.TestLoader().loadTestsFromModule(mod)
- unittest.TextTestRunner().run(suit)
-
diff --git a/vstf/vstf/controller/unittest/__init__.py b/vstf/vstf/controller/unittest/__init__.py
index df7d24d0..df7d24d0 100755..100644
--- a/vstf/vstf/controller/unittest/__init__.py
+++ b/vstf/vstf/controller/unittest/__init__.py
diff --git a/vstf/vstf/controller/unittest/configuration.py b/vstf/vstf/controller/unittest/configuration.py
index 6312efa2..6312efa2 100755..100644
--- a/vstf/vstf/controller/unittest/configuration.py
+++ b/vstf/vstf/controller/unittest/configuration.py
diff --git a/vstf/vstf/controller/unittest/model.py b/vstf/vstf/controller/unittest/model.py
index 4c38973e..4c38973e 100755..100644
--- a/vstf/vstf/controller/unittest/model.py
+++ b/vstf/vstf/controller/unittest/model.py
diff --git a/vstf/vstf/controller/unittest/test_cfg_intent_parse.py b/vstf/vstf/controller/unittest/test_cfg_intent_parse.py
index a08607bb..a08607bb 100755..100644
--- a/vstf/vstf/controller/unittest/test_cfg_intent_parse.py
+++ b/vstf/vstf/controller/unittest/test_cfg_intent_parse.py
diff --git a/vstf/vstf/controller/unittest/test_collect.py b/vstf/vstf/controller/unittest/test_collect.py
index 3e84d019..3e84d019 100755..100644
--- a/vstf/vstf/controller/unittest/test_collect.py
+++ b/vstf/vstf/controller/unittest/test_collect.py
diff --git a/vstf/vstf/controller/unittest/test_driver_function.py b/vstf/vstf/controller/unittest/test_driver_function.py
index 8d45c7b3..8d45c7b3 100755..100644
--- a/vstf/vstf/controller/unittest/test_driver_function.py
+++ b/vstf/vstf/controller/unittest/test_driver_function.py
diff --git a/vstf/vstf/controller/unittest/test_env_build.py b/vstf/vstf/controller/unittest/test_env_build.py
index e4529e48..e4529e48 100755..100644
--- a/vstf/vstf/controller/unittest/test_env_build.py
+++ b/vstf/vstf/controller/unittest/test_env_build.py
diff --git a/vstf/vstf/controller/unittest/test_perf.py b/vstf/vstf/controller/unittest/test_perf.py
index 0258ab65..0258ab65 100755..100644
--- a/vstf/vstf/controller/unittest/test_perf.py
+++ b/vstf/vstf/controller/unittest/test_perf.py
diff --git a/vstf/vstf/controller/unittest/test_ssh.py b/vstf/vstf/controller/unittest/test_ssh.py
index f2403551..f2403551 100755..100644
--- a/vstf/vstf/controller/unittest/test_ssh.py
+++ b/vstf/vstf/controller/unittest/test_ssh.py