mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Deprecate tests used as filters (#32361)
* Warn on tests used as filters * Update docs, add aliases for tests that fit more gramatically with test syntax * Fix rst formatting * Add successful filter, alias of success * Remove renamed_deprecation, it was overkill * Make directory alias for is_dir * Update tests to use proper jinja test syntax * Update additional documentation, living outside of YAML files, to reflect proper jinja test syntax * Add conversion script, porting guide updates, and changelog updates * Update newly added uses of tests as filters * No underscore variable * Convert recent tests as filter changes to win_stat * Fix some changes related to rebasing a few integration tests * Make tests_as_filters_warning explicitly accept the name of the test, instead of inferring the name * Add test for tests_as_filters_warning * Update tests as filters in newly added/modified tests * Address recent changes to several integration tests * Address recent changes in cs_vpc
This commit is contained in:
parent
fd4a6cf7ad
commit
4fe08441be
349 changed files with 4086 additions and 3844 deletions
|
@ -15,8 +15,8 @@
|
|||
- name: "Validate: A record creation"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == '127.0.0.1'
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.type == 'A'
|
||||
|
@ -37,8 +37,8 @@
|
|||
- name: "Validate: A record idempotency"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
||||
- name: "Test: A record update"
|
||||
cloudflare_dns:
|
||||
|
@ -54,8 +54,8 @@
|
|||
- name: "Validate: A record update"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.ttl == 300
|
||||
|
||||
- name: "Test: A record duplicate (create new record)"
|
||||
|
@ -72,8 +72,8 @@
|
|||
- name: "Validate: A record duplicate (create new record)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == '127.0.1.1'
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.type == 'A'
|
||||
|
@ -94,8 +94,8 @@
|
|||
- name: "Validate: A record duplicate (old record present)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
- cloudflare_dns.result.record.content == '127.0.0.1'
|
||||
- cloudflare_dns.result.record.ttl == 300
|
||||
- cloudflare_dns.result.record.type == 'A'
|
||||
|
@ -117,8 +117,8 @@
|
|||
- name: "Validate: A record duplicate (make new record solo)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == '127.0.1.1'
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.type == 'A'
|
||||
|
@ -140,8 +140,8 @@
|
|||
- name: "Validate: A record duplicate (old record absent)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
||||
- name: "Test: A record deletion"
|
||||
cloudflare_dns:
|
||||
|
@ -158,8 +158,8 @@
|
|||
- name: "Validate: A record deletion"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
|
||||
- name: "Test: A record deletion succeeded"
|
||||
cloudflare_dns:
|
||||
|
@ -176,5 +176,5 @@
|
|||
- name: "Validate: A record deletion succeeded"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
- name: "Validate: AAAA record creation"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == '::1'
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.type == 'AAAA'
|
||||
|
@ -37,8 +37,8 @@
|
|||
- name: "Validate: AAAA record idempotency"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
||||
- name: "Test: AAAA record update"
|
||||
cloudflare_dns:
|
||||
|
@ -54,8 +54,8 @@
|
|||
- name: "Validate: AAAA record update"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.ttl == 300
|
||||
|
||||
- name: "Test: AAAA record duplicate (create new record)"
|
||||
|
@ -72,8 +72,8 @@
|
|||
- name: "Validate: AAAA record duplicate (create new record)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == '::2'
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.type == 'AAAA'
|
||||
|
@ -94,8 +94,8 @@
|
|||
- name: "Validate: AAAA record duplicate (old record present)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
- cloudflare_dns.result.record.content == '::1'
|
||||
- cloudflare_dns.result.record.ttl == 300
|
||||
- cloudflare_dns.result.record.type == 'AAAA'
|
||||
|
@ -117,8 +117,8 @@
|
|||
- name: "Validate: AAAA record duplicate (make new record solo)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == '::2'
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.type == 'AAAA'
|
||||
|
@ -140,8 +140,8 @@
|
|||
- name: "Validate: AAAA record duplicate (old record absent)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
||||
- name: "Test: AAAA record deletion"
|
||||
cloudflare_dns:
|
||||
|
@ -158,8 +158,8 @@
|
|||
- name: "Validate: AAAA record deletion"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
|
||||
- name: "Test: AAAA record deletion succeeded"
|
||||
cloudflare_dns:
|
||||
|
@ -176,5 +176,5 @@
|
|||
- name: "Validate: AAAA record deletion succeeded"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
- name: "Validate: CNAME record creation"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == "srv1.{{ cloudflare_zone }}"
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.type == 'CNAME'
|
||||
|
@ -39,8 +39,8 @@
|
|||
- name: "Validate: CNAME record idempotency"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
||||
- name: "Test: CNAME record update"
|
||||
cloudflare_dns:
|
||||
|
@ -56,8 +56,8 @@
|
|||
- name: "Validate: CNAME record update"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == "srv2.{{ cloudflare_zone }}"
|
||||
- cloudflare_dns.result.record.ttl == 300
|
||||
|
||||
|
@ -76,8 +76,8 @@
|
|||
- name: "Validate: CNAME record duplicate (make new record solo)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == "srv3.{{ cloudflare_zone }}"
|
||||
- cloudflare_dns.result.record.ttl == 600
|
||||
- cloudflare_dns.result.record.type == 'CNAME'
|
||||
|
@ -99,8 +99,8 @@
|
|||
- name: "Validate: CNAME record duplicate (old record absent)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
||||
- name: "Test: CNAME record deletion"
|
||||
cloudflare_dns:
|
||||
|
@ -117,8 +117,8 @@
|
|||
- name: "Validate: CNAME record deletion"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
|
||||
- name: "Test: CNAME record deletion succeeded"
|
||||
cloudflare_dns:
|
||||
|
@ -135,5 +135,5 @@
|
|||
- name: "Validate: CNAME record deletion succeeded"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
- name: "Validate: no args"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|failed
|
||||
- cloudflare_dns is failed
|
||||
- "cloudflare_dns.msg.find('missing required arguments: ') != -1"
|
||||
|
||||
- name: "Test: only credentials"
|
||||
|
@ -20,7 +20,7 @@
|
|||
- name: "Validate: only credentials"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|failed
|
||||
- cloudflare_dns is failed
|
||||
- "cloudflare_dns.msg.find('missing required arguments: ') != -1"
|
||||
|
||||
- name: "Test: credentials and zone"
|
||||
|
@ -34,7 +34,7 @@
|
|||
- name: "Validate: credentials and zone"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|failed
|
||||
- cloudflare_dns is failed
|
||||
- "cloudflare_dns.msg.find('but the following are missing: ') != -1"
|
||||
|
||||
- name: "Test: credentials, zone and type"
|
||||
|
@ -49,7 +49,7 @@
|
|||
- name: "Validate: credentials, zone and type"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|failed
|
||||
- cloudflare_dns is failed
|
||||
- "cloudflare_dns.msg.find('but the following are missing: ') != -1"
|
||||
|
||||
######## record tests #################
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
- name: "Validate: MX record creation"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == 'mx1-{{ cloudflare_dns_record }}.{{ cloudflare_zone }}'
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.priority == 20
|
||||
|
@ -40,8 +40,8 @@
|
|||
- name: "Validate: MX record idempotency"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
||||
- name: "Test: MX record update"
|
||||
cloudflare_dns:
|
||||
|
@ -58,8 +58,8 @@
|
|||
- name: "Validate: MX record update"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.ttl == 300
|
||||
- cloudflare_dns.result.record.priority == 10
|
||||
|
||||
|
@ -78,8 +78,8 @@
|
|||
- name: "Validate: MX record duplicate (create new record)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == 'mx2-{{ cloudflare_dns_record }}.{{ cloudflare_zone }}'
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.priority == 30
|
||||
|
@ -102,8 +102,8 @@
|
|||
- name: "Validate: MX record duplicate (old record present)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
- cloudflare_dns.result.record.content == 'mx1-{{ cloudflare_dns_record }}.{{ cloudflare_zone }}'
|
||||
- cloudflare_dns.result.record.ttl == 300
|
||||
- cloudflare_dns.result.record.priority == 10
|
||||
|
@ -127,8 +127,8 @@
|
|||
- name: "Validate: MX record duplicate (make new record solo)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == 'mx2-{{ cloudflare_dns_record }}.{{ cloudflare_zone }}'
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.priority == 30
|
||||
|
@ -152,8 +152,8 @@
|
|||
- name: "Validate: MX record duplicate (old record absent)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
||||
- name: "Test: MX record deletion"
|
||||
cloudflare_dns:
|
||||
|
@ -171,8 +171,8 @@
|
|||
- name: "Validate: MX record deletion"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
|
||||
- name: "Test: MX record deletion succeeded"
|
||||
cloudflare_dns:
|
||||
|
@ -190,5 +190,5 @@
|
|||
- name: "Validate: MX record deletion succeeded"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
- name: "Validate: NS record creation"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == 'an.si.ble'
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.type == 'NS'
|
||||
|
@ -39,8 +39,8 @@
|
|||
- name: "Validate: NS record idempotency"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
||||
- name: "Test: NS record update"
|
||||
cloudflare_dns:
|
||||
|
@ -56,8 +56,8 @@
|
|||
- name: "Validate: NS record update"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.ttl == 300
|
||||
|
||||
- name: "Test: NS record duplicate (create new record)"
|
||||
|
@ -74,8 +74,8 @@
|
|||
- name: "Validate: NS record duplicate (create new record)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == 'ble.si.an'
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.type == 'NS'
|
||||
|
@ -96,8 +96,8 @@
|
|||
- name: "Validate: NS record duplicate (old record present)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
- cloudflare_dns.result.record.content == 'an.si.ble'
|
||||
- cloudflare_dns.result.record.ttl == 300
|
||||
- cloudflare_dns.result.record.type == 'NS'
|
||||
|
@ -119,8 +119,8 @@
|
|||
- name: "Validate: NS record duplicate (make new record solo)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == 'ble.si.an'
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.type == 'NS'
|
||||
|
@ -142,8 +142,8 @@
|
|||
- name: "Validate: NS record duplicate (old record absent)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
||||
- name: "Test: NS record deletion"
|
||||
cloudflare_dns:
|
||||
|
@ -160,8 +160,8 @@
|
|||
- name: "Validate: NS record deletion"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
|
||||
- name: "Test: NS record deletion succeeded"
|
||||
cloudflare_dns:
|
||||
|
@ -178,5 +178,5 @@
|
|||
- name: "Validate: NS record deletion succeeded"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
- name: "Validate: SPF record creation"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == "{{ txt_teststring }}"
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.type == 'SPF'
|
||||
|
@ -41,8 +41,8 @@
|
|||
- name: "Validate: SPF record idempotency"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
||||
- name: "Test: SPF record update"
|
||||
cloudflare_dns:
|
||||
|
@ -58,8 +58,8 @@
|
|||
- name: "Validate: SPF record update"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.ttl == 300
|
||||
|
||||
- name: "Test: SPF record duplicate (create new record)"
|
||||
|
@ -76,8 +76,8 @@
|
|||
- name: "Validate: SPF record duplicate (create new record)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == 'v=spf1 teststring'
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.type == 'SPF'
|
||||
|
@ -98,8 +98,8 @@
|
|||
- name: "Validate: SPF record duplicate (old record present)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
- cloudflare_dns.result.record.content == "{{ txt_teststring }}"
|
||||
- cloudflare_dns.result.record.ttl == 300
|
||||
- cloudflare_dns.result.record.type == 'SPF'
|
||||
|
@ -121,8 +121,8 @@
|
|||
- name: "Validate: SPF record duplicate (make new record solo)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == 'v=spf1 teststring'
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.type == 'SPF'
|
||||
|
@ -144,8 +144,8 @@
|
|||
- name: "Validate: SPF record duplicate (old record absent)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
||||
- name: "Test: SPF record deletion"
|
||||
cloudflare_dns:
|
||||
|
@ -162,8 +162,8 @@
|
|||
- name: "Validate: SPF record deletion"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
|
||||
- name: "Test: SPF record deletion succeeded"
|
||||
cloudflare_dns:
|
||||
|
@ -180,5 +180,5 @@
|
|||
- name: "Validate: SPF record deletion succeeded"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
- name: "Validate: SRV record creation"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == '5\t3500\tsrv1.{{ cloudflare_dns_record }}.{{ cloudflare_zone }}'
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.data.target == 'srv1.{{ cloudflare_dns_record }}.{{ cloudflare_zone }}'
|
||||
|
@ -54,8 +54,8 @@
|
|||
- name: "Validate: SRV record idempotency"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
||||
# changing the following attributes creates a new record:
|
||||
# weight
|
||||
|
@ -82,8 +82,8 @@
|
|||
- name: "Validate: SRV record update"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.ttl == 300
|
||||
- cloudflare_dns.result.record.data.target == 'srv1.{{ cloudflare_dns_record }}.{{ cloudflare_zone }}'
|
||||
- cloudflare_dns.result.record.data.port == 3500
|
||||
|
@ -112,8 +112,8 @@
|
|||
- name: "Validate: SRV record duplicate (create new record)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == '19\t9999\tsrv2.{{ cloudflare_dns_record }}.{{ cloudflare_zone }}'
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.data.target == 'srv2.{{ cloudflare_dns_record }}.{{ cloudflare_zone }}'
|
||||
|
@ -146,8 +146,8 @@
|
|||
- name: "Validate: SRV record duplicate (old record present)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
- cloudflare_dns.result.record.content == '5\t3500\tsrv1.{{ cloudflare_dns_record }}.{{ cloudflare_zone }}'
|
||||
- cloudflare_dns.result.record.ttl == 300
|
||||
- cloudflare_dns.result.record.data.target == 'srv1.{{ cloudflare_dns_record }}.{{ cloudflare_zone }}'
|
||||
|
@ -181,8 +181,8 @@
|
|||
- name: "Validate: SRV record duplicate (make new record solo)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == '19\t9999\tsrv2.{{ cloudflare_dns_record }}.{{ cloudflare_zone }}'
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.data.target == 'srv2.{{ cloudflare_dns_record }}.{{ cloudflare_zone }}'
|
||||
|
@ -216,8 +216,8 @@
|
|||
- name: "Validate: SRV record duplicate (old record absent)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
||||
- name: "Test: SRV record deletion"
|
||||
cloudflare_dns:
|
||||
|
@ -239,8 +239,8 @@
|
|||
- name: "Validate: SRV record deletion"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
|
||||
- name: "Test: SRV record deletion succeeded"
|
||||
cloudflare_dns:
|
||||
|
@ -262,5 +262,5 @@
|
|||
- name: "Validate: SRV record deletion succeeded"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
- name: "Validate: TXT record creation"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == "{{ txt_teststring }}"
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.type == 'TXT'
|
||||
|
@ -41,8 +41,8 @@
|
|||
- name: "Validate: TXT record idempotency"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
||||
- name: "Test: TXT record update"
|
||||
cloudflare_dns:
|
||||
|
@ -58,8 +58,8 @@
|
|||
- name: "Validate: TXT record update"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.ttl == 300
|
||||
|
||||
- name: "Test: TXT record duplicate (create new record)"
|
||||
|
@ -76,8 +76,8 @@
|
|||
- name: "Validate: TXT record duplicate (create new record)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == 'teststring'
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.type == 'TXT'
|
||||
|
@ -98,8 +98,8 @@
|
|||
- name: "Validate: TXT record duplicate (old record present)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
- cloudflare_dns.result.record.content == "{{ txt_teststring }}"
|
||||
- cloudflare_dns.result.record.ttl == 300
|
||||
- cloudflare_dns.result.record.type == 'TXT'
|
||||
|
@ -121,8 +121,8 @@
|
|||
- name: "Validate: TXT record duplicate (make new record solo)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
- cloudflare_dns.result.record.content == 'teststring'
|
||||
- cloudflare_dns.result.record.ttl == 150
|
||||
- cloudflare_dns.result.record.type == 'TXT'
|
||||
|
@ -144,8 +144,8 @@
|
|||
- name: "Validate: TXT record duplicate (old record absent)"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
||||
- name: "Test: TXT record deletion"
|
||||
cloudflare_dns:
|
||||
|
@ -162,8 +162,8 @@
|
|||
- name: "Validate: TXT record deletion"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is changed
|
||||
|
||||
- name: "Test: TXT record deletion succeeded"
|
||||
cloudflare_dns:
|
||||
|
@ -180,5 +180,5 @@
|
|||
- name: "Validate: TXT record deletion succeeded"
|
||||
assert:
|
||||
that:
|
||||
- cloudflare_dns|success
|
||||
- not cloudflare_dns|changed
|
||||
- cloudflare_dns is successful
|
||||
- cloudflare_dns is not changed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue