summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2015-12-20 15:10:58 +0000
committerNeil Williams <codehelp@debian.org>2015-12-20 15:10:58 +0000
commit2749d3f08e774f8b8f38a389edbd6dafbfd99d66 (patch)
tree2d9f3d8c79b3df91775e716a9297c0324354dce1 /yarns
parentacafe6a9ccde31e313965fcfd044804c1306d47e (diff)
downloadvmdebootstrap-2749d3f08e774f8b8f38a389edbd6dafbfd99d66.tar.gz
add tests for combining image, tarball and squash
Diffstat (limited to 'yarns')
-rw-r--r--yarns/200-fast-tests.yarn22
1 files changed, 22 insertions, 0 deletions
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