mirror of
https://github.com/containers/podman.git
synced 2025-06-21 17:38:12 +08:00
Merge pull request #6126 from baude/v2rootless
enable rootless integration testing
This commit is contained in:
@ -523,7 +523,6 @@ integration_test_temporary_task:
|
|||||||
# This task executes tests under unique environments/conditions
|
# This task executes tests under unique environments/conditions
|
||||||
special_testing_rootless_task:
|
special_testing_rootless_task:
|
||||||
|
|
||||||
skip: $CI == 'true'
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- "gating"
|
- "gating"
|
||||||
- "varlink_api"
|
- "varlink_api"
|
||||||
@ -539,9 +538,10 @@ special_testing_rootless_task:
|
|||||||
ADD_SECOND_PARTITION: 'true'
|
ADD_SECOND_PARTITION: 'true'
|
||||||
SPECIALMODE: 'rootless' # See docs
|
SPECIALMODE: 'rootless' # See docs
|
||||||
matrix:
|
matrix:
|
||||||
- name: remote
|
# FIX ME ...
|
||||||
env:
|
#- name: remote
|
||||||
TEST_REMOTE_CLIENT: 'true'
|
# env:
|
||||||
|
# TEST_REMOTE_CLIENT: 'true'
|
||||||
- name: local
|
- name: local
|
||||||
env:
|
env:
|
||||||
TEST_REMOTE_CLIENT: 'false'
|
TEST_REMOTE_CLIENT: 'false'
|
||||||
|
@ -19,6 +19,7 @@ var _ = Describe("Podman events", func() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
|
SkipIfRootlessV2()
|
||||||
tempdir, err = CreateTempDirInTempDir()
|
tempdir, err = CreateTempDirInTempDir()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
@ -21,6 +21,7 @@ var _ = Describe("Podman generate kube", func() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
|
SkipIfRootlessV2()
|
||||||
tempdir, err = CreateTempDirInTempDir()
|
tempdir, err = CreateTempDirInTempDir()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
@ -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
|
// Podman is the exec call to podman on the filesystem
|
||||||
func (p *PodmanTestIntegration) Podman(args []string) *PodmanSessionIntegration {
|
func (p *PodmanTestIntegration) Podman(args []string) *PodmanSessionIntegration {
|
||||||
podmanSession := p.PodmanBase(args, false, false)
|
podmanSession := p.PodmanBase(args, false, false)
|
||||||
|
@ -18,6 +18,7 @@ var _ = Describe("Podman mount", func() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
|
SkipIfRootlessV2()
|
||||||
tempdir, err = CreateTempDirInTempDir()
|
tempdir, err = CreateTempDirInTempDir()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
@ -217,6 +217,7 @@ var _ = Describe("Podman generate kube", func() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
|
SkipIfRootlessV2()
|
||||||
tempdir, err = CreateTempDirInTempDir()
|
tempdir, err = CreateTempDirInTempDir()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
@ -19,6 +19,7 @@ var _ = Describe("Podman run networking", func() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
|
SkipIfRootlessV2()
|
||||||
tempdir, err = CreateTempDirInTempDir()
|
tempdir, err = CreateTempDirInTempDir()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
Reference in New Issue
Block a user