summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-05-10 23:52:59 +0200
committerGitHub <noreply@github.com>2020-05-10 23:52:59 +0200
commitdc82b3630d982b1fb9d91c65a70c7d31d901c54d (patch)
tree6a4ddd6051deb6e6ff5e728e71031788116abb65 /test/e2e
parentbd80b00d5d98b65768dee1a957c2e2752a164d77 (diff)
parent9b66d1321e283d1971d96ff757d54cb8f8037da2 (diff)
downloadpodman-dc82b3630d982b1fb9d91c65a70c7d31d901c54d.tar.gz
podman-dc82b3630d982b1fb9d91c65a70c7d31d901c54d.tar.bz2
podman-dc82b3630d982b1fb9d91c65a70c7d31d901c54d.zip
Merge pull request #6126 from baude/v2rootless
enable rootless integration testing
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/events_test.go1
-rw-r--r--test/e2e/generate_kube_test.go1
-rw-r--r--test/e2e/libpod_suite_test.go6
-rw-r--r--test/e2e/mount_test.go1
-rw-r--r--test/e2e/play_kube_test.go1
-rw-r--r--test/e2e/run_networking_test.go1
6 files changed, 11 insertions, 0 deletions
diff --git a/test/e2e/events_test.go b/test/e2e/events_test.go
index 0636af74c..4cd5de05e 100644
--- a/test/e2e/events_test.go
+++ b/test/e2e/events_test.go
@@ -19,6 +19,7 @@ var _ = Describe("Podman events", func() {
)
BeforeEach(func() {
+ SkipIfRootlessV2()
tempdir, err = CreateTempDirInTempDir()
if err != nil {
os.Exit(1)
diff --git a/test/e2e/generate_kube_test.go b/test/e2e/generate_kube_test.go
index 389f2c822..1650831a5 100644
--- a/test/e2e/generate_kube_test.go
+++ b/test/e2e/generate_kube_test.go
@@ -21,6 +21,7 @@ var _ = Describe("Podman generate kube", func() {
)
BeforeEach(func() {
+ SkipIfRootlessV2()
tempdir, err = CreateTempDirInTempDir()
if err != nil {
os.Exit(1)
diff --git a/test/e2e/libpod_suite_test.go b/test/e2e/libpod_suite_test.go
index 29a55980c..d26f5784d 100644
--- a/test/e2e/libpod_suite_test.go
+++ b/test/e2e/libpod_suite_test.go
@@ -21,6 +21,12 @@ func SkipIfRootless() {
}
}
+func SkipIfRootlessV2() {
+ if os.Geteuid() != 0 {
+ ginkgo.Skip("This function is not enabled for v2 rootless podman")
+ }
+}
+
// Podman is the exec call to podman on the filesystem
func (p *PodmanTestIntegration) Podman(args []string) *PodmanSessionIntegration {
podmanSession := p.PodmanBase(args, false, false)
diff --git a/test/e2e/mount_test.go b/test/e2e/mount_test.go
index ac52d8c7e..bb1e129db 100644
--- a/test/e2e/mount_test.go
+++ b/test/e2e/mount_test.go
@@ -18,6 +18,7 @@ var _ = Describe("Podman mount", func() {
)
BeforeEach(func() {
+ SkipIfRootlessV2()
tempdir, err = CreateTempDirInTempDir()
if err != nil {
os.Exit(1)
diff --git a/test/e2e/play_kube_test.go b/test/e2e/play_kube_test.go
index 9daf266b8..fa943c12f 100644
--- a/test/e2e/play_kube_test.go
+++ b/test/e2e/play_kube_test.go
@@ -217,6 +217,7 @@ var _ = Describe("Podman generate kube", func() {
)
BeforeEach(func() {
+ SkipIfRootlessV2()
tempdir, err = CreateTempDirInTempDir()
if err != nil {
os.Exit(1)
diff --git a/test/e2e/run_networking_test.go b/test/e2e/run_networking_test.go
index 375930948..6a93da085 100644
--- a/test/e2e/run_networking_test.go
+++ b/test/e2e/run_networking_test.go
@@ -19,6 +19,7 @@ var _ = Describe("Podman run networking", func() {
)
BeforeEach(func() {
+ SkipIfRootlessV2()
tempdir, err = CreateTempDirInTempDir()
if err != nil {
os.Exit(1)