X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ice_validator%2Ftests%2Ftest_files_in_flat_dir.py;h=34732ba006f1674cc095775fc8b95027128d1742;hb=0c4e64d87728b89aa9cd4d41d738f5bfe64ceee3;hp=ac0ff7c85272372565c1f1e6a3d20b8a2d5b2636;hpb=1f4df7c7ad27b23773ad9cdbe4db1632ce388cf1;p=vvp%2Fvalidation-scripts.git diff --git a/ice_validator/tests/test_files_in_flat_dir.py b/ice_validator/tests/test_files_in_flat_dir.py index ac0ff7c..34732ba 100644 --- a/ice_validator/tests/test_files_in_flat_dir.py +++ b/ice_validator/tests/test_files_in_flat_dir.py @@ -44,7 +44,8 @@ def test_files_in_flat_dir(template_dir): paths = (os.path.join(template_dir, p) for p in os.listdir(template_dir)) nested_dirs = (p for p in paths if os.path.isdir(p)) nested_dirs = [os.path.relpath(p, template_dir) for p in nested_dirs] - msg = "Nested directories detected in template directory: {}".format( - ", ".join(nested_dirs) - ) + msg = ( + "Sub-directories are not allowed in a Heat package. The following " + "directories were detected: {}" + ).format(", ".join(nested_dirs)) assert not nested_dirs, msg