diff --git a/test/e2e/quadlet/emptyline.container b/test/e2e/quadlet/emptyline.container index f7aba88d66..823d93ecf4 100644 --- a/test/e2e/quadlet/emptyline.container +++ b/test/e2e/quadlet/emptyline.container @@ -1,3 +1,6 @@ +## assert-failed +## assert-stderr-contains "no Image or Rootfs key specified" + [Container] Exec=true \ diff --git a/test/e2e/quadlet_test.go b/test/e2e/quadlet_test.go index d896f6433c..c0e988d2c2 100644 --- a/test/e2e/quadlet_test.go +++ b/test/e2e/quadlet_test.go @@ -1074,6 +1074,7 @@ BOGUS=foo Entry("Build - File Key relative no WD", "file-rel-no-wd.build", "converting \"file-rel-no-wd.build\": relative path in File key requires SetWorkingDirectory key to be set"), Entry("Build - Neither WorkingDirectory nor File Key", "neither-workingdirectory-nor-file.build", "converting \"neither-workingdirectory-nor-file.build\": neither SetWorkingDirectory, nor File key specified"), Entry("Build - No ImageTag Key", "no-imagetag.build", "converting \"no-imagetag.build\": no ImageTag key specified"), + Entry("emptyline.container", "emptyline.container", "converting \"emptyline.container\": no Image or Rootfs key specified"), ) DescribeTable("Running success quadlet with ServiceName test case",