aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtestcases/OpenStack/vPing/vping.py5
-rwxr-xr-xtestcases/features/sfc/sfc.py8
-rwxr-xr-xtestcases/features/sfc/sfc_colorado1.py8
3 files changed, 18 insertions, 3 deletions
diff --git a/testcases/OpenStack/vPing/vping.py b/testcases/OpenStack/vPing/vping.py
index 168ed4f8f..90f664568 100755
--- a/testcases/OpenStack/vPing/vping.py
+++ b/testcases/OpenStack/vPing/vping.py
@@ -33,9 +33,6 @@ parser.add_argument("-m", "--mode", default='ssh',
args = parser.parse_args()
-""" logging configuration """
-logger = ft_logger.Logger("vping_userdata").getLogger()
-
def main():
if args.mode == 'ssh':
@@ -43,6 +40,8 @@ def main():
else:
case = 'vping_userdata'
+ logger = ft_logger.Logger(case).getLogger()
+
util.init(logger)
util.check_repo_exist()
diff --git a/testcases/features/sfc/sfc.py b/testcases/features/sfc/sfc.py
index 4ece7d0ad..a97ebcea6 100755
--- a/testcases/features/sfc/sfc.py
+++ b/testcases/features/sfc/sfc.py
@@ -160,6 +160,14 @@ def main():
'egress', 'tcp',
port_range_min=22,
port_range_max=22)
+ os_utils.create_secgroup_rule(neutron_client, sg['id'],
+ 'ingress', 'tcp',
+ port_range_min=80,
+ port_range_max=80)
+ os_utils.create_secgroup_rule(neutron_client, sg['id'],
+ 'egress', 'tcp',
+ port_range_min=80,
+ port_range_max=80)
_, custom_flv_id = os_utils.get_or_create_flavor(
'custom', 1500, 10, 1, public=True)
diff --git a/testcases/features/sfc/sfc_colorado1.py b/testcases/features/sfc/sfc_colorado1.py
index 5b04c32a9..8ae4e6bac 100755
--- a/testcases/features/sfc/sfc_colorado1.py
+++ b/testcases/features/sfc/sfc_colorado1.py
@@ -159,6 +159,14 @@ def main():
'egress', 'tcp',
port_range_min=22,
port_range_max=22)
+ os_utils.create_secgroup_rule(neutron_client, sg['id'],
+ 'ingress', 'tcp',
+ port_range_min=80,
+ port_range_max=80)
+ os_utils.create_secgroup_rule(neutron_client, sg['id'],
+ 'egress', 'tcp',
+ port_range_min=80,
+ port_range_max=80)
_, custom_flv_id = os_utils.get_or_create_flavor(
'custom', 1500, 10, 1, public=True)