Skip to content

Commit

Permalink
Search ALBs by name when testing include_, to ensure we get the ALB w…
Browse files Browse the repository at this point in the history
…e're expecting (and it has the things we're testing for)
  • Loading branch information
tremble committed Dec 4, 2023
1 parent d9fb2be commit 1b67b18
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/integration/targets/elb_application_lb/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,8 @@

- name: Get ALB application info without skipping anything
amazon.aws.elb_application_lb_info:
names:
- "{{ alb_2_name }}"
register: alb_info
- ansible.builtin.assert:
that:
Expand All @@ -1423,6 +1425,8 @@

- name: Get ALB application info excluding attributes
amazon.aws.elb_application_lb_info:
names:
- "{{ alb_2_name }}"
include_attributes: false
register: alb_info
- ansible.builtin.assert:
Expand All @@ -1442,6 +1446,8 @@

- name: Get ALB application info without listeners, but with rules
amazon.aws.elb_application_lb_info:
names:
- "{{ alb_2_name }}"
include_listeners: false
register: alb_info
- ansible.builtin.assert:
Expand All @@ -1451,6 +1457,8 @@

- name: Get ALB application info without listeners or rules
amazon.aws.elb_application_lb_info:
names:
- "{{ alb_2_name }}"
include_listeners: false
include_listener_rules: false
register: alb_info
Expand All @@ -1460,6 +1468,8 @@

- name: Get ALB application info without listener rules
amazon.aws.elb_application_lb_info:
names:
- "{{ alb_2_name }}"
include_listener_rules: false
register: alb_info
- ansible.builtin.assert:
Expand All @@ -1469,6 +1479,8 @@

- name: Get ALB application minimal info
amazon.aws.elb_application_lb_info:
names:
- "{{ alb_2_name }}"
include_attributes: false
include_listeners: false
include_listener_rules: false
Expand Down

0 comments on commit 1b67b18

Please sign in to comment.