From 2749d3f08e774f8b8f38a389edbd6dafbfd99d66 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Sun, 20 Dec 2015 15:10:58 +0000 Subject: add tests for combining image, tarball and squash --- yarns/200-fast-tests.yarn | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'yarns') diff --git a/yarns/200-fast-tests.yarn b/yarns/200-fast-tests.yarn index 8955d75..796535e 100644 --- a/yarns/200-fast-tests.yarn +++ b/yarns/200-fast-tests.yarn @@ -145,3 +145,25 @@ verify that vmdebootstrap parses the command line correctly. THEN vmdebootstrap exited with a zero exit code AND vmdebootstrap wrote a message matching linux-image-amd64 AND vmdebootstrap wrote a message matching unlikely + + SCENARIO only images can be converted to qcow2 + ASSUMING fast tests are requested + WHEN user attempts to run vmdebootstrap + ... --convert-qcow2 --tarball --arch=amd64 --dry-run + THEN vmdebootstrap exited with a non-zero exit code + AND vmdebootstrap wrote an error message matching qcow2 can only + AND vmdebootstrap wrote an error message matching with --image + + SCENARIO tarball is not usable with image + ASSUMING fast tests are requested + WHEN user attempts to run vmdebootstrap + ... --image=FOO --tarball=FOO --arch=amd64 --dry-run + THEN vmdebootstrap exited with a non-zero exit code + AND vmdebootstrap wrote an error message matching not both + + SCENARIO tarball is not usable with squash + ASSUMING fast tests are requested + WHEN user attempts to run vmdebootstrap + ... --squash=FOO --tarball=FOO --arch=amd64 --dry-run + THEN vmdebootstrap exited with a non-zero exit code + AND vmdebootstrap wrote an error message matching not both -- cgit v1.2.1