summaryrefslogtreecommitdiffstats
path: root/functest/tests/unit/features
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2017-04-13 16:52:16 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2017-04-14 08:57:36 +0200
commitd467ead2a0d8585cd7b702804029ed514f26b513 (patch)
tree66cfe5b4cef6b728e32663b3bcac995b744a8a60 /functest/tests/unit/features
parent32ccb8926fd7057fed83f68e9035bd13577bf58a (diff)
Remove deprecated feature modules
All features running bash programs are now simply defined in testcases.yaml. All deprecated modules and unit tests are removed. Change-Id: I7047b6f7a1e43cb8ed5ba2d569d5dcecae68fb86 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_copper.py39
-rw-r--r--functest/tests/unit/features/test_doctor.py40
-rw-r--r--functest/tests/unit/features/test_domino.py40
-rw-r--r--functest/tests/unit/features/test_netready.py40
-rw-r--r--functest/tests/unit/features/test_odl_sfc.py42
-rw-r--r--functest/tests/unit/features/test_promise.py41
-rw-r--r--functest/tests/unit/features/test_sdnvpn.py40
-rw-r--r--functest/tests/unit/features/test_security_scan.py44
8 files changed, 0 insertions, 326 deletions
diff --git a/functest/tests/unit/features/test_copper.py b/functest/tests/unit/features/test_copper.py
deleted file mode 100644
index 56bf4137..00000000
--- a/functest/tests/unit/features/test_copper.py
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2017 Orange 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
-
-# pylint: disable=missing-docstring
-
-import logging
-import unittest
-
-from functest.opnfv_tests.features import copper
-from functest.utils.constants import CONST
-
-
-class CopperTesting(unittest.TestCase):
-
- logging.disable(logging.CRITICAL)
-
- _case_name = "copper-notification"
- _project_name = "copper"
-
- def setUp(self):
- self.copper = copper.Copper(case_name=self._case_name,
- project_name=self._project_name)
-
- def test_init(self):
- self.assertEqual(self.copper.project_name, self._project_name)
- repo = CONST.__getattribute__('dir_repo_copper')
- self.assertEqual(
- self.copper.cmd,
- "cd {}/tests && bash run.sh && cd -".format(repo))
-
-
-if __name__ == "__main__":
- unittest.main(verbosity=2)
diff --git a/functest/tests/unit/features/test_doctor.py b/functest/tests/unit/features/test_doctor.py
deleted file mode 100644
index 650d1509..00000000
--- a/functest/tests/unit/features/test_doctor.py
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2017 Orange 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
-
-# pylint: disable=missing-docstring
-
-import logging
-import unittest
-
-from functest.opnfv_tests.features import doctor
-from functest.utils.constants import CONST
-
-
-class DoctorTesting(unittest.TestCase):
-
- logging.disable(logging.CRITICAL)
-
- _case_name = "doctor-notification"
- _project_name = "doctor"
-
- def setUp(self):
- self.doctor = doctor.Doctor(case_name=self._case_name,
- project_name=self._project_name)
-
- def test_init(self):
- self.assertEqual(self.doctor.project_name, self._project_name)
- self.assertEqual(self.doctor.case_name, self._case_name)
- repo = CONST.__getattribute__('dir_repo_doctor')
- self.assertEqual(
- self.doctor.cmd,
- 'cd {}/tests && ./run.sh'.format(repo))
-
-
-if __name__ == "__main__":
- unittest.main(verbosity=2)
diff --git a/functest/tests/unit/features/test_domino.py b/functest/tests/unit/features/test_domino.py
deleted file mode 100644
index f311af33..00000000
--- a/functest/tests/unit/features/test_domino.py
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2017 Orange 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
-
-# pylint: disable=missing-docstring
-
-import logging
-import unittest
-
-from functest.opnfv_tests.features import domino
-from functest.utils.constants import CONST
-
-
-class DominoTesting(unittest.TestCase):
-
- logging.disable(logging.CRITICAL)
-
- _case_name = "domino-multinode"
- _project_name = "domino"
-
- def setUp(self):
- self.domino = domino.Domino(case_name=self._case_name,
- project_name=self._project_name)
-
- def test_init(self):
- self.assertEqual(self.domino.project_name, self._project_name)
- self.assertEqual(self.domino.case_name, self._case_name)
- repo = CONST.__getattribute__('dir_repo_domino')
- self.assertEqual(
- self.domino.cmd,
- 'cd {} && ./tests/run_multinode.sh'.format(repo))
-
-
-if __name__ == "__main__":
- unittest.main(verbosity=2)
diff --git a/functest/tests/unit/features/test_netready.py b/functest/tests/unit/features/test_netready.py
deleted file mode 100644
index 96840195..00000000
--- a/functest/tests/unit/features/test_netready.py
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2017 Orange 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
-
-# pylint: disable=missing-docstring
-
-import logging
-import unittest
-
-from functest.opnfv_tests.features import netready
-from functest.utils.constants import CONST
-
-
-class NetreadyTesting(unittest.TestCase):
-
- logging.disable(logging.CRITICAL)
-
- _case_name = "gluon_vping"
- _project_name = "netready"
-
- def setUp(self):
- self.netready = netready.GluonVping(case_name=self._case_name,
- project_name=self._project_name)
-
- def test_init(self):
- self.assertEqual(self.netready.project_name, self._project_name)
- self.assertEqual(self.netready.case_name, self._case_name)
- repo = CONST.__getattribute__('dir_repo_netready')
- self.assertEqual(
- self.netready.cmd,
- 'cd {}/test/functest && python ./gluon-test-suite.py'.format(repo))
-
-
-if __name__ == "__main__":
- unittest.main(verbosity=2)
diff --git a/functest/tests/unit/features/test_odl_sfc.py b/functest/tests/unit/features/test_odl_sfc.py
deleted file mode 100644
index 5673e2b1..00000000
--- a/functest/tests/unit/features/test_odl_sfc.py
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2017 Orange 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
-
-# pylint: disable=missing-docstring
-
-import logging
-import unittest
-
-from functest.opnfv_tests.features import odl_sfc
-from functest.utils.constants import CONST
-
-
-class OpenDaylightSFCTesting(unittest.TestCase):
-
- logging.disable(logging.CRITICAL)
-
- _case_name = "functest-odl-sfc"
- _project_name = "sfc"
-
- def setUp(self):
- self.odl_sfc = odl_sfc.OpenDaylightSFC(
- case_name="functest-odl-sfc",
- project_name=self._project_name)
-
- def test_init(self):
- self.assertEqual(self.odl_sfc.project_name, "sfc")
- self.assertEqual(self.odl_sfc.case_name, "functest-odl-sfc")
- repo = CONST.__getattribute__('dir_repo_sfc')
- dir_sfc_functest = '{}/sfc/tests/functest'.format(repo)
- self.assertEqual(
- self.odl_sfc.cmd,
- 'cd {} && python ./run_tests.py'.format(dir_sfc_functest))
-
-
-if __name__ == "__main__":
- unittest.main(verbosity=2)
diff --git a/functest/tests/unit/features/test_promise.py b/functest/tests/unit/features/test_promise.py
deleted file mode 100644
index 8fa1fba0..00000000
--- a/functest/tests/unit/features/test_promise.py
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2017 Orange 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
-
-# pylint: disable=missing-docstring
-
-import logging
-import unittest
-
-from functest.opnfv_tests.features import promise
-from functest.utils.constants import CONST
-
-
-class PromiseTesting(unittest.TestCase):
-
- logging.disable(logging.CRITICAL)
-
- _case_name = "promise"
- _project_name = "promise"
-
- def setUp(self):
- self.promise = promise.Promise(case_name=self._case_name,
- project_name=self._project_name)
-
- def test_init(self):
- self.assertEqual(self.promise.project_name, self._project_name)
- self.assertEqual(self.promise.case_name, self._case_name)
- repo = CONST.__getattribute__('dir_repo_promise')
- self.assertEqual(
- self.promise.cmd,
- 'cd {}/promise/test/functest && python ./run_tests.py'.format(
- repo))
-
-
-if __name__ == "__main__":
- unittest.main(verbosity=2)
diff --git a/functest/tests/unit/features/test_sdnvpn.py b/functest/tests/unit/features/test_sdnvpn.py
deleted file mode 100644
index 75657fc4..00000000
--- a/functest/tests/unit/features/test_sdnvpn.py
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2017 Orange 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
-
-# pylint: disable=missing-docstring
-
-import logging
-import unittest
-
-from functest.opnfv_tests.features import sdnvpn
-from functest.utils.constants import CONST
-
-
-class SdnVpnTesting(unittest.TestCase):
-
- logging.disable(logging.CRITICAL)
-
- _case_name = "bgpvpn"
- _project_name = "sdnvpn"
-
- def setUp(self):
- self.sdnvpn = sdnvpn.SdnVpnTests(case_name=self._case_name,
- project_name=self._project_name)
-
- def test_init(self):
- self.assertEqual(self.sdnvpn.project_name, self._project_name)
- self.assertEqual(self.sdnvpn.case_name, self._case_name)
- repo = CONST.__getattribute__('dir_repo_sdnvpn')
- self.assertEqual(
- self.sdnvpn.cmd,
- 'cd {}/sdnvpn/test/functest && python ./run_tests.py'.format(repo))
-
-
-if __name__ == "__main__":
- unittest.main(verbosity=2)
diff --git a/functest/tests/unit/features/test_security_scan.py b/functest/tests/unit/features/test_security_scan.py
deleted file mode 100644
index 61ae9dc1..00000000
--- a/functest/tests/unit/features/test_security_scan.py
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2017 Orange 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
-
-# pylint: disable=missing-docstring
-
-import logging
-import unittest
-
-from functest.opnfv_tests.features import security_scan
-from functest.utils.constants import CONST
-
-
-class SecurityScanTesting(unittest.TestCase):
-
- logging.disable(logging.CRITICAL)
-
- _case_name = "security_scan"
- _project_name = "security_scan"
-
- def setUp(self):
- self.sscan = security_scan.SecurityScan(
- case_name=self._case_name, project_name=self._project_name)
-
- def test_init(self):
- self.assertEqual(self.sscan.project_name, self._project_name)
- self.assertEqual(self.sscan.case_name, self._case_name)
- repo = CONST.__getattribute__('dir_repo_securityscan')
- self.assertEqual(
- self.sscan.cmd, (
- '. {0}/stackrc && cd {1} && '
- 'python security_scan.py --config config.ini && '
- 'cd -'.format(
- CONST.__getattribute__("dir_functest_conf"),
- repo)))
-
-
-if __name__ == "__main__":
- unittest.main(verbosity=2)