Adjust checks.

This commit is contained in:
Felix Fontein 2025-10-16 17:44:06 +02:00
parent 6b5d76bdee
commit 24f35644e3
5 changed files with 72 additions and 72 deletions

View File

@ -106,7 +106,7 @@
- assert: - assert:
that: that:
- present_1_check is changed - present_1_check is changed
- present_1_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_1_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_1 is changed - present_1 is changed
- present_1.containers | length == 1 - present_1.containers | length == 1
- present_1.containers[0].Name == (pname ~ '-' ~ cname ~ '-1') - present_1.containers[0].Name == (pname ~ '-' ~ cname ~ '-1')
@ -116,22 +116,22 @@
present_1.images[0].ContainerName == (pname ~ '-' ~ cname ~ '-1') present_1.images[0].ContainerName == (pname ~ '-' ~ cname ~ '-1')
- present_1.images[0].Repository == iname - present_1.images[0].Repository == iname
- present_1.images[0].Tag == "latest" - present_1.images[0].Tag == "latest"
- present_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_1.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_2_check is not changed - present_2_check is not changed
- present_2_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_2_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_2 is not changed - present_2 is not changed
- present_2.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_2.warnings | default([]) | select('regex', ' please report this at ') | length == 0
# - present_3_check is changed -- whether this is true depends on a combination of Docker CLI and Docker Compose version... # - present_3_check is changed -- whether this is true depends on a combination of Docker CLI and Docker Compose version...
# Compose 2.37.3 with Docker 28.2.x results in 'changed', while Compose 2.37.3 with Docker 28.3.0 results in 'not changed'. # Compose 2.37.3 with Docker 28.2.x results in 'changed', while Compose 2.37.3 with Docker 28.3.0 results in 'not changed'.
# It seems that Docker is now clever enough to notice that nothing is rebuilt... # It seems that Docker is now clever enough to notice that nothing is rebuilt...
- present_3_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_3_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- ((present_3 is changed) if docker_compose_version is version('2.31.0', '>=') and docker_compose_version is version('2.32.2', '<') else (present_3 is not changed)) - ((present_3 is changed) if docker_compose_version is version('2.31.0', '>=') and docker_compose_version is version('2.32.2', '<') else (present_3 is not changed))
- present_3.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_3.warnings | default([]) | select('regex', ' please report this at ') | length == 0
# - present_4_check is changed # - present_4_check is changed
# Same as above... # Same as above...
- present_4_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_4_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_4 is not changed - present_4 is not changed
- present_4.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_4.warnings | default([]) | select('regex', ' please report this at ') | length == 0
always: always:
- name: Cleanup - name: Cleanup

View File

@ -54,7 +54,7 @@
- assert: - assert:
that: that:
- present_1_check is changed - present_1_check is changed
- present_1_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_1_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_1 is failed - present_1 is failed
- present_1.containers | length == 1 - present_1.containers | length == 1
- present_1.containers[0].Name == (pname ~ '-' ~ cname ~ '-1') - present_1.containers[0].Name == (pname ~ '-' ~ cname ~ '-1')
@ -67,6 +67,6 @@
present_1.images[0].ContainerName == (pname ~ '-' ~ cname ~ '-1') present_1.images[0].ContainerName == (pname ~ '-' ~ cname ~ '-1')
- present_1.images[0].Repository == (docker_test_image_alpine | split(':') | first) - present_1.images[0].Repository == (docker_test_image_alpine | split(':') | first)
- present_1.images[0].Tag == (docker_test_image_alpine | split(':') | last) - present_1.images[0].Tag == (docker_test_image_alpine | split(':') | last)
- present_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_1.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- >- - >-
("container " ~ pname ~ '-' ~ cname ~ "-1 exited (0)") in present_1.msg ("container " ~ pname ~ '-' ~ cname ~ "-1 exited (0)") in present_1.msg

View File

@ -77,7 +77,7 @@
- assert: - assert:
that: that:
- present_1_check is changed - present_1_check is changed
- present_1_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_1_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_1 is changed - present_1 is changed
- present_1.containers | length == 1 - present_1.containers | length == 1
- present_1.containers[0].Name == (pname ~ '-' ~ cname ~ '-1') - present_1.containers[0].Name == (pname ~ '-' ~ cname ~ '-1')
@ -88,15 +88,15 @@
present_1.images[0].ContainerName == (pname ~ '-' ~ cname ~ '-1') present_1.images[0].ContainerName == (pname ~ '-' ~ cname ~ '-1')
- present_1.images[0].Repository == (docker_test_image_alpine | split(':') | first) - present_1.images[0].Repository == (docker_test_image_alpine | split(':') | first)
- present_1.images[0].Tag == (docker_test_image_alpine | split(':') | last) - present_1.images[0].Tag == (docker_test_image_alpine | split(':') | last)
- present_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_1.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_2_check is not changed - present_2_check is not changed
- present_2_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_2_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_2 is not changed - present_2 is not changed
- present_2.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_2.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_3_check is changed - present_3_check is changed
- present_3_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_3_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_3 is changed - present_3 is changed
- present_3.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_3.warnings | default([]) | select('regex', ' please report this at ') | length == 0
#################################################################### ####################################################################
## Absent ########################################################## ## Absent ##########################################################
@ -135,13 +135,13 @@
- assert: - assert:
that: that:
- absent_1_check is changed - absent_1_check is changed
- absent_1_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - absent_1_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- absent_1 is changed - absent_1 is changed
- absent_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - absent_1.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- absent_2_check is not changed - absent_2_check is not changed
- absent_2_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - absent_2_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- absent_2 is not changed - absent_2 is not changed
- absent_2.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - absent_2.warnings | default([]) | select('regex', ' please report this at ') | length == 0
#################################################################### ####################################################################
## Stopping and starting ########################################### ## Stopping and starting ###########################################
@ -261,30 +261,30 @@
- assert: - assert:
that: that:
- present_1_check is changed - present_1_check is changed
- present_1_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_1_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_1 is changed - present_1 is changed
- present_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_1.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_2_check is not changed - present_2_check is not changed
- present_2_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_2_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_2 is not changed - present_2 is not changed
- present_2.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_2.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_3_check is changed - present_3_check is changed
- present_3_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_3_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_3 is changed - present_3 is changed
- present_3.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_3.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_4_check is not changed - present_4_check is not changed
- present_4_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_4_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_4 is not changed - present_4 is not changed
- present_4.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_4.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_5_check is changed - present_5_check is changed
- present_5_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_5_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_5 is changed - present_5 is changed
- present_5.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_5.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_6_check is changed - present_6_check is changed
- present_6_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_6_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_6 is changed - present_6 is changed
- present_6.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_6.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_7_check is changed - present_7_check is changed
- present_7_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_7_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_7 is changed - present_7 is changed
- present_7.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_7.warnings | default([]) | select('regex', ' please report this at ') | length == 0

View File

@ -82,16 +82,16 @@
that: that:
- present_1_check is failed or present_1_check is changed - present_1_check is failed or present_1_check is changed
- present_1_check is changed or present_1_check.msg.startswith('General error:') - present_1_check is changed or present_1_check.msg.startswith('General error:')
- present_1_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_1_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_1 is failed - present_1 is failed
- present_1.msg.startswith('General error:') - present_1.msg.startswith('General error:')
- present_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_1.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_2_check is failed - present_2_check is failed
- present_2_check.msg.startswith('Error when processing ' ~ cname ~ ':') - present_2_check.msg.startswith('Error when processing ' ~ cname ~ ':')
- present_2_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_2_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_2 is failed - present_2 is failed
- present_2.msg.startswith('Error when processing ' ~ cname ~ ':') - present_2.msg.startswith('Error when processing ' ~ cname ~ ':')
- present_2.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_2.warnings | default([]) | select('regex', ' please report this at ') | length == 0
#################################################################### ####################################################################
## Regular image ################################################### ## Regular image ###################################################
@ -192,32 +192,32 @@
- present_1_check is changed - present_1_check is changed
- (present_1_check.actions | selectattr('status', 'eq', 'Pulling') | first) is truthy - (present_1_check.actions | selectattr('status', 'eq', 'Pulling') | first) is truthy
- (present_1_check.actions | selectattr('status', 'eq', 'Creating') | first) is truthy - (present_1_check.actions | selectattr('status', 'eq', 'Creating') | first) is truthy
- present_1_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_1_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_1 is changed - present_1 is changed
- (present_1.actions | selectattr('status', 'eq', 'Pulling') | first) is truthy - (present_1.actions | selectattr('status', 'eq', 'Pulling') | first) is truthy
- (present_1.actions | selectattr('status', 'eq', 'Creating') | first) is truthy - (present_1.actions | selectattr('status', 'eq', 'Creating') | first) is truthy
- present_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_1.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_2_check is not changed - present_2_check is not changed
- present_2_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_2_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_2 is not changed - present_2 is not changed
- present_2.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_2.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_3_check is changed - present_3_check is changed
- (present_3_check.actions | selectattr('status', 'eq', 'Pulling') | first) is truthy - (present_3_check.actions | selectattr('status', 'eq', 'Pulling') | first) is truthy
- present_3_check.actions | selectattr('status', 'eq', 'Creating') | length == 0 - present_3_check.actions | selectattr('status', 'eq', 'Creating') | length == 0
- present_3_check.actions | selectattr('status', 'eq', 'Recreating') | length == 0 - present_3_check.actions | selectattr('status', 'eq', 'Recreating') | length == 0
- present_3_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_3_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_3 is not changed - present_3 is not changed
- (present_3.actions | selectattr('status', 'eq', 'Pulling') | first) is truthy - (present_3.actions | selectattr('status', 'eq', 'Pulling') | first) is truthy
- present_3.actions | selectattr('status', 'eq', 'Creating') | length == 0 - present_3.actions | selectattr('status', 'eq', 'Creating') | length == 0
- present_3.actions | selectattr('status', 'eq', 'Recreating') | length == 0 - present_3.actions | selectattr('status', 'eq', 'Recreating') | length == 0
- present_3.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_3.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_4_check is changed - present_4_check is changed
- present_4_check.actions | selectattr('status', 'eq', 'Pulling') | length == 0 - present_4_check.actions | selectattr('status', 'eq', 'Pulling') | length == 0
- present_4_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_4_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_4 is changed - present_4 is changed
- present_4.actions | selectattr('status', 'eq', 'Pulling') | length == 0 - present_4.actions | selectattr('status', 'eq', 'Pulling') | length == 0
- present_4.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_4.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_5_check is not changed - present_5_check is not changed
- present_5_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_5_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_5 is not changed - present_5 is not changed
- present_5.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_5.warnings | default([]) | select('regex', ' please report this at ') | length == 0

View File

@ -94,7 +94,7 @@
- assert: - assert:
that: that:
- present_1_check is changed - present_1_check is changed
- present_1_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_1_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_1 is changed - present_1 is changed
- present_1.containers | length == 1 - present_1.containers | length == 1
- present_1.containers[0].Name == (pname ~ '-' ~ cname ~ '-1') - present_1.containers[0].Name == (pname ~ '-' ~ cname ~ '-1')
@ -105,15 +105,15 @@
present_1.images[0].ContainerName == (pname ~ '-' ~ cname ~ '-1') present_1.images[0].ContainerName == (pname ~ '-' ~ cname ~ '-1')
- present_1.images[0].Repository == (docker_test_image_alpine | split(':') | first) - present_1.images[0].Repository == (docker_test_image_alpine | split(':') | first)
- present_1.images[0].Tag == (docker_test_image_alpine | split(':') | last) - present_1.images[0].Tag == (docker_test_image_alpine | split(':') | last)
- present_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_1.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_2_check is not changed - present_2_check is not changed
- present_2_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_2_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_2 is not changed - present_2 is not changed
- present_2.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_2.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_3_check is changed - present_3_check is changed
- present_3_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_3_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_3 is changed - present_3 is changed
- present_3.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_3.warnings | default([]) | select('regex', ' please report this at ') | length == 0
#################################################################### ####################################################################
## Absent ########################################################## ## Absent ##########################################################
@ -148,13 +148,13 @@
- assert: - assert:
that: that:
- absent_1_check is changed - absent_1_check is changed
- absent_1_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - absent_1_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- absent_1 is changed - absent_1 is changed
- absent_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - absent_1.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- absent_2_check is not changed - absent_2_check is not changed
- absent_2_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - absent_2_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- absent_2 is not changed - absent_2 is not changed
- absent_2.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - absent_2.warnings | default([]) | select('regex', ' please report this at ') | length == 0
#################################################################### ####################################################################
## Stopping and starting ########################################### ## Stopping and starting ###########################################
@ -264,30 +264,30 @@
- assert: - assert:
that: that:
- present_1_check is changed - present_1_check is changed
- present_1_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_1_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_1 is changed - present_1 is changed
- present_1.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_1.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_2_check is not changed - present_2_check is not changed
- present_2_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_2_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_2 is not changed - present_2 is not changed
- present_2.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_2.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_3_check is changed - present_3_check is changed
- present_3_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_3_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_3 is changed - present_3 is changed
- present_3.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_3.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_4_check is not changed - present_4_check is not changed
- present_4_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_4_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_4 is not changed - present_4 is not changed
- present_4.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_4.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_5_check is changed - present_5_check is changed
- present_5_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_5_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_5 is changed - present_5 is changed
- present_5.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_5.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_6_check is changed - present_6_check is changed
- present_6_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_6_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_6 is changed - present_6 is changed
- present_6.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_6.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_7_check is changed - present_7_check is changed
- present_7_check.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_7_check.warnings | default([]) | select('regex', ' please report this at ') | length == 0
- present_7 is changed - present_7 is changed
- present_7.warnings | default([]) | select('regex', ' Please report this at ') | length == 0 - present_7.warnings | default([]) | select('regex', ' please report this at ') | length == 0