Skip to content

Commit 95f328c

Browse files
committed
elb_application_lb: test a rule based on http-header
This should initially fail and be fixed the day ansible-collections/amazon.aws#188 is merged. See: ansible-collections/amazon.aws#187 See: ansible-collections#117
1 parent e088eda commit 95f328c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

tests/integration/targets/elb_application_lb/tasks/test_multiple_actions.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,22 @@
190190
- CertificateArn: "{{ cert_arn }}"
191191
SslPolicy: ELBSecurityPolicy-2016-08
192192
Rules:
193+
- Conditions:
194+
- Field: http-header
195+
HttpHeaderConfig:
196+
HttpHeaderName: 'User-Agent'
197+
Values: ['*Trident/7:0*rv:*']
198+
- Field: http-header
199+
HttpHeaderConfig:
200+
HttpHeaderName: 'X-Something'
201+
Values: ['foobar']
202+
Priority: '1'
203+
Actions:
204+
- Type: fixed-response
205+
FixedResponseConfig:
206+
StatusCode: "200"
207+
ContentType: "text/html"
208+
MessageBody: "<b>Hello World!</b>"
193209
- Conditions:
194210
- Field: path-pattern
195211
Values:
@@ -245,6 +261,22 @@
245261
- CertificateArn: "{{ cert_arn }}"
246262
SslPolicy: ELBSecurityPolicy-2016-08
247263
Rules:
264+
- Conditions:
265+
- Field: http-header
266+
HttpHeaderConfig:
267+
HttpHeaderName: 'User-Agent'
268+
Values: ['*Trident/7:0*rv:*']
269+
- Field: http-header
270+
HttpHeaderConfig:
271+
HttpHeaderName: 'X-Something'
272+
Values: ['foobar']
273+
Priority: '1'
274+
Actions:
275+
- Type: fixed-response
276+
FixedResponseConfig:
277+
StatusCode: "200"
278+
ContentType: "text/html"
279+
MessageBody: "<b>Hello World!</b>"
248280
- Conditions:
249281
- Field: path-pattern
250282
Values:

0 commit comments

Comments
 (0)