aboutsummaryrefslogtreecommitdiffstats
path: root/ice_validator/tests/test_incremental_module.py
diff options
context:
space:
mode:
authorLovett, Trevor <trevor.lovett@att.com>2020-08-06 15:33:13 -0500
committerLovett, Trevor <trevor.lovett@att.com>2020-08-06 15:33:13 -0500
commit4c2a2033d927552f7e9281e516afba38f146c242 (patch)
tree77911f93d60349b8c8c75fdcff431159ad03f175 /ice_validator/tests/test_incremental_module.py
parent81e7158ad5e4b0b5996931642bd19c85f2b3cb6e (diff)
Aligned test with updated R-610030HEADmasteristanbulhonoluluguilin
An incremental module must have a server or volume Change-Id: I579f7303cbeb2785fbb3e1e85b10af77433292fa Issue-ID: VVP-451 Signed-off-by: Lovett, Trevor <trevor.lovett@att.com>
Diffstat (limited to 'ice_validator/tests/test_incremental_module.py')
-rw-r--r--ice_validator/tests/test_incremental_module.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/ice_validator/tests/test_incremental_module.py b/ice_validator/tests/test_incremental_module.py
index 606dfe4..47c7901 100644
--- a/ice_validator/tests/test_incremental_module.py
+++ b/ice_validator/tests/test_incremental_module.py
@@ -50,10 +50,14 @@ def test_incremental_module_has_server(yaml_files):
servers = Heat(filepath=module).get_resource_by_type(
"OS::Nova::Server", all_resources=True
)
- if not servers:
+ volumes = Heat(filepath=module).get_resource_by_type(
+ "OS::Cinder::Volume", all_resources=True
+ )
+ if not (servers or volumes):
errors.append(os.path.basename(module))
assert not errors, (
- "The following incremental modules do not contain an OS::Nova::Server "
+ "The following incremental modules do not contain at least one "
+ "OS::Nova::Server or OS::Cinder::Volume "
"as required: {}".format(", ".join(errors))
)