summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-03-25 10:17:42 +0200
committerLars Wirzenius <liw@liw.fi>2021-03-25 11:33:49 +0200
commit6497e12ae4df4c7cb98992f5cf1948b3eebc486d (patch)
treecf29f623f0487a1e0d789c266217933335859967
parent8e6febfb777714c5b7f5ed9843e660ef218d3eb0 (diff)
downloadvmadm-6497e12ae4df4c7cb98992f5cf1948b3eebc486d.tar.gz
fix: put back most of the VM creation scenario
Oops.
-rw-r--r--subplot/vmadm.yaml3
-rw-r--r--vmadm.md8
2 files changed, 7 insertions, 4 deletions
diff --git a/subplot/vmadm.yaml b/subplot/vmadm.yaml
index 76881e1..fb778dd 100644
--- a/subplot/vmadm.yaml
+++ b/subplot/vmadm.yaml
@@ -11,6 +11,9 @@
function: create_vm
cleanup: delete_vm
+- when: "I invoke vmadm delete --config {config} {filename}"
+ function: delete_vm
+
- when: "I invoke vmadm shutdown --config {config} {filename}"
function: shutdown_vm
diff --git a/vmadm.md b/vmadm.md
index bfd09b4..24ffe5c 100644
--- a/vmadm.md
+++ b/vmadm.md
@@ -158,7 +158,7 @@ given file .ssh/known_hosts from known_hosts
Then we create the VM, and verify that we can log in.
-~~~
+~~~scenario
when I invoke vmadm new --config config.yaml smoke.yaml
when I invoke ssh -F .ssh/config debian@smoke hostname
then stdout contains "smoke"
@@ -171,7 +171,7 @@ then stdout contains "1997"
Then we shut it down, twice. The second time is to verify shutting
down works even if the VM is already shut down.
-~~~
+~~~scenario
when I invoke vmadm shutdown --config config.yaml smoke.yaml
when I invoke vmadm shutdown --config config.yaml smoke.yaml
~~~
@@ -179,7 +179,7 @@ when I invoke vmadm shutdown --config config.yaml smoke.yaml
Then we start it back up again and verify we can log in. Then we start
it again, while it's already running, to verify that that works.
-~~~
+~~~scenario
when I invoke vmadm start --config config.yaml smoke.yaml
when I invoke ssh -F .ssh/config debian@smoke hostname
when I invoke vmadm start --config config.yaml smoke.yaml
@@ -187,7 +187,7 @@ when I invoke vmadm start --config config.yaml smoke.yaml
Finally, we delete it twice.
-~~~
+~~~scenario
when I invoke vmadm delete --config config.yaml smoke.yaml
when I invoke vmadm delete --config config.yaml smoke.yaml
~~~