diff --git a/changelogs/fragments/fix_delete_route_maps.yaml b/changelogs/fragments/fix_delete_route_maps.yaml new file mode 100644 index 0000000..ac14f57 --- /dev/null +++ b/changelogs/fragments/fix_delete_route_maps.yaml @@ -0,0 +1,3 @@ +--- +trivial: + - fix delete integration test diff --git a/tests/integration/targets/vyos_route_maps/tests/cli/deleted.yaml b/tests/integration/targets/vyos_route_maps/tests/cli/deleted.yaml index efcb88b..c8b9e26 100644 --- a/tests/integration/targets/vyos_route_maps/tests/cli/deleted.yaml +++ b/tests/integration/targets/vyos_route_maps/tests/cli/deleted.yaml @@ -1,36 +1,36 @@ --- - debug: msg: START vyos_route_maps deleted integration tests on connection={{ ansible_connection }} - include_tasks: _remove_config.yaml - include_tasks: _populate.yaml - block: - name: Delete the provided configuration register: result vyos.vyos.vyos_route_maps: &id001 config: state: deleted - assert: that: - result.commands|length == 2 - result.changed == true - result.commands|symmetric_difference(deleted.commands) == [] - name: Delete the existing configuration with the provided running configuration (IDEMPOTENT) register: result - vyos.vyos.vyos_ospf_interfaces: *id001 + vyos.vyos.vyos_route_maps: *id001 - name: Assert that the previous task was idempotent assert: that: - result['changed'] == false always: - include_tasks: _remove_config.yaml