summaryrefslogtreecommitdiffstats
path: root/sdnvpn/test/functest
diff options
context:
space:
mode:
authorStamatis Katsaounis <mokats@intracom-telecom.com>2018-10-02 13:57:47 +0300
committerStamatis Katsaounis <mokats@intracom-telecom.com>2018-10-02 13:57:47 +0300
commit4d9843200ef1dde2442667cd077afb24f09087ba (patch)
treec7e951d81a490d50a977defa45c23c57973e7abc /sdnvpn/test/functest
parent46cb9e081cb7cb64201d739f46cc1fc2fecf2a12 (diff)
Remove tempest networking bgpvpn testcases
JIRA: SDNVPN-230 This patch removes networking bgpvpn testcases from sdnvpn project. The testcases from gambia release and up until now they run by functest project inside smoke container. There is no reason to run them inside features functest container any more. Change-Id: Iae031c17d15822358bfe21448c0d16fa14bc35de Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
Diffstat (limited to 'sdnvpn/test/functest')
-rw-r--r--sdnvpn/test/functest/config.yaml13
-rw-r--r--sdnvpn/test/functest/run_tempest.py59
2 files changed, 0 insertions, 72 deletions
diff --git a/sdnvpn/test/functest/config.yaml b/sdnvpn/test/functest/config.yaml
index 40703f3..31dce67 100644
--- a/sdnvpn/test/functest/config.yaml
+++ b/sdnvpn/test/functest/config.yaml
@@ -2,19 +2,6 @@ defaults:
flavor: m1.tiny # adapt to your environment
testcases:
- sdnvpn.test.functest.run_tempest:
- enabled: true
- order: 0
- description: Neutron BGPVPN tests in tempest
- image_name: bgpvpn-tempest-image
- functest_conf:
- case_name: bgpvpn-tempest-tests
- run:
- args:
- mode: '^networking_bgpvpn_tempest\.'
- option:
- - '--concurrency=4'
-
sdnvpn.test.functest.testcase_1:
enabled: true
order: 1
diff --git a/sdnvpn/test/functest/run_tempest.py b/sdnvpn/test/functest/run_tempest.py
deleted file mode 100644
index f56b18f..0000000
--- a/sdnvpn/test/functest/run_tempest.py
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright (c) 2018 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
-#
-#
-import logging
-import os
-
-from functest.opnfv_tests.openstack.tempest.tempest import TempestCommon
-from six.moves import configparser
-
-from sdnvpn.lib import config as sdnvpn_config
-
-
-logger = logging.getLogger('sdnvpn-tempest')
-
-TESTCASE_CONFIG = sdnvpn_config.TestcaseConfig(
- 'sdnvpn.test.functest.run_tempest')
-
-
-class BgpvpnTempest(TempestCommon):
- def configure(self, **kwargs):
- super(BgpvpnTempest, self).configure(**kwargs)
- rconfig = configparser.RawConfigParser()
- rconfig.read(self.conf_file)
- rconfig.set('service_available', 'bgpvpn', 'True')
- logger.debug("Updating %s with bgpvpn=True"
- % self.conf_file)
- with open(self.conf_file, 'wb') as config_file:
- rconfig.write(config_file)
- self.backup_tempest_config(self.conf_file, self.res_dir)
-
-
-def main():
- try:
- test_case = BgpvpnTempest(**TESTCASE_CONFIG.functest_conf)
- except Exception as e:
- logger.error("Initialization of bgpvpn tempest failed: %s" % e)
- status = 'FAIL'
- else:
- test_case.check_requirements()
- try:
- test_case.run(**TESTCASE_CONFIG.functest_conf['run']['args'])
- except KeyError:
- test_case.run()
- status = 'PASS' if (test_case.is_successful() == os.EX_OK) else 'FAIL'
- test_case.clean()
-
- return {'status': status,
- 'details': 'Tempest testcases have been completed'}
-
-
-if __name__ == '__main__':
- main()