1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/nxos_pim/tests/common/sanity.yaml
Nathaniel Case 483df13626 Fixing issues with httpapi (#40388)
* I seem to have forgotten the back half of tests

* Set http timeout from persistent_command_timeout

* Tweak URL generation and provide URL on error

* Push var_options to connection process

* Don't wait forever if coming from persistent

* Don't send the entire contents of variables to ansible-connection
2018-05-21 15:58:35 +01:00

69 lines
1.4 KiB
YAML

---
- debug: msg="START connection={{ ansible_connection }} nxos_pim sanity test"
- debug: msg="Using provider={{ connection.transport }}"
when: ansible_connection == "local"
- name: "Setup: Disable feature PIM"
nxos_feature: &disable_feature
feature: pim
state: disabled
- name: "Setup: Enable feature PIM"
nxos_feature:
feature: pim
state: enabled
- name: "Setup: Configure ssm_range none"
nxos_pim: &none
ssm_range: "none"
- block:
- name: Configure ssm_range
nxos_pim: &configure
ssm_range:
- "239.128.1.0/24"
- "224.0.0.0/8"
register: result
- assert: &true
that:
- "result.changed == true"
- name: Check idempotence
nxos_pim: *configure
register: result
- assert: &false
that:
- "result.changed == false"
- name: Configure ssm_range default
nxos_pim: &conf_default
ssm_range: "default"
register: result
- assert: *true
- name: Check idempotence
nxos_pim: *conf_default
register: result
- assert: *false
- name: Configure ssm_range none
nxos_pim: *none
register: result
- assert: *true
- name: Check idempotence
nxos_pim: *none
register: result
- assert: *false
always:
- name: "Disable feature PIM"
nxos_feature: *disable_feature
- debug: msg="END connection={{ ansible_connection }} nxos_pim sanity test"