From 79dc8c7fe14ebce964a9aee6779026dac17c4319 Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Tue, 28 Jun 2016 13:35:21 +0200 Subject: Added directory structure for the tests and script templates. JIRA: SDNVPN-19 Change-Id: I358efcb377211182a93b2db43f248ca82c14fb36 Signed-off-by: jose.lausuch --- test/functest/README.md | 5 +++++ test/functest/__init__.py | 0 test/functest/config.yaml | 26 ++++++++++++++++++++++++++ test/functest/run_tests.sh | 14 ++++++++++++++ test/functest/tempest_1.sh | 10 ++++++++++ test/functest/tempest_2.sh | 10 ++++++++++ test/functest/testcase_1.py | 22 ++++++++++++++++++++++ test/functest/testcase_2.py | 22 ++++++++++++++++++++++ test/functest/testcase_3.py | 22 ++++++++++++++++++++++ 9 files changed, 131 insertions(+) create mode 100644 test/functest/README.md create mode 100644 test/functest/__init__.py create mode 100644 test/functest/config.yaml create mode 100644 test/functest/run_tests.sh create mode 100644 test/functest/tempest_1.sh create mode 100644 test/functest/tempest_2.sh create mode 100644 test/functest/testcase_1.py create mode 100644 test/functest/testcase_2.py create mode 100644 test/functest/testcase_3.py (limited to 'test') diff --git a/test/functest/README.md b/test/functest/README.md new file mode 100644 index 0000000..62e55d2 --- /dev/null +++ b/test/functest/README.md @@ -0,0 +1,5 @@ +The functest directory contains the test cases implementation to be run inside the +Functest framework. + +The definition of the test cases is explained in the project Wiki page: +https://wiki.opnfv.org/display/sdnvpn/main diff --git a/test/functest/__init__.py b/test/functest/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/test/functest/config.yaml b/test/functest/config.yaml new file mode 100644 index 0000000..8aacb04 --- /dev/null +++ b/test/functest/config.yaml @@ -0,0 +1,26 @@ +--- + +tempest_1: + enabled: true + description: ODL VPN Service tests + type: bash + +tempest_2: + enabled: true + description: OpenStack Neutron BGPVPN API tests + type: bash + +testcase_1: + enabled: true + description: VPN provides connectivity between subnets + type: python + +testcase_2: + enabled: true + description: Tenant separation + type: python + +testcase_3: + enabled: true + description: Data center gateway integration + type: python diff --git a/test/functest/run_tests.sh b/test/functest/run_tests.sh new file mode 100644 index 0000000..301fa36 --- /dev/null +++ b/test/functest/run_tests.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# +# 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 +# + +# 1. Check config.yaml to see which tests to run + +# 2. For each test case, execute the proper command to run it + diff --git a/test/functest/tempest_1.sh b/test/functest/tempest_1.sh new file mode 100644 index 0000000..9ee621e --- /dev/null +++ b/test/functest/tempest_1.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# +# 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 +# + diff --git a/test/functest/tempest_2.sh b/test/functest/tempest_2.sh new file mode 100644 index 0000000..9ee621e --- /dev/null +++ b/test/functest/tempest_2.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# +# 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 +# + diff --git a/test/functest/testcase_1.py b/test/functest/testcase_1.py new file mode 100644 index 0000000..1e586b1 --- /dev/null +++ b/test/functest/testcase_1.py @@ -0,0 +1,22 @@ +#!/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.utils.functest_logger as ft_logger +import functest.utils.functest_utils as functest_utils +import functest.utils.openstack_utils as os_utils + + +def main(): + pass + + +if __name__ == '__main__': + main() diff --git a/test/functest/testcase_2.py b/test/functest/testcase_2.py new file mode 100644 index 0000000..1e586b1 --- /dev/null +++ b/test/functest/testcase_2.py @@ -0,0 +1,22 @@ +#!/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.utils.functest_logger as ft_logger +import functest.utils.functest_utils as functest_utils +import functest.utils.openstack_utils as os_utils + + +def main(): + pass + + +if __name__ == '__main__': + main() diff --git a/test/functest/testcase_3.py b/test/functest/testcase_3.py new file mode 100644 index 0000000..1e586b1 --- /dev/null +++ b/test/functest/testcase_3.py @@ -0,0 +1,22 @@ +#!/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.utils.functest_logger as ft_logger +import functest.utils.functest_utils as functest_utils +import functest.utils.openstack_utils as os_utils + + +def main(): + pass + + +if __name__ == '__main__': + main() -- cgit 1.2.3-korg