aboutsummaryrefslogtreecommitdiff
path: root/pkg/machine/e2e/config_inspect_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/machine/e2e/config_inspect_test.go')
-rw-r--r--pkg/machine/e2e/config_inspect_test.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkg/machine/e2e/config_inspect_test.go b/pkg/machine/e2e/config_inspect_test.go
new file mode 100644
index 000000000..ffd74220f
--- /dev/null
+++ b/pkg/machine/e2e/config_inspect_test.go
@@ -0,0 +1,24 @@
+package e2e_test
+
+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
+}