mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00: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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user