From 9c11d59035ff1741c5e6d935aa7c2ed23d15f485 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Thu, 14 Sep 2017 18:56:18 +0200 Subject: Create vnffg providing the neutron_port JIRA: SFC-107 We are submitting the vnffgd with a variable for the neutron_port. Before creating the vnffg, we must provide a file with the neutron_port value Change-Id: I9994e2baa53f323df17434448d372598c0d94c72 Signed-off-by: Manuel Buil --- sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py') diff --git a/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py b/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py index 22249c25..031fc005 100644 --- a/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py +++ b/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py @@ -185,9 +185,11 @@ def main(): tosca_file=tosca_file, vnffgd_name='red') - os_tacker.create_vnffg(tacker_client, - vnffgd_name='red', - vnffg_name='red_http_works') + neutron_port = test_utils.get_client_port_id(client_instance) + test_utils.create_vnffg_with_param_file(tacker_client, 'red', + 'red_http', + default_param_file, + neutron_port) # Start measuring the time it takes to implement the classification rules t1 = threading.Thread(target=test_utils.wait_for_classification_rules, @@ -270,9 +272,10 @@ def main(): tosca_file=tosca_file, vnffgd_name='blue') - os_tacker.create_vnffg(tacker_client, - vnffgd_name='blue', - vnffg_name='blue_ssh_works') + test_utils.create_vnffg_with_param_file(tacker_client, 'blue', + 'blue_ssh', + default_param_file, + neutron_port) # Start measuring the time it takes to implement the classification rules t2 = threading.Thread(target=test_utils.wait_for_classification_rules, -- cgit 1.2.3-korg