Skip to content

Commit

Permalink
Fix another ansible warning
Browse files Browse the repository at this point in the history
  • Loading branch information
smlx committed Jan 3, 2020
1 parent 5081fe7 commit cd47540
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/checks/check-url-header-absent.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
---
- name: "{{ testname }} - Check if URL {{url}} returns without Header set to {{expected_header}}"

- name: >-
{{ testname }} - Check if URL {{url}} returns without Header set to
{{expected_header}}
uri:
url: "{{ url }}"
validate_certs: no
HEADER_Host: "{{ host }}"
register: result
failed_when: result.{{expected_header}} is defined
- name: "{{ testname }} - Check if URL {{url}} returns without Header set to {{expected_header}}"
failed_when: result[expected_header] is defined

- name: >-
{{ testname }} - Check if URL {{url}} returns without Header set to
{{expected_header}}
debug: msg="Success!!!"

0 comments on commit cd47540

Please sign in to comment.