mirror of
https://github.com/docker/compose.git
synced 2026-11-20 06:59:53 +00:00
test(e2e): lifecycle scenarios — cascade, profiles, healthcheck, recreate
Vocabulary grows with Recreated (the mirror of NotRecreated), ServiceHealthy (healthcheck status observed from inspect) and a Within action modifier bounding blocking commands like up --wait, replacing the hand-rolled goroutine+timer of the legacy TestStartInterval. - cascade: abort-on-container-exit/failure scenarios inline the model; exit-code propagation (111) is locked with ExitCode. The one-off variant stays legacy — it drives a long-running up in the background. - profiles: the four scenarios observe which services materialize instead of grepping ps output; the dotenv variant declares its .env inline, making the activation mechanism visible. - TestRecreateWithNoDeps now asserts both sides: the service is replaced (Recreated) and the healthy dependency is left alone. - Fixtures start_interval/, profiles/compose.yaml+test-profile.env and recreate-no-deps.yaml are removed; cascade/ stays for the legacy one-off test. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
6bc1b36516
commit
fe17e31be0
17 changed files with 272 additions and 272 deletions
12
pkg/e2e/testdata/TestExplicitProfileUsage/compose.yaml
vendored
Normal file
12
pkg/e2e/testdata/TestExplicitProfileUsage/compose.yaml
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
services:
|
||||
regular-service:
|
||||
image: alpine
|
||||
init: true
|
||||
command: sleep infinity
|
||||
|
||||
profiled-service:
|
||||
image: alpine
|
||||
init: true
|
||||
command: sleep infinity
|
||||
profiles:
|
||||
- test-profile
|
||||
Loading…
Add table
Add a link
Reference in a new issue