Normalize bools in tests. (#589)

This commit is contained in:
Felix Fontein
2023-02-15 22:29:41 +01:00
committed by GitHub
parent a426232523
commit dd19db8c8f
82 changed files with 1620 additions and 1620 deletions
@@ -45,7 +45,7 @@
docker_container:
name: "{{ item }}"
state: absent
force_kill: yes
force_kill: true
with_items: "{{ cnames }}"
when: docker_api_version is version('1.25', '>=')
@@ -11,7 +11,7 @@
docker_image:
name: "{{ docker_test_image_hello_world }}"
state: absent
force_absent: yes
force_absent: true
register: absent_1
- name: Make sure image is not there (idempotency)
@@ -71,7 +71,7 @@
source: local
name: "{{ docker_test_image_hello_world }}"
repository: "{{ docker_test_image_hello_world_base }}:alias"
force_tag: yes
force_tag: true
register: tag_3
- name: Tag image with ID instead of name
@@ -125,7 +125,7 @@
path: "{{ remote_tmp_dir }}/files"
force_source: true
register: fail_4
ignore_errors: yes
ignore_errors: true
- assert:
that:
@@ -24,7 +24,7 @@
docker_image:
name: "{{ hello_world_image_base }}:latest"
state: absent
force_absent: yes
force_absent: true
- name: Make sure we have {{ docker_test_image_hello_world }}
docker_image:
@@ -35,7 +35,7 @@
docker_image:
name: "{{ docker_test_image_hello_world }}"
repository: "{{ hello_world_image_base }}:latest"
push: yes
push: true
source: local
register: push_1
@@ -43,7 +43,7 @@
docker_image:
name: "{{ docker_test_image_hello_world }}"
repository: "{{ hello_world_image_base }}:latest"
push: yes
push: true
source: local
register: push_2
@@ -51,9 +51,9 @@
docker_image:
name: "{{ docker_test_image_hello_world }}"
repository: "{{ hello_world_image_base }}:latest"
push: yes
push: true
source: local
force_tag: yes
force_tag: true
register: push_3
- assert:
@@ -71,7 +71,7 @@
docker_image:
name: "{{ hello_world_image_base }}:latest"
state: absent
force_absent: yes
force_absent: true
- name: Get facts of local image (absent)
docker_image_info:
@@ -122,7 +122,7 @@
docker_image:
name: "{{ docker_test_image_alpine_different }}"
repository: "{{ hello_world_image_base }}:newtag"
push: no
push: false
source: pull
- name: Push different image with new tag
@@ -130,7 +130,7 @@
name: "{{ hello_world_image_base }}"
repository: "{{ hello_world_image_base }}"
tag: newtag
push: yes
push: true
source: local
register: push_1_different
@@ -139,7 +139,7 @@
name: "{{ hello_world_image_base }}"
repository: "{{ hello_world_image_base }}"
tag: newtag
push: yes
push: true
source: local
register: push_2_different
@@ -152,7 +152,7 @@
docker_image:
name: "{{ docker_test_image_alpine_different }}"
repository: "{{ hello_world_image_base }}:newtag2"
push: no
push: false
source: pull
- name: Push same image with new tag
@@ -160,7 +160,7 @@
name: "{{ hello_world_image_base }}"
repository: "{{ hello_world_image_base }}"
tag: newtag2
push: yes
push: true
source: local
register: push_1_same
@@ -169,7 +169,7 @@
name: "{{ hello_world_image_base }}"
repository: "{{ hello_world_image_base }}"
tag: newtag2
push: yes
push: true
source: local
register: push_2_same
@@ -202,14 +202,14 @@
docker_image:
name: "{{ test_image_base }}:latest"
state: absent
force_absent: yes
force_absent: true
- name: repository
docker_image:
name: "{{ iname }}"
build:
path: "{{ remote_tmp_dir }}/files"
pull: no
pull: false
repository: "{{ test_image_base }}"
source: build
register: repository_1
@@ -252,7 +252,7 @@
docker_image:
name: "{{ test_image_base }}:latest"
state: absent
force_absent: yes
force_absent: true
- assert:
that:
@@ -21,7 +21,7 @@
docker_image:
name: "{{ iname }}"
state: absent
force_absent: yes
force_absent: true
- name: buildargs
docker_image:
@@ -34,10 +34,10 @@
TEST1: val1
TEST2: val2
TEST3: "True"
pull: no
pull: false
source: build
register: buildargs_1
ignore_errors: yes
ignore_errors: true
- name: buildargs (idempotency)
docker_image:
@@ -50,16 +50,16 @@
TEST1: val1
TEST2: val2
TEST3: "True"
pull: no
pull: false
source: build
register: buildargs_2
ignore_errors: yes
ignore_errors: true
- name: cleanup
docker_image:
name: "{{ iname }}"
state: absent
force_absent: yes
force_absent: true
- assert:
that:
@@ -77,9 +77,9 @@
path: "{{ remote_tmp_dir }}/files"
container_limits:
memory: 4000
pull: no
pull: false
source: build
ignore_errors: yes
ignore_errors: true
register: container_limits_1
- name: container_limits
@@ -90,7 +90,7 @@
container_limits:
memory: 7000000
memswap: 8000000
pull: no
pull: false
source: build
register: container_limits_2
@@ -98,7 +98,7 @@
docker_image:
name: "{{ iname }}"
state: absent
force_absent: yes
force_absent: true
- assert:
that:
@@ -121,7 +121,7 @@
build:
path: "{{ remote_tmp_dir }}/files"
dockerfile: "MyDockerfile"
pull: no
pull: false
source: build
register: dockerfile_1
@@ -129,7 +129,7 @@
docker_image:
name: "{{ iname }}"
state: absent
force_absent: yes
force_absent: true
- assert:
that:
@@ -145,7 +145,7 @@
docker_image:
name: "{{ iname }}"
state: absent
force_absent: yes
force_absent: true
- name: build.platform
docker_image:
@@ -153,10 +153,10 @@
build:
path: "{{ remote_tmp_dir }}/files"
platform: linux
pull: no
pull: false
source: build
register: platform_1
ignore_errors: yes
ignore_errors: true
- name: build.platform (idempotency)
docker_image:
@@ -164,16 +164,16 @@
build:
path: "{{ remote_tmp_dir }}/files"
platform: linux
pull: no
pull: false
source: build
register: platform_2
ignore_errors: yes
ignore_errors: true
- name: cleanup
docker_image:
name: "{{ iname }}"
state: absent
force_absent: yes
force_absent: true
- assert:
that:
@@ -189,7 +189,7 @@
name: "{{ iname }}"
build:
path: "{{ remote_tmp_dir }}/files"
pull: no
pull: false
source: build
- name: force (changed)
@@ -198,9 +198,9 @@
build:
path: "{{ remote_tmp_dir }}/files"
dockerfile: "MyDockerfile"
pull: no
pull: false
source: build
force_source: yes
force_source: true
register: force_1
- name: force (unchanged)
@@ -209,16 +209,16 @@
build:
path: "{{ remote_tmp_dir }}/files"
dockerfile: "MyDockerfile"
pull: no
pull: false
source: build
force_source: yes
force_source: true
register: force_2
- name: cleanup
docker_image:
name: "{{ iname }}"
state: absent
force_absent: yes
force_absent: true
- assert:
that:
@@ -309,7 +309,7 @@
docker_image:
name: "{{ docker_test_image_hello_world }}"
state: absent
force_absent: yes
force_absent: true
- name: load image (changed)
docker_image:
@@ -369,7 +369,7 @@
name: "{{ iname }}"
build:
path: "{{ remote_tmp_dir }}/files"
pull: no
pull: false
source: build
register: path_1
@@ -378,7 +378,7 @@
name: "{{ iname }}"
build:
path: "{{ remote_tmp_dir }}/files"
pull: no
pull: false
source: build
register: path_2
@@ -386,7 +386,7 @@
docker_image:
name: "{{ iname }}"
state: absent
force_absent: yes
force_absent: true
- assert:
that:
@@ -404,7 +404,7 @@
path: "{{ remote_tmp_dir }}/files"
dockerfile: "StagedDockerfile"
target: first
pull: no
pull: false
source: build
register: dockerfile_2
@@ -412,7 +412,7 @@
docker_image:
name: "{{ iname }}"
state: absent
force_absent: yes
force_absent: true
- assert:
that:
@@ -429,7 +429,7 @@
build:
path: "{{ remote_tmp_dir }}/files"
dockerfile: "EtcHostsDockerfile"
pull: no
pull: false
etc_hosts:
some-custom-host: "127.0.0.1"
source: build
@@ -439,7 +439,7 @@
docker_image:
name: "{{ iname }}"
state: absent
force_absent: yes
force_absent: true
- assert:
that: