mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
iosxr_banner Implementation module (#25744)
* Add iosxr_banner implementation module Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * Integration test for iosxr_banner Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * Unit test for iosxr_banner Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * remove blank line pep8 Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
c5b8196ff1
commit
98269888a9
10 changed files with 385 additions and 0 deletions
16
test/integration/targets/iosxr_banner/tasks/cli.yaml
Normal file
16
test/integration/targets/iosxr_banner/tasks/cli.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
- name: collect all cli test cases
|
||||
find:
|
||||
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 }}"
|
||||
|
||||
- name: run test case
|
||||
include: "{{ test_case_to_run }}"
|
||||
with_items: "{{ test_items }}"
|
||||
loop_control:
|
||||
loop_var: test_case_to_run
|
2
test/integration/targets/iosxr_banner/tasks/main.yaml
Normal file
2
test/integration/targets/iosxr_banner/tasks/main.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
- { include: cli.yaml, tags: ['cli'] }
|
Loading…
Add table
Add a link
Reference in a new issue