X-Git-Url: https://gerrit.onap.org/r/gitweb?p=vvp%2Fvalidation-scripts.git;a=blobdiff_plain;f=ice_validator%2Ftests%2Ftest_incremental_module.py;fp=ice_validator%2Ftests%2Ftest_incremental_module.py;h=47c7901f1f5a3390406e290a43f16503649fd261;hp=606dfe4d268a7e908f47eccf5b08156010c0051e;hb=4c2a2033d927552f7e9281e516afba38f146c242;hpb=81e7158ad5e4b0b5996931642bd19c85f2b3cb6e 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)) )