mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-22 12:03:58 -07:00
fixes issue with config parents on eos modules (#21923)
eos_config module wasn't respecting config block path (parents). This patch fixes that problem. Also fixes a number of integration tests cases fixes #21903
This commit is contained in:
parent
14c05d9e2b
commit
1f9b503e89
11 changed files with 58 additions and 25 deletions
|
@ -34,7 +34,7 @@
|
|||
- assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
- "result.updates is not defined"
|
||||
- "result.updates is defined"
|
||||
|
||||
- name: collect any backup files
|
||||
find:
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
- assert:
|
||||
that:
|
||||
- "result.changed == false"
|
||||
- "'hostname foo' in result.updates"
|
||||
|
||||
- name: teardown
|
||||
eos_config:
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
- assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
- "result.updates is not defined"
|
||||
- "result.updates is defined"
|
||||
|
||||
- name: check device with defaults included
|
||||
eos_config:
|
||||
|
|
|
@ -21,11 +21,12 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
# https://github.com/ansible/ansible-modules-core/issues/4807
|
||||
- "result.updates is not defined"
|
||||
- "result.updates is defined"
|
||||
|
||||
- name: check device with config
|
||||
eos_config:
|
||||
src: basic/config.j2
|
||||
defaults: yes
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
|
|
|
@ -22,13 +22,13 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
# https://github.com/ansible/ansible-modules-core/issues/4807
|
||||
- "result.updates is not defined"
|
||||
#- "result.updates is not defined"
|
||||
|
||||
- name: check device with config
|
||||
eos_config:
|
||||
src: basic/config.j2
|
||||
defaults: yes
|
||||
provider: "{{ cli }}"
|
||||
match: none
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
- assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
- "result.updates is not defined"
|
||||
- "result.updates is defined"
|
||||
|
||||
- name: collect any backup files
|
||||
find:
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
- assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
- "result.updates is not defined"
|
||||
- "result.updates is defined"
|
||||
|
||||
- name: check device with defaults included
|
||||
eos_config:
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
# https://github.com/ansible/ansible-modules-core/issues/4807
|
||||
- "result.updates is not defined"
|
||||
- "result.updates is defined"
|
||||
|
||||
- name: check device with config
|
||||
eos_config:
|
||||
|
|
|
@ -22,13 +22,12 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
# https://github.com/ansible/ansible-modules-core/issues/4807
|
||||
- "result.updates is not defined"
|
||||
- "result.updates is defined"
|
||||
|
||||
- name: check device with config
|
||||
eos_config:
|
||||
src: basic/config.j2
|
||||
provider: "{{ eapi }}"
|
||||
match: none
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue