blob: a646d679c42bf9a3ef112dcd4630a04954aaab78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
|