summaryrefslogtreecommitdiffstats
path: root/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2017-03-21 21:25:53 +0100
committerManuel Buil <mbuil@suse.com>2017-03-21 21:28:32 +0100
commit3c6e0efc2f4575ec2cf2e1304bdc1b66cdc08b06 (patch)
tree6a1432f4430337b62ec5173d7cd6cef631b8d484 /sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py
parent6282c5cce71ae994aaece374375234cf207992f8 (diff)
Bug fix in CI: security groups not working
CI tests create a lot of security groups with the name default. Our SFs are assigned to a default security group but there are so many that the result is not predictable and most likely wrong. We add it now to example-sg sec. group Change-Id: I64984aa7b6114747c5bab5fb2e4b8d8d32865bb0 Signed-off-by: Manuel Buil <mbuil@suse.com>
Diffstat (limited to 'sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py')
-rw-r--r--sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py5
1 files changed, 5 insertions, 0 deletions
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 68ac1e24..021e8df1 100644
--- a/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py
+++ b/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py
@@ -159,6 +159,11 @@ def main():
logger.error('ERROR while booting vnfs')
sys.exit(1)
+ instances = os_utils.get_instances(nova_client)
+ for instance in instances:
+ if ('client' not in instance.name) and ('server' not in instance.name):
+ os_utils.add_secgroup_to_instance(nova_client, instance.id, sg_id)
+
os_tacker.create_sfc(tacker_client, 'red', chain_vnf_names=['testVNF1'])
os_tacker.create_sfc(tacker_client, 'blue', chain_vnf_names=['testVNF2'])