mirror of
https://github.com/containers/podman.git
synced 2025-11-30 01:58:46 +08:00
Change image-path to image for tests
As we deprecate image-path for image. Signed-off-by: Ashley Cui <acui@redhat.com>
This commit is contained in:
@@ -33,7 +33,7 @@ var _ = Describe("podman machine init - windows only", func() {
|
||||
}
|
||||
i := new(initMachine)
|
||||
name := randomString()
|
||||
session, err := mb.setName(name).setCmd(i.withImagePath(mb.imagePath).withUserModeNetworking(true)).run()
|
||||
session, err := mb.setName(name).setCmd(i.withImage(mb.imagePath).withUserModeNetworking(true)).run()
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(session).To(Exit(0))
|
||||
|
||||
@@ -86,7 +86,7 @@ var _ = Describe("podman machine init - windows only", func() {
|
||||
}
|
||||
}()
|
||||
i := new(initMachine)
|
||||
session, err := mb.setName(name).setCmd(i.withImagePath(mb.imagePath)).run()
|
||||
session, err := mb.setName(name).setCmd(i.withImage(mb.imagePath)).run()
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(session).To(Exit(125))
|
||||
Expect(session.errorToString()).To(ContainSubstring("already exists on hypervisor"))
|
||||
@@ -104,7 +104,7 @@ var _ = Describe("podman machine init - windows only", func() {
|
||||
|
||||
// create a bogus machine
|
||||
i := new(initMachine)
|
||||
session, err := mb.setName("foobarexport").setCmd(i.withImagePath(mb.imagePath)).run()
|
||||
session, err := mb.setName("foobarexport").setCmd(i.withImage(mb.imagePath)).run()
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(session).To(Exit(0))
|
||||
|
||||
@@ -129,7 +129,7 @@ var _ = Describe("podman machine init - windows only", func() {
|
||||
}()
|
||||
|
||||
// Trying to make a vm with the same name as an existing name should result in a 125
|
||||
checkSession, err := mb.setName(name).setCmd(i.withImagePath(mb.imagePath)).run()
|
||||
checkSession, err := mb.setName(name).setCmd(i.withImage(mb.imagePath)).run()
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(checkSession).To(Exit(125))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user