aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ice_validator/tests/structures.py23
-rw-r--r--ice_validator/tests/utils/ports.py16
2 files changed, 0 insertions, 39 deletions
diff --git a/ice_validator/tests/structures.py b/ice_validator/tests/structures.py
index aaed8d1..535eeac 100644
--- a/ice_validator/tests/structures.py
+++ b/ice_validator/tests/structures.py
@@ -427,29 +427,6 @@ class ContrailV2VirtualNetworkProcessor(HeatProcessor):
)
-class HeatResourceGroupProcessor(HeatProcessor):
- """ Heat ResourceGroup
- """
-
- resource_type = "OS::Heat::ResourceGroup"
- re_rids = collections.OrderedDict(
- [
- (
- "subint",
- _get_regex(
- r"(?P<vm_type>.+)"
- r"_(?P<vm_type_index>\d+)"
- r"_subint"
- r"_(?P<network_role>.+)"
- r"_port_(?P<port_index>\d+)"
- r"_subinterfaces"
- r"$"
- ),
- )
- ]
- )
-
-
class NeutronNetProcessor(HeatProcessor):
""" Neutron Net resource
"""
diff --git a/ice_validator/tests/utils/ports.py b/ice_validator/tests/utils/ports.py
index d6c3be9..4dbbb4f 100644
--- a/ice_validator/tests/utils/ports.py
+++ b/ice_validator/tests/utils/ports.py
@@ -243,19 +243,3 @@ def mismatch_resource_and_parameter_attribute(check, resource_re_match, paramete
return ("{0} {1} does not match parameter {2} {1}").format(
rid, check, parameter
)
-
-
-def get_list_of_ports_attached_to_nova_server(nova_server):
- networks_list = nova_server.get("properties", {}).get("networks")
-
- port_ids = []
- if networks_list:
- for network in networks_list:
- network_prop = network.get("port")
- if network_prop:
- pid = network_prop.get("get_param")
- if not pid:
- pid = network_prop.get("get_resource")
- port_ids.append(pid)
-
- return port_ids