summaryrefslogtreecommitdiffstats
path: root/functest/tests/unit/features
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2017-04-05 15:32:58 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2017-04-05 15:36:11 +0200
commit7c79dd75b519ac22483de76b4433a9923da68ef6 (patch)
tree7160fb4e99a12bdc051c3d72c272e34193d1000c /functest/tests/unit/features
parent2bd6e7d12040659b5be66d6d9a0df55838446379 (diff)
Add case_name as args in all features
Now run_tests.py forces case_name as arg of every TestCase or Feature. It also updates the related unit tests. Change-Id: I4d70005b53730f36785f0ac95f4f0f6a04455794 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/tests/unit/features')
-rw-r--r--functest/tests/unit/features/test_barometer.py3
-rw-r--r--functest/tests/unit/features/test_copper.py2
-rw-r--r--functest/tests/unit/features/test_doctor.py2
-rw-r--r--functest/tests/unit/features/test_domino.py2
-rw-r--r--functest/tests/unit/features/test_netready.py2
-rw-r--r--functest/tests/unit/features/test_odl_sfc.py2
-rw-r--r--functest/tests/unit/features/test_promise.py2
-rw-r--r--functest/tests/unit/features/test_sdnvpn.py2
-rw-r--r--functest/tests/unit/features/test_security_scan.py2
9 files changed, 10 insertions, 9 deletions
diff --git a/functest/tests/unit/features/test_barometer.py b/functest/tests/unit/features/test_barometer.py
index 6c68019d..62f2e0d6 100644
--- a/functest/tests/unit/features/test_barometer.py
+++ b/functest/tests/unit/features/test_barometer.py
@@ -27,7 +27,8 @@ class BarometerTesting(unittest.TestCase):
logging.disable(logging.CRITICAL)
def setUp(self):
- self.barometer = barometer.BarometerCollectd()
+ self.barometer = barometer.BarometerCollectd(
+ case_name="barometercollectd")
def test_init(self):
self.assertEqual(self.barometer.project_name, "barometer")
diff --git a/functest/tests/unit/features/test_copper.py b/functest/tests/unit/features/test_copper.py
index 193ad6c9..b6d187f7 100644
--- a/functest/tests/unit/features/test_copper.py
+++ b/functest/tests/unit/features/test_copper.py
@@ -21,7 +21,7 @@ class CopperTesting(unittest.TestCase):
logging.disable(logging.CRITICAL)
def setUp(self):
- self.copper = copper.Copper()
+ self.copper = copper.Copper(case_name="copper-notification")
def test_init(self):
self.assertEqual(self.copper.project_name, "copper")
diff --git a/functest/tests/unit/features/test_doctor.py b/functest/tests/unit/features/test_doctor.py
index f37a89e1..36bac44f 100644
--- a/functest/tests/unit/features/test_doctor.py
+++ b/functest/tests/unit/features/test_doctor.py
@@ -21,7 +21,7 @@ class DoctorTesting(unittest.TestCase):
logging.disable(logging.CRITICAL)
def setUp(self):
- self.doctor = doctor.Doctor()
+ self.doctor = doctor.Doctor(case_name="doctor-notification")
def test_init(self):
self.assertEqual(self.doctor.project_name, "doctor")
diff --git a/functest/tests/unit/features/test_domino.py b/functest/tests/unit/features/test_domino.py
index fe08bbab..c0bfd14b 100644
--- a/functest/tests/unit/features/test_domino.py
+++ b/functest/tests/unit/features/test_domino.py
@@ -21,7 +21,7 @@ class DominoTesting(unittest.TestCase):
logging.disable(logging.CRITICAL)
def setUp(self):
- self.domino = domino.Domino()
+ self.domino = domino.Domino(case_name="domino-multinode")
def test_init(self):
self.assertEqual(self.domino.project_name, "domino")
diff --git a/functest/tests/unit/features/test_netready.py b/functest/tests/unit/features/test_netready.py
index 7d78e13e..47be4203 100644
--- a/functest/tests/unit/features/test_netready.py
+++ b/functest/tests/unit/features/test_netready.py
@@ -21,7 +21,7 @@ class NetreadyTesting(unittest.TestCase):
logging.disable(logging.CRITICAL)
def setUp(self):
- self.netready = netready.GluonVping()
+ self.netready = netready.GluonVping(case_name="gluon_vping")
def test_init(self):
self.assertEqual(self.netready.project_name, "netready")
diff --git a/functest/tests/unit/features/test_odl_sfc.py b/functest/tests/unit/features/test_odl_sfc.py
index da592de1..dcdcdff6 100644
--- a/functest/tests/unit/features/test_odl_sfc.py
+++ b/functest/tests/unit/features/test_odl_sfc.py
@@ -21,7 +21,7 @@ class OpenDaylightSFCTesting(unittest.TestCase):
logging.disable(logging.CRITICAL)
def setUp(self):
- self.odl_sfc = odl_sfc.OpenDaylightSFC()
+ self.odl_sfc = odl_sfc.OpenDaylightSFC(case_name="functest-odl-sfc")
def test_init(self):
self.assertEqual(self.odl_sfc.project_name, "sfc")
diff --git a/functest/tests/unit/features/test_promise.py b/functest/tests/unit/features/test_promise.py
index e22196cb..29b4d4ec 100644
--- a/functest/tests/unit/features/test_promise.py
+++ b/functest/tests/unit/features/test_promise.py
@@ -21,7 +21,7 @@ class PromiseTesting(unittest.TestCase):
logging.disable(logging.CRITICAL)
def setUp(self):
- self.promise = promise.Promise()
+ self.promise = promise.Promise(case_name="promise")
def test_init(self):
self.assertEqual(self.promise.project_name, "promise")
diff --git a/functest/tests/unit/features/test_sdnvpn.py b/functest/tests/unit/features/test_sdnvpn.py
index 7dcf7cc8..8fa43fc4 100644
--- a/functest/tests/unit/features/test_sdnvpn.py
+++ b/functest/tests/unit/features/test_sdnvpn.py
@@ -21,7 +21,7 @@ class SdnVpnTesting(unittest.TestCase):
logging.disable(logging.CRITICAL)
def setUp(self):
- self.sdnvpn = sdnvpn.SdnVpnTests()
+ self.sdnvpn = sdnvpn.SdnVpnTests(case_name="bgpvpn")
def test_init(self):
self.assertEqual(self.sdnvpn.project_name, "sdnvpn")
diff --git a/functest/tests/unit/features/test_security_scan.py b/functest/tests/unit/features/test_security_scan.py
index 8e814992..f0e40159 100644
--- a/functest/tests/unit/features/test_security_scan.py
+++ b/functest/tests/unit/features/test_security_scan.py
@@ -21,7 +21,7 @@ class SecurityScanTesting(unittest.TestCase):
logging.disable(logging.CRITICAL)
def setUp(self):
- self.sscan = security_scan.SecurityScan()
+ self.sscan = security_scan.SecurityScan(case_name="security_scan")
def test_init(self):
self.assertEqual(self.sscan.project_name, "securityscanning")