Skip to content

Commit 363686d

Browse files
author
Drew Mudgett
committed
Updating tests to include stickiness setting
Signed-off-by: Drew Mudgett <[email protected]>
1 parent b44847f commit 363686d

File tree

16 files changed

+112
-0
lines changed

16 files changed

+112
-0
lines changed

testdata/ing_shared_rg_notshared_alb/output/params/01-ing.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,9 @@
5050
{
5151
"parameterKey": "TargetGroupHealthCheckTimeoutParameter",
5252
"parameterValue": "0"
53+
},
54+
{
55+
"parameterKey": "Stickiness",
56+
"parameterValue": "false"
5357
}
5458
]

testdata/ing_shared_rg_notshared_alb/output/params/02-rg.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,9 @@
5050
{
5151
"parameterKey": "TargetGroupHealthCheckTimeoutParameter",
5252
"parameterValue": "0"
53+
},
54+
{
55+
"parameterKey": "Stickiness",
56+
"parameterValue": "false"
5357
}
5458
]

testdata/ing_shared_rg_notshared_alb/output/templates/01-ing.cf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
"Type": "List\u003cAWS::EC2::Subnet::Id\u003e",
3131
"Description": "The list of subnets IDs for the Load Balancer"
3232
},
33+
"Stickiness": {
34+
"Type": "String",
35+
"Default": "false",
36+
"Description": "Enable Target Group Stickiness"
37+
},
3338
"TargetGroupHealthCheckIntervalParameter": {
3439
"Type": "Number",
3540
"Default": "10",
@@ -71,6 +76,14 @@
7176
"Properties": {
7277
"DefaultActions": [
7378
{
79+
"ForwardConfig": {
80+
"TargetGroupStickinessConfig": {
81+
"DurationSeconds": 3600,
82+
"Enabled": {
83+
"Ref": "Stickiness"
84+
}
85+
}
86+
},
7487
"TargetGroupArn": {
7588
"Ref": "TG"
7689
},

testdata/ing_shared_rg_notshared_alb/output/templates/02-rg.cf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
"Type": "List\u003cAWS::EC2::Subnet::Id\u003e",
3131
"Description": "The list of subnets IDs for the Load Balancer"
3232
},
33+
"Stickiness": {
34+
"Type": "String",
35+
"Default": "false",
36+
"Description": "Enable Target Group Stickiness"
37+
},
3338
"TargetGroupHealthCheckIntervalParameter": {
3439
"Type": "Number",
3540
"Default": "10",
@@ -71,6 +76,14 @@
7176
"Properties": {
7277
"DefaultActions": [
7378
{
79+
"ForwardConfig": {
80+
"TargetGroupStickinessConfig": {
81+
"DurationSeconds": 3600,
82+
"Enabled": {
83+
"Ref": "Stickiness"
84+
}
85+
}
86+
},
7487
"TargetGroupArn": {
7588
"Ref": "TG"
7689
},

testdata/ingress_alb/output/params/ing.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,9 @@
5050
{
5151
"parameterKey": "TargetGroupHealthCheckTimeoutParameter",
5252
"parameterValue": "0"
53+
},
54+
{
55+
"parameterKey": "Stickiness",
56+
"parameterValue": "false"
5357
}
5458
]

testdata/ingress_alb/output/templates/ing.cf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
"Type": "List\u003cAWS::EC2::Subnet::Id\u003e",
3131
"Description": "The list of subnets IDs for the Load Balancer"
3232
},
33+
"Stickiness": {
34+
"Type": "String",
35+
"Default": "false",
36+
"Description": "Enable Target Group Stickiness"
37+
},
3338
"TargetGroupHealthCheckIntervalParameter": {
3439
"Type": "Number",
3540
"Default": "10",
@@ -71,6 +76,14 @@
7176
"Properties": {
7277
"DefaultActions": [
7378
{
79+
"ForwardConfig": {
80+
"TargetGroupStickinessConfig": {
81+
"DurationSeconds": 3600,
82+
"Enabled": {
83+
"Ref": "Stickiness"
84+
}
85+
}
86+
},
7487
"TargetGroupArn": {
7588
"Ref": "TG"
7689
},

testdata/ingress_nlb/output/params/ing.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,9 @@
5050
{
5151
"parameterKey": "TargetGroupHealthCheckTimeoutParameter",
5252
"parameterValue": "0"
53+
},
54+
{
55+
"parameterKey": "Stickiness",
56+
"parameterValue": "false"
5357
}
5458
]

testdata/ingress_nlb/output/templates/ing.cf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
"Type": "List\u003cAWS::EC2::Subnet::Id\u003e",
3131
"Description": "The list of subnets IDs for the Load Balancer"
3232
},
33+
"Stickiness": {
34+
"Type": "String",
35+
"Default": "false",
36+
"Description": "Enable Target Group Stickiness"
37+
},
3338
"TargetGroupHealthCheckIntervalParameter": {
3439
"Type": "Number",
3540
"Default": "10",

testdata/ingress_rg_shared_alb/output/params/shared.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,9 @@
5050
{
5151
"parameterKey": "TargetGroupHealthCheckTimeoutParameter",
5252
"parameterValue": "0"
53+
},
54+
{
55+
"parameterKey": "Stickiness",
56+
"parameterValue": "false"
5357
}
5458
]

testdata/ingress_rg_shared_alb/output/templates/shared.cf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
"Type": "List\u003cAWS::EC2::Subnet::Id\u003e",
3131
"Description": "The list of subnets IDs for the Load Balancer"
3232
},
33+
"Stickiness": {
34+
"Type": "String",
35+
"Default": "false",
36+
"Description": "Enable Target Group Stickiness"
37+
},
3338
"TargetGroupHealthCheckIntervalParameter": {
3439
"Type": "Number",
3540
"Default": "10",
@@ -71,6 +76,14 @@
7176
"Properties": {
7277
"DefaultActions": [
7378
{
79+
"ForwardConfig": {
80+
"TargetGroupStickinessConfig": {
81+
"DurationSeconds": 3600,
82+
"Enabled": {
83+
"Ref": "Stickiness"
84+
}
85+
}
86+
},
7487
"TargetGroupArn": {
7588
"Ref": "TG"
7689
},

0 commit comments

Comments
 (0)