summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/docker_container
diff options
context:
space:
mode:
authorFelix Fontein <felix@fontein.de>2019-06-23 21:52:24 +0200
committerGitHub <noreply@github.com>2019-06-23 21:52:24 +0200
commit66a4000058ef33eadb08b45a8baba251d4198266 (patch)
tree8abd88931a439bb5bcdf3670fcd729edc1076871 /test/integration/targets/docker_container
parentRemove from sanity ignores. (#57911) (diff)
downloadansible-66a4000058ef33eadb08b45a8baba251d4198266.tar.xz
ansible-66a4000058ef33eadb08b45a8baba251d4198266.zip
Adjust tests to new error messages for older docker-py versions. (#58253)
Diffstat (limited to 'test/integration/targets/docker_container')
-rw-r--r--test/integration/targets/docker_container/tasks/tests/options.yml36
1 files changed, 24 insertions, 12 deletions
diff --git a/test/integration/targets/docker_container/tasks/tests/options.yml b/test/integration/targets/docker_container/tasks/tests/options.yml
index f564751de6..5dffcaf763 100644
--- a/test/integration/targets/docker_container/tasks/tests/options.yml
+++ b/test/integration/targets/docker_container/tasks/tests/options.yml
@@ -42,7 +42,8 @@
- assert:
that:
- auto_remove_1 is failed
- - "('version is ' ~ docker_py_version ~'. Minimum version required is 2.1.0') in auto_remove_1.msg"
+ - "('version is ' ~ docker_py_version ~ ' ') in auto_remove_1.msg"
+ - "'Minimum version required is 2.1.0 ' in auto_remove_1.msg"
when: docker_py_version is version('2.1.0', '<')
####################################################################
@@ -679,7 +680,8 @@
- assert:
that:
- device_read_bps_1 is failed
- - "('version is ' ~ docker_py_version ~'. Minimum version required is 1.9.0') in device_read_bps_1.msg"
+ - "('version is ' ~ docker_py_version ~ ' ') in device_read_bps_1.msg"
+ - "'Minimum version required is 1.9.0 ' in device_read_bps_1.msg"
when: docker_py_version is version('1.9.0', '<')
####################################################################
@@ -758,7 +760,8 @@
- assert:
that:
- device_read_iops_1 is failed
- - "('version is ' ~ docker_py_version ~'. Minimum version required is 1.9.0') in device_read_iops_1.msg"
+ - "('version is ' ~ docker_py_version ~ ' ') in device_read_iops_1.msg"
+ - "'Minimum version required is 1.9.0 ' in device_read_iops_1.msg"
when: docker_py_version is version('1.9.0', '<')
####################################################################
@@ -827,7 +830,8 @@
- assert:
that:
- device_write_limit_1 is failed
- - "('version is ' ~ docker_py_version ~'. Minimum version required is 1.9.0') in device_write_limit_1.msg"
+ - "('version is ' ~ docker_py_version ~ ' ') in device_write_limit_1.msg"
+ - "'Minimum version required is 1.9.0 ' in device_write_limit_1.msg"
when: docker_py_version is version('1.9.0', '<')
####################################################################
@@ -899,7 +903,8 @@
- assert:
that:
- dns_opts_1 is failed
- - "('version is ' ~ docker_py_version ~'. Minimum version required is 1.10.0') in dns_opts_1.msg"
+ - "('version is ' ~ docker_py_version ~ ' ') in dns_opts_1.msg"
+ - "'Minimum version required is 1.10.0 ' in dns_opts_1.msg"
when: docker_py_version is version('1.10.0', '<')
####################################################################
@@ -1602,7 +1607,8 @@
- assert:
that:
- healthcheck_1 is failed
- - "('version is ' ~ docker_py_version ~'. Minimum version required is 2.0.0') in healthcheck_1.msg"
+ - "('version is ' ~ docker_py_version ~ ' ') in healthcheck_1.msg"
+ - "'Minimum version required is 2.0.0 ' in healthcheck_1.msg"
when: docker_py_version is version('2.0.0', '<')
####################################################################
@@ -1701,7 +1707,8 @@
- assert:
that:
- init_1 is failed
- - "('version is ' ~ docker_py_version ~'. Minimum version required is 2.2.0') in init_1.msg"
+ - "('version is ' ~ docker_py_version ~ ' ') in init_1.msg"
+ - "'Minimum version required is 2.2.0 ' in init_1.msg"
when: docker_py_version is version('2.2.0', '<')
####################################################################
@@ -2699,7 +2706,8 @@ avoid such warnings, please quote the value.' in log_options_2.warnings"
- assert:
that:
- pids_limit_1 is failed
- - "('version is ' ~ docker_py_version ~'. Minimum version required is 1.10.0') in pids_limit_1.msg"
+ - "('version is ' ~ docker_py_version ~ ' ') in pids_limit_1.msg"
+ - "'Minimum version required is 1.10.0 ' in pids_limit_1.msg"
when: docker_py_version is version('1.10.0', '<')
####################################################################
@@ -2992,7 +3000,8 @@ avoid such warnings, please quote the value.' in log_options_2.warnings"
- assert:
that:
- runtime_1 is failed
- - "('version is ' ~ docker_py_version ~'. Minimum version required is 2.4.0') in runtime_1.msg"
+ - "('version is ' ~ docker_py_version ~ ' ') in runtime_1.msg"
+ - "'Minimum version required is 2.4.0 ' in runtime_1.msg"
when: docker_py_version is version('2.4.0', '<')
####################################################################
@@ -3287,7 +3296,8 @@ avoid such warnings, please quote the value.' in log_options_2.warnings"
- assert:
that:
- sysctls_1 is failed
- - "('version is ' ~ docker_py_version ~'. Minimum version required is 1.10.0') in sysctls_1.msg"
+ - "('version is ' ~ docker_py_version ~ ' ') in sysctls_1.msg"
+ - "'Minimum version required is 1.10.0 ' in sysctls_1.msg"
when: docker_py_version is version('1.10.0', '<')
####################################################################
@@ -3561,7 +3571,8 @@ avoid such warnings, please quote the value.' in log_options_2.warnings"
- assert:
that:
- userns_mode_1 is failed
- - "('version is ' ~ docker_py_version ~'. Minimum version required is 1.10.0') in userns_mode_1.msg"
+ - "('version is ' ~ docker_py_version ~ ' ') in userns_mode_1.msg"
+ - "'Minimum version required is 1.10.0 ' in userns_mode_1.msg"
when: docker_py_version is version('1.10.0', '<')
####################################################################
@@ -3615,7 +3626,8 @@ avoid such warnings, please quote the value.' in log_options_2.warnings"
- assert:
that:
- uts_1 is failed
- - "('version is ' ~ docker_py_version ~'. Minimum version required is 3.5.0') in uts_1.msg"
+ - "('version is ' ~ docker_py_version ~ ' ') in uts_1.msg"
+ - "'Minimum version required is 3.5.0 ' in uts_1.msg"
when: docker_py_version is version('3.5.0', '<')
####################################################################