diff options
Diffstat (limited to 'test/integration/targets/vyos_static_routes/tests/cli/parsed.yaml')
-rw-r--r-- | test/integration/targets/vyos_static_routes/tests/cli/parsed.yaml | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/test/integration/targets/vyos_static_routes/tests/cli/parsed.yaml b/test/integration/targets/vyos_static_routes/tests/cli/parsed.yaml deleted file mode 100644 index 18e5781e71..0000000000 --- a/test/integration/targets/vyos_static_routes/tests/cli/parsed.yaml +++ /dev/null @@ -1,39 +0,0 @@ ---- -- debug: - msg: "START vyos_static_routes parsed integration tests on connection={{ ansible_connection }}" - -- include_tasks: _remove_config.yaml - -- include_tasks: _populate.yaml - -- block: - - name: Gather static_routes facts - vyos_facts: - gather_subset: - - default - gather_network_resources: - - static_routes - register: static_routes_facts - - - name: Provide the running configuration for parsing (config to be parsed) - vyos_static_routes: &parsed - running_config: - "{{ lookup('file', '_parsed_config.cfg') }}" - state: parsed - register: result - - - name: Assert that correct parsing done - assert: - that: "{{ ansible_facts['network_resources']['static_routes'] | symmetric_difference(result['parsed']) |length == 0 }}" - - - name: Gather the existing running configuration (IDEMPOTENT) - vyos_static_routes: *parsed - register: result - - - name: Assert that the previous task was idempotent - assert: - that: - - "result['changed'] == false" - - always: - - include_tasks: _remove_config.yaml |