diff options
| author | Huanxuan Ao <huanxuan.ao@easystack.cn> | 2017-01-14 20:20:09 +0800 |
|---|---|---|
| committer | Huanxuan Ao <huanxuan.ao@easystack.cn> | 2017-01-14 21:26:16 +0800 |
| commit | 7329e640db78eed23297da9fea3b28e3b194c2ff (patch) | |
| tree | 3e1f64e22422845e1b252e808db102a3dfb2c020 /openstackclient | |
| parent | 339ab40ee65a3be706591bc795f42b73040af19e (diff) | |
| download | python-openstackclient-7329e640db78eed23297da9fea3b28e3b194c2ff.tar.gz | |
Fix subnet creating failure in functional test
Noticed sometimes floating ip func test failed[1].
The first mumber of the address seems like cannot
bigger than 223. So specify subnet ranges as the
random number between 0 to 233, maybe it will safer
for our functional tests.
[1]: http://logs.openstack.org/50/418650/12/check/gate-osc-dsvm-functional-ubuntu-xenial/e163f68/console.html#_2017-01-14_06_58_35_930306
Change-Id: I44a23bce851dcf2009c8d77059cf75ed80145fb0
Diffstat (limited to 'openstackclient')
| -rw-r--r-- | openstackclient/tests/functional/network/v2/test_floating_ip.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/tests/functional/network/v2/test_floating_ip.py b/openstackclient/tests/functional/network/v2/test_floating_ip.py index 5f642f04..17fec501 100644 --- a/openstackclient/tests/functional/network/v2/test_floating_ip.py +++ b/openstackclient/tests/functional/network/v2/test_floating_ip.py @@ -37,7 +37,7 @@ class FloatingIpTests(base.TestCase): # Make a random subnet cls.subnet = ".".join(map( str, - (random.randint(0, 255) for _ in range(3)) + (random.randint(0, 223) for _ in range(3)) )) + ".0/26" # Create a network for the floating ip |
