5 Commits

Author SHA1 Message Date
Ian Wienand
dd363a182f Cleanup test_ip.sh to give more consistent output
Minor changes to give more consistent output; no functional changes to
tests.

Change-Id: I6c4ef74587c59b786761735c7bd528f3d7f94905
2015-05-28 10:40:55 +10:00
Mahito
d82d3f1340 Add test case to 'cidr2netmask'
'cidr2netmask' of function doesn't have enough test case
and test code isn't smart.
This patch adds test case and refactors test code.

Change-Id: Iab20ef06fe78316a78198ab75c0afe738a577dd6
Closes-bug: #1457989
2015-05-26 15:33:32 +09:00
Ian Wienand
f56348bcb2 Use unittest help in test_ip.sh
Use the unittest helper to track test runs and correctly exit with a
failure code if there is a problem

Change-Id: Ie62f354a8cd3b8fd5986e6943a073f7955fb55ba
2015-04-17 13:23:25 +10:00
Sean Dague
365421b99a isolate unit tests from stackrc HOST_IP check
The HOST_IP check in stackrc is useful for real users, but some cloud
nodes that infra runs don't detect it correctly, and it's not actually
required for unit tests to work right.

Change-Id: Id2aaa713aea91825021e9d8d49d19f3e40a8e6c9
2015-02-06 15:27:43 -05:00
Dean Troyer
d4f69b21f5 Remove python-netaddr requirement
Remove python-netaddr as a DevStack (stack.sh) requirement,
this does not change any individual project requirements.

Specifically it replaces address_in_net() and adds cidr2netmask()
and maskip() functions.

Change-Id: Ic604437fde2e057faced40a310ab282f3eb27726
2013-07-24 12:25:35 -05:00