diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 16:04:21 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 16:04:21 +0000 |
commit | 8a754e0858d922e955e71b253c139e071ecec432 (patch) | |
tree | 527d16e74bfd1840c85efd675fdecad056c54107 /test/integration/targets/uri/tasks/ciphers.yml | |
parent | Initial commit. (diff) | |
download | ansible-core-upstream/2.14.3.tar.xz ansible-core-upstream/2.14.3.zip |
Adding upstream version 2.14.3.upstream/2.14.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | test/integration/targets/uri/tasks/ciphers.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/integration/targets/uri/tasks/ciphers.yml b/test/integration/targets/uri/tasks/ciphers.yml new file mode 100644 index 0000000..a646d67 --- /dev/null +++ b/test/integration/targets/uri/tasks/ciphers.yml @@ -0,0 +1,32 @@ +- name: test good cipher + uri: + url: https://{{ httpbin_host }}/get + ciphers: ECDHE-RSA-AES128-SHA256 + register: good_ciphers + +- name: test good cipher redirect + uri: + url: http://{{ httpbin_host }}/redirect-to?status_code=302&url=https://{{ httpbin_host }}/get + ciphers: ECDHE-RSA-AES128-SHA256 + register: good_ciphers_redir + +- name: test bad cipher + uri: + url: https://{{ httpbin_host }}/get + ciphers: ECDHE-ECDSA-AES128-SHA + ignore_errors: true + register: bad_ciphers + +- name: test bad cipher redirect + uri: + url: http://{{ httpbin_host }}/redirect-to?status_code=302&url=https://{{ httpbin_host }}/get + ciphers: ECDHE-ECDSA-AES128-SHA + ignore_errors: true + register: bad_ciphers_redir + +- assert: + that: + - good_ciphers is successful + - good_ciphers_redir is successful + - bad_ciphers is failed + - bad_ciphers_redir is failed |