mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
iosxr tests: Initial work for 2.3 (#20883)
Ensure a loopback device exists for testing Remove provider: Default is to run task on Network, device, use delegate_to: localhost for local tasks.
This commit is contained in:
parent
e6f92bc3a9
commit
553b6151ad
38 changed files with 30 additions and 70 deletions
2
test/integration/targets/iosxr_facts/meta/main.yml
Normal file
2
test/integration/targets/iosxr_facts/meta/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
dependencies:
|
||||
- prepare_iosxr_tests
|
|
@ -4,6 +4,7 @@
|
|||
paths: "{{ role_path }}/tests/cli"
|
||||
patterns: "{{ testcase }}.yaml"
|
||||
register: test_cases
|
||||
delegate_to: localhost
|
||||
|
||||
- name: set test_items
|
||||
set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
- name: test getting all facts
|
||||
iosxr_facts:
|
||||
provider: "{{ cli }}"
|
||||
gather_subset:
|
||||
- all
|
||||
register: result
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
- name: test getting default facts
|
||||
iosxr_facts:
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
- name: test invalid subset (foobar)
|
||||
iosxr_facts:
|
||||
provider: "{{ cli }}"
|
||||
gather_subset:
|
||||
- "foobar"
|
||||
register: result
|
||||
|
@ -26,7 +25,6 @@
|
|||
|
||||
- name: test subset specified multiple times
|
||||
iosxr_facts:
|
||||
provider: "{{ cli }}"
|
||||
gather_subset:
|
||||
- "!hardware"
|
||||
- "hardware"
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
- name: test not hardware
|
||||
iosxr_facts:
|
||||
provider: "{{ cli }}"
|
||||
gather_subset:
|
||||
- "!hardware"
|
||||
register: result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue