diff options
Diffstat (limited to 'ice_validator')
-rw-r--r-- | ice_validator/tests/helpers.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ice_validator/tests/helpers.py b/ice_validator/tests/helpers.py index 6266f08..764be11 100644 --- a/ice_validator/tests/helpers.py +++ b/ice_validator/tests/helpers.py @@ -415,3 +415,11 @@ def remove(sequence, exclude, key=None): key_func = key if key else lambda x: x result = (s for s in sequence if key_func(s) not in exclude) return set(result) if isinstance(sequence, Set) else list(result) + + +def is_nova_server(resource): + """ + checks resource is a nova server + """ + return isinstance(resource, dict) and "type" in resource and "properties" in resource and resource.get("type") == "OS::Nova::Server" + |