summaryrefslogtreecommitdiff
path: root/test/e2e/systemd_test.go
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-07-13 10:34:41 -0500
committerValentin Rothberg <rothberg@redhat.com>2020-07-15 11:42:04 +0200
commit2c72fbdd82253835e7a082cd1ced1fa21f543bea (patch)
tree8c5d740cdcf8375c26d010d2652d54e6e49fcb61 /test/e2e/systemd_test.go
parent79167a157f3bb733b928f445009e9675c46c3baa (diff)
downloadpodman-2c72fbdd82253835e7a082cd1ced1fa21f543bea.tar.gz
podman-2c72fbdd82253835e7a082cd1ced1fa21f543bea.tar.bz2
podman-2c72fbdd82253835e7a082cd1ced1fa21f543bea.zip
Fix systemd pid 1 test
fedora removed the systemd package from its standard container image causing our systemd pid1 test to fail. Replacing usage of fedora to ubi-init. adding ubi images to the cache for local tests. also, remove installation of test/policy.json to the system wide /etc/containers Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'test/e2e/systemd_test.go')
-rw-r--r--test/e2e/systemd_test.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/e2e/systemd_test.go b/test/e2e/systemd_test.go
index fb9e77b3d..143b8f59f 100644
--- a/test/e2e/systemd_test.go
+++ b/test/e2e/systemd_test.go
@@ -81,13 +81,8 @@ WantedBy=multi-user.target
})
It("podman run container with systemd PID1", func() {
- systemdImage := "fedora"
- pull := podmanTest.Podman([]string{"pull", systemdImage})
- pull.WaitWithDefaultTimeout()
- Expect(pull.ExitCode()).To(Equal(0))
-
ctrName := "testSystemd"
- run := podmanTest.Podman([]string{"run", "--name", ctrName, "-t", "-i", "-d", systemdImage, "/usr/sbin/init"})
+ run := podmanTest.Podman([]string{"run", "--name", ctrName, "-t", "-i", "-d", ubi_init, "/sbin/init"})
run.WaitWithDefaultTimeout()
Expect(run.ExitCode()).To(Equal(0))
ctrID := run.OutputToString()