containerd/internal/cri/server/podsandbox
Reinhard Tartler 09d3e20d3a Allow running test in usernamespace
Debian has started building packages with usernamespaces
to disable network access and similar isolation features. The
containerd package executes a unit test that fails in that
scenario, see https://bugs.debian.org/1070411

The code contains a conditional on whether it is running in
usernamepsace. This commit expands the unit test to cover
this behavior; it was previously untested.

The easiest way to reproduce this issue is to prefix the test
invocaiton with 'unshare -nr go test [...]'

Signed-off-by: Reinhard Tartler <siretart@gmail.com>
2024-06-12 00:36:54 +00:00
..
types sandbox: optimize the lock in PodSandbox 2024-02-26 10:15:18 +08:00
container_linux.go Move CRI from pkg/ to internal/ 2024-02-02 10:12:08 -08:00
controller_test.go sandbox: optimize the lock in PodSandbox 2024-02-26 10:15:18 +08:00
controller.go remove uses of platforms.Platform alias 2024-05-28 14:56:30 +02:00
events.go Make api a Go sub-module 2024-05-02 11:03:00 -07:00
helpers_linux_test.go Move CRI from pkg/ to internal/ 2024-02-02 10:12:08 -08:00
helpers_linux.go pkg/seutil: move to internal/cri 2024-03-20 11:11:24 +01:00
helpers_other.go Move CRI from pkg/ to internal/ 2024-02-02 10:12:08 -08:00
helpers_selinux_linux_test.go Move CRI from pkg/ to internal/ 2024-02-02 10:12:08 -08:00
helpers_test.go Move CRI from pkg/ to internal/ 2024-02-02 10:12:08 -08:00
helpers_windows.go Move CRI from pkg/ to internal/ 2024-02-02 10:12:08 -08:00
helpers.go sandbox: make event monitor in CRI independent 2024-03-01 10:30:52 +08:00
opts.go Move CRI from pkg/ to internal/ 2024-02-02 10:12:08 -08:00
recover_test.go Make api a Go sub-module 2024-05-02 11:03:00 -07:00
recover.go sandbox: optimize the lock in PodSandbox 2024-02-26 10:15:18 +08:00
sandbox_delete.go Make api a Go sub-module 2024-05-02 11:03:00 -07:00
sandbox_run_linux_test.go Allow running test in usernamespace 2024-06-12 00:36:54 +00:00
sandbox_run_linux.go cri: add pause image name to annotations 2024-04-09 22:33:58 +08:00
sandbox_run_other_test.go Move CRI from pkg/ to internal/ 2024-02-02 10:12:08 -08:00
sandbox_run_other.go cri: add pause image name to annotations 2024-04-09 22:33:58 +08:00
sandbox_run_test.go Move CRI from pkg/ to internal/ 2024-02-02 10:12:08 -08:00
sandbox_run_windows_test.go Move CRI from pkg/ to internal/ 2024-02-02 10:12:08 -08:00
sandbox_run_windows.go cri: add pause image name to annotations 2024-04-09 22:33:58 +08:00
sandbox_run.go cri: add pause image name to annotations 2024-04-09 22:33:58 +08:00
sandbox_stats.go Make api a Go sub-module 2024-05-02 11:03:00 -07:00
sandbox_status.go sandbox: optimize the lock in PodSandbox 2024-02-26 10:15:18 +08:00
sandbox_stop.go Make api a Go sub-module 2024-05-02 11:03:00 -07:00
store.go Move CRI from pkg/ to internal/ 2024-02-02 10:12:08 -08:00