From d467ead2a0d8585cd7b702804029ed514f26b513 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Thu, 13 Apr 2017 16:52:16 +0200 Subject: Remove deprecated feature modules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- functest/opnfv_tests/features/copper.py | 25 ------------------------- functest/opnfv_tests/features/doctor.py | 24 ------------------------ functest/opnfv_tests/features/domino.py | 25 ------------------------- functest/opnfv_tests/features/netready.py | 22 ---------------------- functest/opnfv_tests/features/odl_sfc.py | 20 -------------------- functest/opnfv_tests/features/promise.py | 24 ------------------------ functest/opnfv_tests/features/sdnvpn.py | 20 -------------------- functest/opnfv_tests/features/security_scan.py | 23 ----------------------- 8 files changed, 183 deletions(-) delete mode 100644 functest/opnfv_tests/features/copper.py delete mode 100644 functest/opnfv_tests/features/doctor.py delete mode 100644 functest/opnfv_tests/features/domino.py delete mode 100644 functest/opnfv_tests/features/netready.py delete mode 100644 functest/opnfv_tests/features/odl_sfc.py delete mode 100644 functest/opnfv_tests/features/promise.py delete mode 100644 functest/opnfv_tests/features/sdnvpn.py delete mode 100644 functest/opnfv_tests/features/security_scan.py (limited to 'functest/opnfv_tests/features') diff --git a/functest/opnfv_tests/features/copper.py b/functest/opnfv_tests/features/copper.py deleted file mode 100644 index 2c5459fc4..000000000 --- a/functest/opnfv_tests/features/copper.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/python -# -# Copyright 2016 AT&T Intellectual Property, Inc -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -import functest.core.feature as base -from functest.utils.constants import CONST - - -class Copper(base.BashFeature): - def __init__(self, **kwargs): - repo = CONST.__getattribute__('dir_repo_copper') - kwargs["cmd"] = 'cd %s/tests && bash run.sh && cd -' % repo - super(Copper, self).__init__(**kwargs) diff --git a/functest/opnfv_tests/features/doctor.py b/functest/opnfv_tests/features/doctor.py deleted file mode 100644 index 0e39248d8..000000000 --- a/functest/opnfv_tests/features/doctor.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/python -# -# Copyright (c) 2017 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 -# -# 0.1: This script boots the VM1 and allocates IP address from Nova -# Later, the VM2 boots then execute cloud-init to ping VM1. -# After successful ping, both the VMs are deleted. -# 0.2: measure test duration and publish results under json format -# -# -import functest.core.feature as base -from functest.utils.constants import CONST - - -class Doctor(base.BashFeature): - def __init__(self, **kwargs): - repo = CONST.__getattribute__('dir_repo_doctor') - kwargs["cmd"] = 'cd %s/tests && ./run.sh' % repo - super(Doctor, self).__init__(**kwargs) diff --git a/functest/opnfv_tests/features/domino.py b/functest/opnfv_tests/features/domino.py deleted file mode 100644 index b5def3f3b..000000000 --- a/functest/opnfv_tests/features/domino.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/python -# -# Copyright (c) 2015 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 -# -# 0.1: This script boots the VM1 and allocates IP address from Nova -# Later, the VM2 boots then execute cloud-init to ping VM1. -# After successful ping, both the VMs are deleted. -# 0.2: measure test duration and publish results under json format -# 0.3: add report flag to push results when needed -# 0.4: refactoring to match Test abstraction class - -import functest.core.feature as base -from functest.utils.constants import CONST - - -class Domino(base.BashFeature): - def __init__(self, **kwargs): - repo = CONST.__getattribute__('dir_repo_domino') - kwargs["cmd"] = 'cd %s && ./tests/run_multinode.sh' % repo - super(Domino, self).__init__(**kwargs) diff --git a/functest/opnfv_tests/features/netready.py b/functest/opnfv_tests/features/netready.py deleted file mode 100644 index 717a4a348..000000000 --- a/functest/opnfv_tests/features/netready.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/python -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# - -# -import functest.core.feature as base -from functest.utils.constants import CONST - - -class GluonVping(base.BashFeature): - - def __init__(self, **kwargs): - repo = CONST.__getattribute__('dir_repo_netready') - dir_netready_functest = '{}/test/functest'.format(repo) - kwargs["cmd"] = ('cd %s && python ./gluon-test-suite.py' % - dir_netready_functest) - super(GluonVping, self).__init__(**kwargs) diff --git a/functest/opnfv_tests/features/odl_sfc.py b/functest/opnfv_tests/features/odl_sfc.py deleted file mode 100644 index f5ecf7334..000000000 --- a/functest/opnfv_tests/features/odl_sfc.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/python -# -# Copyright (c) 2016 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 functest.core.feature as base -from functest.utils.constants import CONST - - -class OpenDaylightSFC(base.BashFeature): - - def __init__(self, **kwargs): - repo = CONST.__getattribute__('dir_repo_sfc') - dir_sfc_functest = '{}/sfc/tests/functest'.format(repo) - kwargs["cmd"] = 'cd %s && python ./run_tests.py' % dir_sfc_functest - super(OpenDaylightSFC, self).__init__(**kwargs) diff --git a/functest/opnfv_tests/features/promise.py b/functest/opnfv_tests/features/promise.py deleted file mode 100644 index b9e128f05..000000000 --- a/functest/opnfv_tests/features/promise.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/python -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -import functest.core.feature as base -from functest.utils.constants import CONST - - -class Promise(base.BashFeature): - def __init__(self, **kwargs): - repo = CONST.__getattribute__('dir_repo_promise') - dir_promise_functest = '{}/promise/test/functest'.format(repo) - kwargs["cmd"] = 'cd %s && python ./run_tests.py' % dir_promise_functest - super(Promise, self).__init__(**kwargs) diff --git a/functest/opnfv_tests/features/sdnvpn.py b/functest/opnfv_tests/features/sdnvpn.py deleted file mode 100644 index 10a97e926..000000000 --- a/functest/opnfv_tests/features/sdnvpn.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/python -# -# Copyright (c) 2016 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 functest.core.feature as base -from functest.utils.constants import CONST - - -class SdnVpnTests(base.BashFeature): - - def __init__(self, **kwargs): - repo = CONST.__getattribute__('dir_repo_sdnvpn') - dir_sfc_functest = '{}/sdnvpn/test/functest'.format(repo) - kwargs["cmd"] = 'cd %s && python ./run_tests.py' % dir_sfc_functest - super(SdnVpnTests, self).__init__(**kwargs) diff --git a/functest/opnfv_tests/features/security_scan.py b/functest/opnfv_tests/features/security_scan.py deleted file mode 100644 index 8f167259c..000000000 --- a/functest/opnfv_tests/features/security_scan.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/python -# -# Copyright (c) 2015 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 functest.core.feature as base -from functest.utils.constants import CONST - - -class SecurityScan(base.BashFeature): - def __init__(self, **kwargs): - repo = CONST.__getattribute__('dir_repo_securityscan') - conf = CONST.__getattribute__('dir_functest_conf') - kwargs["cmd"] = ('. {0}/stackrc && ' - 'cd {1} && ' - 'python security_scan.py --config config.ini && ' - 'cd -'.format(conf, repo)) - super(SecurityScan, self).__init__(**kwargs) -- cgit 1.2.3-korg