# ============LICENSE_END============================================
#
#
-"""
-resources:
-{vm-type}_server_{vm-type_index}
-"""
import pytest
from .structures import Heat
flavor = processor.get_network_flavor(resource)
if flavor != network_flavor:
continue
+
regex_name = processor.get_rid_match_tuple(rid)[0]
- if regex_name in regex_names:
+ if regex_name and regex_name in regex_names:
continue
bad.append(rid)
assert not bad, "%s resource ids %s must match one of %s" % (
run_test(
yaml_file,
- regex_names=("ip", "v6_ip"),
+ regex_names=("external"),
network_flavor=ContrailV2InstanceIpProcessor.network_flavor_external,
)
"""
run_test(
yaml_file,
- regex_names=("int_ip", "int_v6_ip"),
+ regex_names=("internal"),
network_flavor=ContrailV2InstanceIpProcessor.network_flavor_internal,
)