From 6497e12ae4df4c7cb98992f5cf1948b3eebc486d Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 25 Mar 2021 10:17:42 +0200 Subject: fix: put back most of the VM creation scenario Oops. --- subplot/vmadm.yaml | 3 +++ vmadm.md | 8 ++++---- 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 ~~~ -- cgit v1.2.1