Skip to content

Commit

Permalink
Merge pull request #12522 from edsantiago/minor_test_cleanup
Browse files Browse the repository at this point in the history
tests: clean up FIXMEs and noise
  • Loading branch information
openshift-merge-robot authored Dec 6, 2021
2 parents 22b9763 + eee3a42 commit 9af07fd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/e2e/import_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ var _ = Describe("Podman import", func() {
})

It("podman import with signature", func() {
SkipIfRemote("FIXME: remote ignores --signature-policy, #12357")
SkipIfRemote("--signature-policy N/A for remote")

outfile := filepath.Join(podmanTest.TempDir, "container.tar")
_, ec, cid := podmanTest.RunLsContainer("")
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/run_entrypoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ ENTRYPOINT ["grep", "Alpine", "/etc/os-release"]
})

It("podman run user entrypoint overrides image entrypoint and image cmd", func() {
SkipIfRemote("FIXME: podman-remote not handling passing --entrypoint=\"\" flag correctly")
SkipIfRemote("#12521: podman-remote not handling passing empty --entrypoint")
dockerfile := `FROM quay.io/libpod/alpine:latest
CMD ["-i"]
ENTRYPOINT ["grep", "Alpine", "/etc/os-release"]
Expand Down
8 changes: 4 additions & 4 deletions test/e2e/run_networking_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,9 @@ EXPOSE 2004-2005/tcp`, ALPINE)
})

It("podman run network expose duplicate host port results in error", func() {
SkipIfRootless("FIXME we should be able to run this test in rootless mode with different ports")
port := "8190" // Make sure this isn't used anywhere else

session := podmanTest.Podman([]string{"run", "--name", "test", "-dt", "-p", "80", ALPINE, "/bin/sh"})
session := podmanTest.Podman([]string{"run", "--name", "test", "-dt", "-p", port, ALPINE, "/bin/sh"})
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))

Expand All @@ -526,8 +526,8 @@ EXPOSE 2004-2005/tcp`, ALPINE)

containerConfig := inspect.InspectContainerToJSON()
Expect(containerConfig[0].NetworkSettings.Ports).To(Not(BeNil()))
Expect(containerConfig[0].NetworkSettings.Ports).To(HaveKeyWithValue("80/tcp", Not(BeNil())))
Expect(containerConfig[0].NetworkSettings.Ports["80/tcp"][0].HostPort).ToNot(Equal(80))
Expect(containerConfig[0].NetworkSettings.Ports).To(HaveKeyWithValue(port+"/tcp", Not(BeNil())))
Expect(containerConfig[0].NetworkSettings.Ports[port+"/tcp"][0].HostPort).ToNot(Equal(port))
})

It("podman run forward sctp protocol", func() {
Expand Down
2 changes: 1 addition & 1 deletion test/system/600-completion.bats
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ function _check_completion_end() {
# Clean up the pod pause image
run_podman image list --format '{{.ID}} {{.Repository}}'
while read id name; do
if [[ "$name" =~ /pause ]]; then
if [[ "$name" =~ /podman-pause ]]; then
run_podman rmi $id
fi
done <<<"$output"
Expand Down

0 comments on commit 9af07fd

Please sign in to comment.