mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 11:58:43 +00:00
docker_compose_v2: fix tests (#1027)
* Since docker-compose 2.32.2 present_3 is no longer changed.
This has been caused by https://github.com/docker/compose/pull/12442,
since that PR removes the "building" event.
* Remove deprecated 'version' fields.
(cherry picked from commit 9e26c4794e)
This commit is contained in:
parent
31b03d8224
commit
e10468dd93
@ -9,12 +9,10 @@
|
||||
non_existing_image: does-not-exist:latest
|
||||
project_src: "{{ remote_tmp_dir }}/{{ pname }}"
|
||||
test_service_non_existing: |
|
||||
version: '3'
|
||||
services:
|
||||
{{ cname }}:
|
||||
image: {{ non_existing_image }}
|
||||
test_service_simple: |
|
||||
version: '3'
|
||||
services:
|
||||
{{ cname }}:
|
||||
image: {{ docker_test_image_simple_1 }}
|
||||
|
||||
@ -8,14 +8,12 @@
|
||||
cname: "{{ name_prefix }}-container"
|
||||
project_src: "{{ remote_tmp_dir }}/{{ pname }}"
|
||||
test_service: |
|
||||
version: '3'
|
||||
services:
|
||||
{{ cname }}:
|
||||
image: "{{ docker_test_image_alpine }}"
|
||||
command: '/bin/sh -c "sleep 10m"'
|
||||
stop_grace_period: 1s
|
||||
test_service_mod: |
|
||||
version: '3'
|
||||
services:
|
||||
{{ cname }}:
|
||||
image: "{{ docker_test_image_alpine }}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user