Skip to content

Commit

Permalink
fix tests: add a missing attribute
Browse files Browse the repository at this point in the history
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
  • Loading branch information
t-kikuc committed Jul 8, 2024
1 parent dcd7dc9 commit 7d65824
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
35 changes: 19 additions & 16 deletions pkg/config/application_ecs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ func TestECSApplicationConfig(t *testing.T) {
ContainerPort: 80,
},
},
LaunchType: "FARGATE",
AutoRollback: newBoolPointer(true),
RunStandaloneTask: newBoolPointer(true),
AccessType: "ELB",
LaunchType: "FARGATE",
AutoRollback: newBoolPointer(true),
RunStandaloneTask: newBoolPointer(true),
AccessType: "ELB",
IgnoreDesiredCountOnUpdate: newBoolPointer(true),
},
},
expectedError: nil,
Expand Down Expand Up @@ -97,12 +98,13 @@ func TestECSApplicationConfig(t *testing.T) {
},
},
Input: ECSDeploymentInput{
ServiceDefinitionFile: "/path/to/servicedef.yaml",
TaskDefinitionFile: "/path/to/taskdef.yaml",
LaunchType: "FARGATE",
AutoRollback: newBoolPointer(true),
RunStandaloneTask: newBoolPointer(true),
AccessType: "SERVICE_DISCOVERY",
ServiceDefinitionFile: "/path/to/servicedef.yaml",
TaskDefinitionFile: "/path/to/taskdef.yaml",
LaunchType: "FARGATE",
AutoRollback: newBoolPointer(true),
RunStandaloneTask: newBoolPointer(true),
AccessType: "SERVICE_DISCOVERY",
IgnoreDesiredCountOnUpdate: newBoolPointer(false),
},
},
expectedError: nil,
Expand Down Expand Up @@ -131,12 +133,13 @@ func TestECSApplicationConfig(t *testing.T) {
},
},
Input: ECSDeploymentInput{
ServiceDefinitionFile: "/path/to/servicedef.yaml",
TaskDefinitionFile: "/path/to/taskdef.yaml",
LaunchType: "FARGATE",
AutoRollback: newBoolPointer(true),
RunStandaloneTask: newBoolPointer(true),
AccessType: "XXX",
ServiceDefinitionFile: "/path/to/servicedef.yaml",
TaskDefinitionFile: "/path/to/taskdef.yaml",
LaunchType: "FARGATE",
AutoRollback: newBoolPointer(true),
RunStandaloneTask: newBoolPointer(true),
AccessType: "XXX",
IgnoreDesiredCountOnUpdate: newBoolPointer(false),
},
},
expectedError: fmt.Errorf("invalid accessType: XXX"),
Expand Down
1 change: 1 addition & 0 deletions pkg/config/testdata/application/ecs-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ spec:
targetGroupArn: arn:aws:elasticloadbalancing:xyz
containerName: web
containerPort: 80
ignoreDesiredCountOnUpdate: true

0 comments on commit 7d65824

Please sign in to comment.