From 6ba6ecf59b9204d36388de07b866f157a4d13957 Mon Sep 17 00:00:00 2001 From: baude Date: Fri, 2 Feb 2018 11:02:09 -0600 Subject: Migrate Create|Commit to ginkgo Migrate create and commit bats tests to the ginkgo test suite. In doing so, some structures had to be moved to pkg/podmanstructs/podmanstructs.go so we could do better verification of test results. Signed-off-by: baude Closes: #286 Approved by: rhatdan --- cmd/podman/run_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd/podman/run_test.go') diff --git a/cmd/podman/run_test.go b/cmd/podman/run_test.go index b82df86db..55c535337 100644 --- a/cmd/podman/run_test.go +++ b/cmd/podman/run_test.go @@ -6,7 +6,7 @@ import ( units "github.com/docker/go-units" ociv1 "github.com/opencontainers/image-spec/specs-go/v1" spec "github.com/opencontainers/runtime-spec/specs-go" - "github.com/projectatomic/libpod/libpod" + "github.com/projectatomic/libpod/pkg/inspect" "github.com/stretchr/testify/assert" "github.com/urfave/cli" ) @@ -22,7 +22,7 @@ var ( ) // generates a mocked ImageData structure based on alpine -func generateAlpineImageData() *libpod.ImageData { +func generateAlpineImageData() *inspect.ImageData { config := &ociv1.ImageConfig{ User: "", ExposedPorts: nil, @@ -35,7 +35,7 @@ func generateAlpineImageData() *libpod.ImageData { StopSignal: "", } - data := &libpod.ImageData{ + data := &inspect.ImageData{ ID: "e21c333399e0aeedfd70e8827c9fba3f8e9b170ef8a48a29945eb7702bf6aa5f", RepoTags: []string{"docker.io/library/alpine:latest"}, RepoDigests: []string{"docker.io/library/alpine@sha256:5cb04fce748f576d7b72a37850641de8bd725365519673c643ef2d14819b42c6"}, -- cgit v1.2.3-54-g00ecf