summaryrefslogtreecommitdiff
path: root/vmadm.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-07-25 09:54:20 +0300
committerLars Wirzenius <liw@liw.fi>2021-07-25 11:37:57 +0300
commit77a7d5a0fec242b929f62295a1b7d8e7700bfc35 (patch)
treeb716a12f7362b529a86a004390f988bbb27b2b6c /vmadm.md
parentad881807180977c9346f3cfd42c9c5f51913e04e (diff)
downloadvmadm-77a7d5a0fec242b929f62295a1b7d8e7700bfc35.tar.gz
test: verify that "vmadm config" works
Sponsored-by: author
Diffstat (limited to 'vmadm.md')
-rw-r--r--vmadm.md40
1 files changed, 36 insertions, 4 deletions
diff --git a/vmadm.md b/vmadm.md
index 2d97876..34ba73f 100644
--- a/vmadm.md
+++ b/vmadm.md
@@ -55,6 +55,22 @@ authorized_keys:
- ~/.ssh/id_rsa.pub
~~~
+~~~{#fullconfig.json .file .json}
+{
+ "image_directory": "~/images",
+ "default_base_image": "~/base.qcow2",
+ "default_image_gib": 5,
+ "default_memory_mib": 2048,
+ "default_cpus": 1,
+ "default_generate_host_certificate": true,
+ "default_autostart": true,
+ "ca_key": "ca_key",
+ "authorized_keys": [
+ "~/.ssh/id_rsa.pub"
+ ]
+}
+~~~
+
~~~{#ssh_key_pub .file}
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQChZ6mVuGLBpW7SarFU/Tu6TemquNxatbMUZuTk8RqVtbkvTKeWFZ5h5tntWPHgST8ykYFaIrr8eYuKQkKdBxHW7H8kejTNwRu/rDbRYX5wxTn4jw4RVopGTpxMlGrWeu5CkWPoLAhQtIzzUAnrDGp9sqG6P1G4ohI61wZMFQta9R2uNxXnnes+e2r4Y78GxmlQH/o0ouI8fBnsxRK0IoSfFs2LutO6wjyzR59FdC9TT7wufd5kXMRzxsmPGeXzNcaqvHGxBvRucGFclCkqSRwk3GNEpXZQhlCIoTIoRu0IPAp/430tlx9zJMhhwDlZsOOXRrFYpdWVMSTAAKECLSYx liw@exolobe1
~~~
@@ -202,6 +218,20 @@ when I invoke vmadm delete --config config.yaml smoke.yaml
+# Dump config
+
+This scenario verifies that vmadm can show its actual configuration.
+
+~~~scenario
+given an installed vmadm
+given a Debian 10 OpenStack cloud image
+given file .config/vmadm/config.yaml from config.yaml
+given file fullconfig.json
+when I run vmadm config
+then stdout, as JSON, matches file fullconfig.json with tilde expansion
+~~~
+
+
# Colophon
This is a document meant to be processed with [Subplot][] into an HTML
@@ -213,10 +243,12 @@ author: "Lars Wirzenius"
template: python
bindings:
- subplot/vmadm.yaml
- - subplot/vendored/files.yaml
- - subplot/vendored/runcmd.yaml
+ - lib/files.yaml
+ - lib/runcmd.yaml
functions:
- subplot/vmadm.py
- - subplot/vendored/files.py
- - subplot/vendored/runcmd.py
+ - lib/files.py
+ - lib/runcmd.py
+classes:
+- json
...