Skip to content

Commit

Permalink
fix interface-lagg tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Oct 25, 2024
1 parent d329915 commit 21a1761
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
5 changes: 1 addition & 4 deletions tests/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,8 @@

- name: Cleanup lagg interfaces
ansibleguy.opnsense.interface_lagg:
members:
- "{{ if_lag }}"
device: 'lagg0'
state: 'absent'
vars:
if_lag: "{{ lookup('ansible.builtin.env', 'TEST_FIREWALL_LAGG_IF') | default('vtnet2', true) }}"

- name: Cleanup source-nat
ansibleguy.opnsense.source_nat:
Expand Down
8 changes: 2 additions & 6 deletions tests/interface_lagg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,13 @@
register: opn3
failed_when: >
'data' not in opn3 or
opn3.data | length != 4
opn3.data | length != 1
when: not ansible_check_mode

- name: Removing 2
- name: Cleanup
ansibleguy.opnsense.interface_lagg:
device: 'lagg0'
state: 'absent'
register: opn4
failed_when: >
opn4.failed or
not opn4.changed
when: not ansible_check_mode

- name: Listing
Expand Down

0 comments on commit 21a1761

Please sign in to comment.