Debian Codegraph @

test/integration/targets/uri/tasks/ciphers.yml

raw
1 - name: test good cipher
2 uri:
3 url: https://{{ httpbin_host }}/get
4 ciphers: ECDHE-RSA-AES128-SHA256
5 register: good_ciphers
6
7 - name: test good cipher redirect
8 uri:
9 url: http://{{ httpbin_host }}/redirect-to?status_code=302&url=https://{{ httpbin_host }}/get
10 ciphers: ECDHE-RSA-AES128-SHA256
11 register: good_ciphers_redir
12
13 - name: test bad cipher
14 uri:
15 url: https://{{ httpbin_host }}/get
16 ciphers: ECDHE-ECDSA-AES128-SHA
17 ignore_errors: true
18 register: bad_ciphers
19
20 - name: test bad cipher redirect
21 uri:
22 url: http://{{ httpbin_host }}/redirect-to?status_code=302&url=https://{{ httpbin_host }}/get
23 ciphers: ECDHE-ECDSA-AES128-SHA
24 ignore_errors: true
25 register: bad_ciphers_redir
26
27 - assert:
28 that:
29 - good_ciphers is successful
30 - good_ciphers_redir is successful
31 - bad_ciphers is failed
32 - bad_ciphers_redir is failed