fedora-modularity/meta-test-family

More descriptive message in test_from_directive_is_valid

Closed this issue · 0 comments

It took me too much time to figure out what is the reason of this test failure:

TEST FAIL:  /usr/lib/python2.7/site-packages/moduleframework/tests/static/dockerfile_lint.py:DockerInstructionsTests.test_from_directive_is_valid
     reason -> FROM instruction is not valid.
        More info: https://docs.docker.com/engine/reference/builder/#from
     /home/zdravomil/avocado/job-results/job-2018-03-07T05.38-ae3c4aa/test-results/02-_usr_lib_python2.7_site-packages_moduleframework_tests_static_dockerfile_lint.py:DockerInstructionsTests.test_from_directive_is_valid/debug.log

with test data:

FROM fedora
...

The message should describe what is wrong with the base image name (missing registry, ...)