From 4f3cda730f9e9cb070e45846b3583ef53971c391 Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Fri, 12 Apr 2019 13:52:44 -0500 Subject: [PATCH] Tweak network segment range fiunction tests We seem to be having occasional overlaps in the ranges, as they were identical in all tests, change each test to not overlap the others so running in parallel is not racy. Change-Id: I7ea467a3aa2e4a4b4a334c10ea6ba21409c46af0 Signed-off-by: Dean Troyer --- .../network/v2/test_network_segment_range.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/openstackclient/tests/functional/network/v2/test_network_segment_range.py b/openstackclient/tests/functional/network/v2/test_network_segment_range.py index c42f8744c1..37c87dd59d 100644 --- a/openstackclient/tests/functional/network/v2/test_network_segment_range.py +++ b/openstackclient/tests/functional/network/v2/test_network_segment_range.py @@ -42,8 +42,8 @@ class NetworkSegmentRangeTests(common.NetworkTests): '--private ' + "--project " + self.PROJECT_NAME + " " + '--network-type vxlan ' + - '--minimum 2018 ' + - '--maximum 2055 ' + + '--minimum 2005 ' + + '--maximum 2009 ' + name )) self.assertEqual( @@ -69,8 +69,8 @@ class NetworkSegmentRangeTests(common.NetworkTests): ' network segment range create -f json ' + '--shared ' + '--network-type geneve ' + - '--minimum 2018 ' + - '--maximum 2055 ' + + '--minimum 2013 ' + + '--maximum 2017 ' + name )) network_segment_range_id = json_output.get('id') @@ -102,8 +102,8 @@ class NetworkSegmentRangeTests(common.NetworkTests): '--private ' + "--project " + self.PROJECT_NAME + " " + '--network-type geneve ' + - '--minimum 2018 ' + - '--maximum 2055 ' + + '--minimum 2021 ' + + '--maximum 2025 ' + name )) self.addCleanup( @@ -119,8 +119,8 @@ class NetworkSegmentRangeTests(common.NetworkTests): json_output["project_id"], ) - new_minimum = 2010 - new_maximum = 2060 + new_minimum = 2020 + new_maximum = 2029 cmd_output = self.openstack( 'network segment range set --minimum {min} --maximum {max} {name}' .format(min=new_minimum, max=new_maximum, name=name)