diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-01-21 07:00:13 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-01-21 07:00:13 +0000 |
commit | 0f81ce2cf72c33cd7d08f18a8e3a11dc843e3456 (patch) | |
tree | a53e82bca6e7e53c1ce0f30112aba60f26f9e48e /vmadm.md | |
parent | aeabf043ae323bdb7b644a22ecd93a4658862c06 (diff) | |
parent | 1fd70189973f247c4fab3e426151cda4e912e8ed (diff) | |
download | vmadm-0f81ce2cf72c33cd7d08f18a8e3a11dc843e3456.tar.gz |
Merge branch 'runcmd' into 'main'
refactor: use lib/runcmd's steps instead of custom ones
See merge request larswirzenius/vmadm!55
Diffstat (limited to 'vmadm.md')
-rw-r--r-- | vmadm.md | 25 |
1 files changed, 13 insertions, 12 deletions
@@ -162,7 +162,7 @@ given file config.yaml given file .ssh/id_rsa.pub from init_ssh_key_pub given file expected/init-test/meta-data from init-metadata given file expected/init-test/user-data from init-userdata -when I invoke vmadm cloud-init --config config.yaml init.yaml actual +when I run vmadm cloud-init --config config.yaml init.yaml actual then directories actual/init-test and expected/init-test are identical ~~~ @@ -228,17 +228,18 @@ given file .ssh/id_rsa from ssh_key given file .ssh/id_rsa.pub from ssh_key_pub given file .ssh/config from ssh_config given file .ssh/known_hosts from known_hosts +when I run chmod -R u=rwX,go= .ssh ~~~ 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 +when I run vmadm new --config config.yaml smoke.yaml +when I run ssh -F .ssh/config debian@smoke hostname then stdout contains "smoke" -when I invoke ssh -F .ssh/config debian@smoke df -h / +when I run ssh -F .ssh/config debian@smoke df -h / then stdout matches regex 4\.\dG -when I invoke ssh -F .ssh/config debian@smoke free -m +when I run ssh -F .ssh/config debian@smoke free -m then stdout matches regex Mem:\s+19\d\d\s ~~~ @@ -246,24 +247,24 @@ 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 +when I run vmadm shutdown --config config.yaml smoke.yaml +when I run 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 +when I run vmadm start --config config.yaml smoke.yaml +when I run ssh -F .ssh/config debian@smoke hostname +when I run 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 +when I run vmadm delete --config config.yaml smoke.yaml +when I run vmadm delete --config config.yaml smoke.yaml ~~~ |