9eb7709c61
* Vyos static route module added Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * sanity fixes Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * empty config traceback fix Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * sanity check fix * model specific changes and SI test cases updated Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * new state changes and SI test cases updated Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * sanity fixes Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * UT cases added Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * replaced operation fix Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * review comments incorporated Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * shippable fix Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * sanity fix Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * delete opr updated Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * comments incorporated Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>
31 lines
844 B
YAML
31 lines
844 B
YAML
---
|
|
- debug:
|
|
msg: "START vyos_static_routes gathered integration tests on connection={{ ansible_connection }}"
|
|
|
|
- include_tasks: _remove_config.yaml
|
|
|
|
- include_tasks: _populate.yaml
|
|
|
|
- block:
|
|
- name: Merge the provided configuration with the exisiting running configuration
|
|
vyos_static_routes: &gathered
|
|
config:
|
|
state: gathered
|
|
register: result
|
|
|
|
- name: Assert that gathered dicts was correctly generated
|
|
assert:
|
|
that:
|
|
- "{{ populate | symmetric_difference(result['gathered']) |length == 0 }}"
|
|
|
|
- name: Gather the existing running configuration (IDEMPOTENT)
|
|
vyos_static_routes: *gathered
|
|
register: result
|
|
|
|
- name: Assert that the previous task was idempotent
|
|
assert:
|
|
that:
|
|
- "result['changed'] == false"
|
|
|
|
always:
|
|
- include_tasks: _remove_config.yaml
|