diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-05-04 08:33:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-04 08:33:22 -0400 |
commit | 1975975cf4bcf9ea16f5a49909f1357ec881e615 (patch) | |
tree | 874d1aa57eeccd3ecfe8a5609869bdc8c2b65aa1 /pkg/machine/e2e/inspect_test.go | |
parent | 3d84661195aa8fbf3dab67375099cb991fd7fe81 (diff) | |
parent | 88015cf0d8c62e27452899c870555667d658427f (diff) | |
download | podman-1975975cf4bcf9ea16f5a49909f1357ec881e615.tar.gz podman-1975975cf4bcf9ea16f5a49909f1357ec881e615.tar.bz2 podman-1975975cf4bcf9ea16f5a49909f1357ec881e615.zip |
Merge pull request #14099 from jwhonce/wip/machine_inspect
Implement --format for machine inspect
Diffstat (limited to 'pkg/machine/e2e/inspect_test.go')
-rw-r--r-- | pkg/machine/e2e/inspect_test.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pkg/machine/e2e/inspect_test.go b/pkg/machine/e2e/inspect_test.go index e282dd21d..b34285dd8 100644 --- a/pkg/machine/e2e/inspect_test.go +++ b/pkg/machine/e2e/inspect_test.go @@ -43,9 +43,11 @@ var _ = Describe("podman machine stop", func() { Expect(foo2).To(Exit(0)) inspect := new(inspectMachine) + inspect = inspect.withFormat("{{.Name}}") inspectSession, err := mb.setName("foo1").setCmd(inspect).run() Expect(err).To(BeNil()) Expect(inspectSession).To(Exit(0)) + Expect(inspectSession.Bytes()).To(ContainSubstring("foo1")) type fakeInfos struct { Status string @@ -56,13 +58,13 @@ var _ = Describe("podman machine stop", func() { Expect(err).ToNot(HaveOccurred()) Expect(len(infos)).To(Equal(2)) - //rm := new(rmMachine) - //// Must manually clean up due to multiple names - //for _, name := range []string{"foo1", "foo2"} { + // rm := new(rmMachine) + // // Must manually clean up due to multiple names + // for _, name := range []string{"foo1", "foo2"} { // mb.setName(name).setCmd(rm.withForce()).run() // mb.names = []string{} - //} - //mb.names = []string{} + // } + // mb.names = []string{} }) }) |