From 1b67b18aef252f17f6e8c70e7d89430128f3f791 Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Mon, 4 Dec 2023 14:52:31 +0100 Subject: [PATCH] Search ALBs by name when testing include_, to ensure we get the ALB we're expecting (and it has the things we're testing for) --- .../targets/elb_application_lb/tasks/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/integration/targets/elb_application_lb/tasks/main.yml b/tests/integration/targets/elb_application_lb/tasks/main.yml index 37ef332001b..9919f9da733 100644 --- a/tests/integration/targets/elb_application_lb/tasks/main.yml +++ b/tests/integration/targets/elb_application_lb/tasks/main.yml @@ -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: @@ -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: @@ -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: @@ -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 @@ -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: @@ -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