Skip to content

Commit

Permalink
Merge pull request #6305 from baude/v2podcreatetest
Browse files Browse the repository at this point in the history
enable pod_create remote integration tests
  • Loading branch information
openshift-merge-robot authored May 20, 2020
2 parents 46ca450 + fed4ef0 commit e8e5a5f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions pkg/api/handlers/compat/containers_start.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ func StartContainer(w http.ResponseWriter, r *http.Request) {
utils.ContainerNotFound(w, name, err)
return
}

state, err := con.State()
if err != nil {
utils.InternalServerError(w, err)
Expand All @@ -43,7 +42,7 @@ func StartContainer(w http.ResponseWriter, r *http.Request) {
utils.WriteResponse(w, http.StatusNotModified, "")
return
}
if err := con.Start(r.Context(), false); err != nil {
if err := con.Start(r.Context(), len(con.PodID()) > 0); err != nil {
utils.InternalServerError(w, err)
return
}
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions test/e2e/pod_create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ var _ = Describe("Podman pod create", func() {
})

It("podman create pod without network portbindings", func() {
Skip(v2remotefail)
name := "test"
session := podmanTest.Podman([]string{"pod", "create", "--name", name})
session.WaitWithDefaultTimeout()
Expand All @@ -100,7 +99,6 @@ var _ = Describe("Podman pod create", func() {
})

It("podman create pod with network portbindings", func() {
Skip(v2remotefail)
name := "test"
session := podmanTest.Podman([]string{"pod", "create", "--name", name, "-p", "8080:80"})
session.WaitWithDefaultTimeout()
Expand Down

0 comments on commit e8e5a5f

Please sign in to comment.