mirror of
https://github.com/docker/compose.git
synced 2026-09-25 06:54:41 +00:00
Migrate the volumes_from and network_mode:service donor tests to the Scenario DSL, inlining the compose model and dropping the no-deps fixtures. Each scenario removes the donor container behind compose's back and expects up --no-deps to be rejected with the 'container missing' error — the CLI's reported decision being the observable. ServiceNotCreated joins the check vocabulary: it asserts a service has no container at all, here proving the donor really is gone before the failing step. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
10 lines
174 B
YAML
10 lines
174 B
YAML
services:
|
|
app:
|
|
image: alpine
|
|
init: true
|
|
command: sleep infinity
|
|
network_mode: service:db
|
|
db:
|
|
image: alpine
|
|
init: true
|
|
command: sleep infinity
|