diff options
Diffstat (limited to 'test/integration/targets/ios_acls/tests/cli/replaced.yaml')
-rw-r--r-- | test/integration/targets/ios_acls/tests/cli/replaced.yaml | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/test/integration/targets/ios_acls/tests/cli/replaced.yaml b/test/integration/targets/ios_acls/tests/cli/replaced.yaml deleted file mode 100644 index 1562adae8d..0000000000 --- a/test/integration/targets/ios_acls/tests/cli/replaced.yaml +++ /dev/null @@ -1,72 +0,0 @@ ---- -- debug: - msg: "START Replaced ios_acls state for integration tests on connection={{ ansible_connection }}" - -- include_tasks: _remove_config.yaml - -- include_tasks: _populate_config.yaml - -- block: - - name: Replaces device configuration of listed interfaces with provided configuration - ios_acls: &replaced - config: - - afi: ipv4 - acls: - - name: 110 - aces: - - grant: deny - protocol_options: - tcp: - syn: true - source: - address: 192.0.2.0 - wildcard_bits: 0.0.0.255 - destination: - address: 192.0.3.0 - wildcard_bits: 0.0.0.255 - port_protocol: - eq: www - dscp: ef - ttl: - eq: 10 - - name: 150 - aces: - - grant: deny - sequence: 20 - protocol_options: - tcp: - syn: true - source: - address: 198.51.100.0 - wildcard_bits: 0.0.0.255 - port_protocol: - eq: telnet - destination: - address: 198.51.110.0 - wildcard_bits: 0.0.0.255 - port_protocol: - eq: telnet - dscp: ef - ttl: - eq: 10 - state: replaced - register: result - - - assert: - that: - - "result.commands|length == 5" - - "result.changed == true" - - "result.commands|symmetric_difference(replaced.commands) == []" - - - name: Replaces device configuration of listed interfaces with provided configuration (IDEMPOTENT) - ios_acls: *replaced - register: result - - - name: Assert that task was idempotent - assert: - that: - - "result.commands|length == 0" - - "result['changed'] == false" - - always: - - include_tasks: _remove_config.yaml |