compose/pkg/e2e
Milas Bowman f94cb49062
test: fix e2e test for privileged builds (#10873)
We cannot guarantee the exact value of `CapEff` across
environments, and this test has started failing some places,
e.g. Docker Desktop, and now GitHub Actions (likely due to
a kernel upgrade on the runners or similar).

By setting `privileged: true` on the build, we're asking for
the `security.insecure` entitlement on the build. A safe
assumption is that will include `CAP_SYS_ADMIN`, which won't
be present otherwise, so mask the `CapEff` value and check
for that.

It's worth noting that realistically, the build won't even
be able to complete without the correct entitlement, since the
`Dockerfile` uses `RUN --security=insecure`, so this is really
an additional sanity check.

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2023-08-03 12:23:24 -04:00
..
fixtures add support of depends_on.required attribute 2023-07-18 23:13:47 +02:00
assert.go up: do not stop dependency containers (#9701) 2022-08-02 15:25:59 -04:00
build_test.go test: fix e2e test for privileged builds (#10873) 2023-08-03 12:23:24 -04:00
cancel_test.go fix builkit progressui integration (#10535) 2023-05-08 09:21:41 -04:00
compose_environment_test.go introduce --no-path-resolution to skip relative path to be resolved 2023-05-16 13:02:56 +02:00
compose_exec_test.go test: speed up the e2e test suite 2023-07-18 11:08:06 +02:00
compose_run_test.go add support of depends_on.required attribute 2023-07-18 23:13:47 +02:00
compose_test.go test: speed up the e2e test suite 2023-07-18 11:08:06 +02:00
compose_up_test.go test: speed up the e2e test suite 2023-07-18 11:08:06 +02:00
cp_test.go align `--format` flag and UX with docker cli 2022-12-14 22:53:43 +01:00
ddev_test.go e2e: always set HOME + USER for cmd env 2022-06-16 09:44:40 -04:00
e2e_config_plugin.go Use build tags for selecting e2e test mode 2021-12-09 10:52:18 +01:00
e2e_config_standalone.go Use build tags for selecting e2e test mode 2021-12-09 10:52:18 +01:00
framework.go ci: merge Go coverage reports before upload (#10666) 2023-06-08 14:58:21 -04:00
ipc_test.go e2e: fix subtests and block parallel unsafe tests 2022-06-15 16:27:30 -04:00
logs_test.go e2e test to cover logs -f managing service being added/scaled 2023-05-26 14:51:23 +02:00
main_test.go Use build tags for selecting e2e test mode 2021-12-09 10:52:18 +01:00
metrics_test.go e2e: ensure all Compose cmds standalone compatible 2022-06-16 15:51:54 -04:00
networks_test.go network: fix random missing network when service has more than one 2023-07-07 09:18:01 +02:00
pause_test.go test: tweak pause test to try and prevent failures in Windows CI 2023-02-27 14:20:20 -05:00
profiles_test.go check only running containers in after down tests of profiles e2e tests 2022-12-06 23:17:14 +01:00
ps_test.go check service names based on project, not running containers 2022-12-21 21:11:44 +01:00
pull_test.go fix regression running pull --ignore-pull-failures 2022-12-19 11:56:03 +01:00
recreate_no_deps_test.go up/start/run: don't wait for disabled service 2022-08-17 12:32:10 -05:00
restart_test.go restart only needed services by checking depends_on relations 2023-03-01 18:22:40 +01:00
secrets_test.go apply uid/gid when creating secret from environment 2022-12-15 15:54:04 +01:00
start_stop_test.go one off container name use configured Separator for naming 2023-03-15 09:47:43 +01:00
up_test.go only check if a dependency is required when something unexpected happens 2023-07-18 23:45:31 +02:00
volumes_test.go Temporarily disable broken E2E tests on Windows 2022-09-20 11:33:31 -04:00
wait_test.go test: fix process leak in wait e2e test 2023-07-10 08:42:09 -04:00
watch_test.go watch: add tar sync implementation (#10853) 2023-08-01 14:39:08 -04:00