aboutsummaryrefslogtreecommitdiffstats
path: root/ice_validator/tests/test_fixed_ips_format.py
diff options
context:
space:
mode:
authorstark, steven <ss820f@att.com>2018-04-23 08:49:34 -0700
committerstark, steven <ss820f@att.com>2018-04-23 08:49:34 -0700
commit655f39713cca2595a812ccd60cc738301aef8b2f (patch)
treeb643a746b17ed00575b980c2bb233ce7cbf2109b /ice_validator/tests/test_fixed_ips_format.py
parent671ada85afbb8112a7ae854950cea24756be4dd3 (diff)
[VVP] add bug fixes and reserve port updates
Adding test script updates and reserve port Change-Id: I2af5263a48a53117021f166d08395685e89fd122 Issue-ID: VVP-56 Signed-off-by: stark, steven <ss820f@att.com>
Diffstat (limited to 'ice_validator/tests/test_fixed_ips_format.py')
-rw-r--r--ice_validator/tests/test_fixed_ips_format.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/ice_validator/tests/test_fixed_ips_format.py b/ice_validator/tests/test_fixed_ips_format.py
index 039c619..8e159ba 100644
--- a/ice_validator/tests/test_fixed_ips_format.py
+++ b/ice_validator/tests/test_fixed_ips_format.py
@@ -40,7 +40,9 @@
import pytest
import yaml
-from .utils.network_roles import get_network_role_from_port
+from .utils.ports import is_reserved_port
+from .utils.network_roles import get_network_role_from_port,\
+ property_uses_get_resource
import re
@@ -76,13 +78,17 @@ def test_fixed_ips_format(heat_template):
pytest.skip("No resources specified in the heat template")
invalid_fixed_ips = []
- for v1 in yml["resources"].values():
+ for k1, v1 in yml["resources"].items():
if not isinstance(v1, dict):
continue
if "properties" not in v1:
continue
if v1.get("type") != "OS::Neutron::Port":
continue
+ if is_reserved_port(k1):
+ continue
+ if property_uses_get_resource(v1, "network"):
+ continue
network_role = get_network_role_from_port(v1)
for k2, v2 in v1["properties"].items():