From 868f7131a40a557517903fc3775ca77655b21a07 Mon Sep 17 00:00:00 2001 From: Tomas Jamrisko Date: Mon, 13 Nov 2017 14:04:33 +0100 Subject: [PATCH] Create and delete security groups The connectivity test suites are creating and deleting most resources as they require, except for allowing SSH, which gets created during l2 tests and is reused by l3, which creates a dependency. It would be great, if l3 test suite worked independently Change-Id: Icdf47ceaaf3b1fb0353cca454eb039795137e7c1 Signed-off-by: Tomas Jamrisko --- csit/suites/openstack/connectivity/01_l2_tests.robot | 4 ++++ csit/suites/openstack/connectivity/02_l3_tests.robot | 8 ++++++++ .../connectivity/03_external_network_tests.robot | 8 ++++++++ 3 files changed, 20 insertions(+) diff --git a/csit/suites/openstack/connectivity/01_l2_tests.robot b/csit/suites/openstack/connectivity/01_l2_tests.robot index bb9de4e8a3..8ae59d0f69 100644 --- a/csit/suites/openstack/connectivity/01_l2_tests.robot +++ b/csit/suites/openstack/connectivity/01_l2_tests.robot @@ -155,6 +155,10 @@ Delete Networks : FOR ${NetworkElement} IN @{NETWORKS_NAME} \ Delete Network ${NetworkElement} +Delete Security Group + [Documentation] Delete security groups with neutron request + Delete SecurityGroup ${SECURITY_GROUP} + Verify Flows Cleanup [Documentation] Verify that flows have been cleaned up properly after removing all neutron configurations ${feature_check_status}= Run Keyword And Return Status Verify Feature Is Installed odl-vtn-manager-neutron diff --git a/csit/suites/openstack/connectivity/02_l3_tests.robot b/csit/suites/openstack/connectivity/02_l3_tests.robot index 8f58e351b0..a04d7c1666 100644 --- a/csit/suites/openstack/connectivity/02_l3_tests.robot +++ b/csit/suites/openstack/connectivity/02_l3_tests.robot @@ -56,6 +56,10 @@ Create Subnets For network_3 [Documentation] Create Sub Nets for the Networks with neutron request. Create SubNet @{NETWORKS_NAME}[2] @{SUBNETS_NAME}[2] @{SUBNETS_RANGE}[2] +Add Ssh Allow Rule + [Documentation] Allow all TCP/UDP/ICMP packets for this suite + OpenStackOperations.Create Allow All SecurityGroup ${SECURITY_GROUP} + Create Vm Instances For network_1 [Documentation] Create Four Vm instances using flavor and image names for a network. Create Vm Instances network_1 ${NET_1_VM_INSTANCES} sg=${SECURITY_GROUP} @@ -208,6 +212,10 @@ Delete Networks : FOR ${NetworkElement} IN @{NETWORKS_NAME} \ Delete Network ${NetworkElement} +Delete Security Group + [Documentation] Delete security groups with neutron request + Delete SecurityGroup ${SECURITY_GROUP} + Verify Flows Cleanup [Documentation] Verify that flows have been cleaned up properly after removing all neutron configurations Verify Flows Are Cleaned Up On All OpenStack Nodes diff --git a/csit/suites/openstack/connectivity/03_external_network_tests.robot b/csit/suites/openstack/connectivity/03_external_network_tests.robot index 304e14431a..018aabba23 100644 --- a/csit/suites/openstack/connectivity/03_external_network_tests.robot +++ b/csit/suites/openstack/connectivity/03_external_network_tests.robot @@ -44,6 +44,10 @@ Create Subnet For Private Network [Documentation] Create Sub Nets for the Networks with neutron request. OpenStackOperations.Create SubNet @{NETWORKS_NAME}[0] @{SUBNETS_NAME}[0] @{SUBNETS_RANGE}[0] +Add Ssh Allow Rule + [Documentation] Allow all TCP/UDP/ICMP packets for this suite + OpenStackOperations.Create Allow All SecurityGroup ${SECURITY_GROUP} + Create Vm Instances [Documentation] Create VM instances using flavor and image names for a network. OpenStackOperations.Create Vm Instances @{NETWORKS_NAME}[0] ${VM_INSTANCES_FLOATING} sg=${SECURITY_GROUP} @@ -162,6 +166,10 @@ Delete Networks \ OpenStackOperations.Delete Network ${NetworkElement} OpenStackOperations.Delete Network ${external_net_name} +Delete Security Group + [Documentation] Delete security groups with neutron request + Delete SecurityGroup ${SECURITY_GROUP} + Verify Flows Cleanup [Documentation] Verify that flows have been cleaned up properly after removing all neutron configurations Verify Flows Are Cleaned Up On All OpenStack Nodes -- 2.36.6