summaryrefslogtreecommitdiffstats
path: root/test/functest
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-06-28 13:35:21 +0200
committerjose.lausuch <jose.lausuch@ericsson.com>2016-06-28 14:03:36 +0200
commit79dc8c7fe14ebce964a9aee6779026dac17c4319 (patch)
tree1b4628ed78e6f2e5e730826f081912da9c9a5bf2 /test/functest
parentb05bc1b359d21589ccacd76bdb8c7663cca5ac11 (diff)
Added directory structure for the tests and script templates.
JIRA: SDNVPN-19 Change-Id: I358efcb377211182a93b2db43f248ca82c14fb36 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'test/functest')
-rw-r--r--test/functest/README.md5
-rw-r--r--test/functest/__init__.py0
-rw-r--r--test/functest/config.yaml26
-rw-r--r--test/functest/run_tests.sh14
-rw-r--r--test/functest/tempest_1.sh10
-rw-r--r--test/functest/tempest_2.sh10
-rw-r--r--test/functest/testcase_1.py22
-rw-r--r--test/functest/testcase_2.py22
-rw-r--r--test/functest/testcase_3.py22
9 files changed, 131 insertions, 0 deletions
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
--- /dev/null
+++ b/test/functest/__init__.py
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()