diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-04-25 16:36:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 16:36:01 -0400 |
commit | 05bdb4139a02eb35220c23b8ae8fe355f6d91406 (patch) | |
tree | 59e3b673f018d25dde266b158c6b799c65c603f6 /pkg/machine/e2e/config_inspect.go | |
parent | 181c9d3ee3ad4820b9ae91f1f02faf7b9e65fc87 (diff) | |
parent | 833456e079c31111a15fedaa3ccd7f852e89e508 (diff) | |
download | podman-05bdb4139a02eb35220c23b8ae8fe355f6d91406.tar.gz podman-05bdb4139a02eb35220c23b8ae8fe355f6d91406.tar.bz2 podman-05bdb4139a02eb35220c23b8ae8fe355f6d91406.zip |
Merge pull request #13942 from baude/machinetests
Add podman machine test suite
Diffstat (limited to 'pkg/machine/e2e/config_inspect.go')
-rw-r--r-- | pkg/machine/e2e/config_inspect.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkg/machine/e2e/config_inspect.go b/pkg/machine/e2e/config_inspect.go new file mode 100644 index 000000000..74c9a5d9c --- /dev/null +++ b/pkg/machine/e2e/config_inspect.go @@ -0,0 +1,24 @@ +package e2e + +type inspectMachine struct { + /* + --format string Format volume output using JSON or a Go template + */ + cmd []string + format string +} + +func (i *inspectMachine) buildCmd(m *machineTestBuilder) []string { + cmd := []string{"machine", "inspect"} + if len(i.format) > 0 { + cmd = append(cmd, "--format", i.format) + } + cmd = append(cmd, m.names...) + i.cmd = cmd + return cmd +} + +func (i *inspectMachine) withFormat(format string) *inspectMachine { + i.format = format + return i +} |