Skip to content

Commit

Permalink
Updating tests to include stickiness setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew Mudgett committed Aug 19, 2024
1 parent a71edf6 commit 918e812
Show file tree
Hide file tree
Showing 16 changed files with 112 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,9 @@
{
"parameterKey": "TargetGroupHealthCheckTimeoutParameter",
"parameterValue": "0"
},
{
"parameterKey": "Stickiness",
"parameterValue": "false"
}
]
4 changes: 4 additions & 0 deletions testdata/ing_shared_rg_notshared_alb/output/params/02-rg.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,9 @@
{
"parameterKey": "TargetGroupHealthCheckTimeoutParameter",
"parameterValue": "0"
},
{
"parameterKey": "Stickiness",
"parameterValue": "false"
}
]
13 changes: 13 additions & 0 deletions testdata/ing_shared_rg_notshared_alb/output/templates/01-ing.cf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
"Type": "List\u003cAWS::EC2::Subnet::Id\u003e",
"Description": "The list of subnets IDs for the Load Balancer"
},
"Stickiness": {
"Type": "String",
"Default": "false",
"Description": "Enable Target Group Stickiness"
},
"TargetGroupHealthCheckIntervalParameter": {
"Type": "Number",
"Default": "10",
Expand Down Expand Up @@ -71,6 +76,14 @@
"Properties": {
"DefaultActions": [
{
"ForwardConfig": {
"TargetGroupStickinessConfig": {
"DurationSeconds": 3600,
"Enabled": {
"Ref": "Stickiness"
}
}
},
"TargetGroupArn": {
"Ref": "TG"
},
Expand Down
13 changes: 13 additions & 0 deletions testdata/ing_shared_rg_notshared_alb/output/templates/02-rg.cf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
"Type": "List\u003cAWS::EC2::Subnet::Id\u003e",
"Description": "The list of subnets IDs for the Load Balancer"
},
"Stickiness": {
"Type": "String",
"Default": "false",
"Description": "Enable Target Group Stickiness"
},
"TargetGroupHealthCheckIntervalParameter": {
"Type": "Number",
"Default": "10",
Expand Down Expand Up @@ -71,6 +76,14 @@
"Properties": {
"DefaultActions": [
{
"ForwardConfig": {
"TargetGroupStickinessConfig": {
"DurationSeconds": 3600,
"Enabled": {
"Ref": "Stickiness"
}
}
},
"TargetGroupArn": {
"Ref": "TG"
},
Expand Down
4 changes: 4 additions & 0 deletions testdata/ingress_alb/output/params/ing.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,9 @@
{
"parameterKey": "TargetGroupHealthCheckTimeoutParameter",
"parameterValue": "0"
},
{
"parameterKey": "Stickiness",
"parameterValue": "false"
}
]
13 changes: 13 additions & 0 deletions testdata/ingress_alb/output/templates/ing.cf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
"Type": "List\u003cAWS::EC2::Subnet::Id\u003e",
"Description": "The list of subnets IDs for the Load Balancer"
},
"Stickiness": {
"Type": "String",
"Default": "false",
"Description": "Enable Target Group Stickiness"
},
"TargetGroupHealthCheckIntervalParameter": {
"Type": "Number",
"Default": "10",
Expand Down Expand Up @@ -71,6 +76,14 @@
"Properties": {
"DefaultActions": [
{
"ForwardConfig": {
"TargetGroupStickinessConfig": {
"DurationSeconds": 3600,
"Enabled": {
"Ref": "Stickiness"
}
}
},
"TargetGroupArn": {
"Ref": "TG"
},
Expand Down
4 changes: 4 additions & 0 deletions testdata/ingress_nlb/output/params/ing.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,9 @@
{
"parameterKey": "TargetGroupHealthCheckTimeoutParameter",
"parameterValue": "0"
},
{
"parameterKey": "Stickiness",
"parameterValue": "false"
}
]
5 changes: 5 additions & 0 deletions testdata/ingress_nlb/output/templates/ing.cf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
"Type": "List\u003cAWS::EC2::Subnet::Id\u003e",
"Description": "The list of subnets IDs for the Load Balancer"
},
"Stickiness": {
"Type": "String",
"Default": "false",
"Description": "Enable Target Group Stickiness"
},
"TargetGroupHealthCheckIntervalParameter": {
"Type": "Number",
"Default": "10",
Expand Down
4 changes: 4 additions & 0 deletions testdata/ingress_rg_shared_alb/output/params/shared.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,9 @@
{
"parameterKey": "TargetGroupHealthCheckTimeoutParameter",
"parameterValue": "0"
},
{
"parameterKey": "Stickiness",
"parameterValue": "false"
}
]
13 changes: 13 additions & 0 deletions testdata/ingress_rg_shared_alb/output/templates/shared.cf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
"Type": "List\u003cAWS::EC2::Subnet::Id\u003e",
"Description": "The list of subnets IDs for the Load Balancer"
},
"Stickiness": {
"Type": "String",
"Default": "false",
"Description": "Enable Target Group Stickiness"
},
"TargetGroupHealthCheckIntervalParameter": {
"Type": "Number",
"Default": "10",
Expand Down Expand Up @@ -71,6 +76,14 @@
"Properties": {
"DefaultActions": [
{
"ForwardConfig": {
"TargetGroupStickinessConfig": {
"DurationSeconds": 3600,
"Enabled": {
"Ref": "Stickiness"
}
}
},
"TargetGroupArn": {
"Ref": "TG"
},
Expand Down
4 changes: 4 additions & 0 deletions testdata/ingress_rg_shared_nlb/output/params/shared.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,9 @@
{
"parameterKey": "TargetGroupHealthCheckTimeoutParameter",
"parameterValue": "0"
},
{
"parameterKey": "Stickiness",
"parameterValue": "false"
}
]
5 changes: 5 additions & 0 deletions testdata/ingress_rg_shared_nlb/output/templates/shared.cf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
"Type": "List\u003cAWS::EC2::Subnet::Id\u003e",
"Description": "The list of subnets IDs for the Load Balancer"
},
"Stickiness": {
"Type": "String",
"Default": "false",
"Description": "Enable Target Group Stickiness"
},
"TargetGroupHealthCheckIntervalParameter": {
"Type": "Number",
"Default": "10",
Expand Down
4 changes: 4 additions & 0 deletions testdata/rg_alb/output/params/rg.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,9 @@
{
"parameterKey": "TargetGroupHealthCheckTimeoutParameter",
"parameterValue": "0"
},
{
"parameterKey": "Stickiness",
"parameterValue": "false"
}
]
13 changes: 13 additions & 0 deletions testdata/rg_alb/output/templates/rg.cf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
"Type": "List\u003cAWS::EC2::Subnet::Id\u003e",
"Description": "The list of subnets IDs for the Load Balancer"
},
"Stickiness": {
"Type": "String",
"Default": "false",
"Description": "Enable Target Group Stickiness"
},
"TargetGroupHealthCheckIntervalParameter": {
"Type": "Number",
"Default": "10",
Expand Down Expand Up @@ -71,6 +76,14 @@
"Properties": {
"DefaultActions": [
{
"ForwardConfig": {
"TargetGroupStickinessConfig": {
"DurationSeconds": 3600,
"Enabled": {
"Ref": "Stickiness"
}
}
},
"TargetGroupArn": {
"Ref": "TG"
},
Expand Down
4 changes: 4 additions & 0 deletions testdata/rg_nlb/output/params/rg.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,9 @@
{
"parameterKey": "TargetGroupHealthCheckTimeoutParameter",
"parameterValue": "0"
},
{
"parameterKey": "Stickiness",
"parameterValue": "false"
}
]
5 changes: 5 additions & 0 deletions testdata/rg_nlb/output/templates/rg.cf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
"Type": "List\u003cAWS::EC2::Subnet::Id\u003e",
"Description": "The list of subnets IDs for the Load Balancer"
},
"Stickiness": {
"Type": "String",
"Default": "false",
"Description": "Enable Target Group Stickiness"
},
"TargetGroupHealthCheckIntervalParameter": {
"Type": "Number",
"Default": "10",
Expand Down

0 comments on commit 918e812

Please sign in to comment.