Skip to content

Commit

Permalink
add route-test for specific match-fields (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Oct 7, 2024
1 parent 3a75377 commit 4959dbe
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/route.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@
opn5.failed or
not opn5.changed
- name: Adding 2 - nothing changed with match-fields network & gateway
ansibleguy.opnsense.route:
description: 'ANSIBLE_TEST_2'
network: '4.4.4.2/32'
gateway: 'LAN_GW'
match_fields: ['network', 'gateway']
register: opn9
failed_when: >
opn9.failed or
opn9.changed
when: not ansible_check_mode

- name: Disabling 1
ansibleguy.opnsense.route:
description: 'ANSIBLE_TEST_1'
Expand Down

0 comments on commit 4959dbe

Please sign in to comment.