summaryrefslogtreecommitdiffstats
path: root/tests/functest/odl-sfc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functest/odl-sfc')
-rw-r--r--tests/functest/odl-sfc/config.yaml1
-rwxr-xr-xtests/functest/odl-sfc/sfc-test2.py4
-rwxr-xr-xtests/functest/odl-sfc/sfc.py2
-rwxr-xr-xtests/functest/odl-sfc/sfc_tacker_test2.bash4
-rw-r--r--tests/functest/odl-sfc/vnfd-templates/test-vnfd1.yaml (renamed from tests/functest/odl-sfc/test-vnfd1.yaml)0
-rw-r--r--tests/functest/odl-sfc/vnfd-templates/test-vnfd2.yaml (renamed from tests/functest/odl-sfc/test-vnfd2.yaml)0
-rw-r--r--tests/functest/odl-sfc/vnfd-templates/test2-vnfd1.yaml (renamed from tests/functest/odl-sfc/test2-vnfd1.yaml)0
-rw-r--r--tests/functest/odl-sfc/vnfd-templates/test2-vnfd2.yaml (renamed from tests/functest/odl-sfc/test2-vnfd2.yaml)0
8 files changed, 7 insertions, 4 deletions
diff --git a/tests/functest/odl-sfc/config.yaml b/tests/functest/odl-sfc/config.yaml
index e99ea102..05f087f0 100644
--- a/tests/functest/odl-sfc/config.yaml
+++ b/tests/functest/odl-sfc/config.yaml
@@ -7,6 +7,7 @@ defaults:
fuel_master_passwd: r00tme
image_format: qcow2
url: "http://artifacts.opnfv.org/sfc/demo"
+ vnfd-dir: "vnfd-templates"
testcases:
# this change requires sfc.py to be renamed as sfc_two_chains_SSH_and_HTTP
diff --git a/tests/functest/odl-sfc/sfc-test2.py b/tests/functest/odl-sfc/sfc-test2.py
index 2c64a3d6..5e97e698 100755
--- a/tests/functest/odl-sfc/sfc-test2.py
+++ b/tests/functest/odl-sfc/sfc-test2.py
@@ -45,8 +45,8 @@ SECGROUP_NAME = "example-sg"
SECGROUP_DESCR = "Example Security group"
SFC_TEST_DIR = os.path.join(REPO_PATH, "tests/functest/odl-sfc/")
TACKER_SCRIPT = os.path.join(SFC_TEST_DIR, "sfc_tacker_test2.bash")
-TACKER_VNFD1 = os.path.join(SFC_TEST_DIR, "test2-vnfd1.yaml")
-TACKER_VNFD2 = os.path.join(SFC_TEST_DIR, "test2-vnfd2.yaml")
+TACKER_VNFD1 = os.path.join(SFC_TEST_DIR, "vnfd-templates", "test2-vnfd1.yaml")
+TACKER_VNFD2 = os.path.join(SFC_TEST_DIR, "vnfd-templates", "test2-vnfd2.yaml")
ssh_options = '-q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
json_results = {"tests": 4, "failures": 0}
diff --git a/tests/functest/odl-sfc/sfc.py b/tests/functest/odl-sfc/sfc.py
index 5c7a8522..0cc2d14a 100755
--- a/tests/functest/odl-sfc/sfc.py
+++ b/tests/functest/odl-sfc/sfc.py
@@ -103,12 +103,14 @@ def main():
srv_prv_ip = srv_instance.networks.get(TESTCASE_CONFIG.net_name)[0]
tosca_file = os.path.join(COMMON_CONFIG.sfc_test_dir,
+ COMMON_CONFIG.vnfd_dir,
TESTCASE_CONFIG.test_vnfd_red)
os_tacker.create_vnfd(
tacker_client,
tosca_file=tosca_file)
tosca_file = os.path.join(COMMON_CONFIG.sfc_test_dir,
+ COMMON_CONFIG.vnfd_dir,
TESTCASE_CONFIG.test_vnfd_blue)
os_tacker.create_vnfd(
tacker_client,
diff --git a/tests/functest/odl-sfc/sfc_tacker_test2.bash b/tests/functest/odl-sfc/sfc_tacker_test2.bash
index 04e6506e..156b19cb 100755
--- a/tests/functest/odl-sfc/sfc_tacker_test2.bash
+++ b/tests/functest/odl-sfc/sfc_tacker_test2.bash
@@ -2,8 +2,8 @@
BASEDIR=`dirname $0`
#import VNF descriptor
-tacker vnfd-create --vnfd-file ${BASEDIR}/test2-vnfd1.yaml
-tacker vnfd-create --vnfd-file ${BASEDIR}/test2-vnfd2.yaml
+tacker vnfd-create --vnfd-file ${BASEDIR}/vnfd-templates/test2-vnfd1.yaml
+tacker vnfd-create --vnfd-file ${BASEDIR}/vnfd-templates/test2-vnfd2.yaml
#create instances of the imported VNF
tacker vnf-create --name testVNF1 --vnfd-name test-vnfd1
diff --git a/tests/functest/odl-sfc/test-vnfd1.yaml b/tests/functest/odl-sfc/vnfd-templates/test-vnfd1.yaml
index 5c672e38..5c672e38 100644
--- a/tests/functest/odl-sfc/test-vnfd1.yaml
+++ b/tests/functest/odl-sfc/vnfd-templates/test-vnfd1.yaml
diff --git a/tests/functest/odl-sfc/test-vnfd2.yaml b/tests/functest/odl-sfc/vnfd-templates/test-vnfd2.yaml
index 8a570ab9..8a570ab9 100644
--- a/tests/functest/odl-sfc/test-vnfd2.yaml
+++ b/tests/functest/odl-sfc/vnfd-templates/test-vnfd2.yaml
diff --git a/tests/functest/odl-sfc/test2-vnfd1.yaml b/tests/functest/odl-sfc/vnfd-templates/test2-vnfd1.yaml
index 5c672e38..5c672e38 100644
--- a/tests/functest/odl-sfc/test2-vnfd1.yaml
+++ b/tests/functest/odl-sfc/vnfd-templates/test2-vnfd1.yaml
diff --git a/tests/functest/odl-sfc/test2-vnfd2.yaml b/tests/functest/odl-sfc/vnfd-templates/test2-vnfd2.yaml
index 8a570ab9..8a570ab9 100644
--- a/tests/functest/odl-sfc/test2-vnfd2.yaml
+++ b/tests/functest/odl-sfc/vnfd-templates/test2-vnfd2.yaml