Skip to content

Commit

Permalink
fix: fix broken unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bencehornak committed Dec 1, 2023
1 parent 6cd0b13 commit f9dcaa1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/pkg/deploy/cloudformation/stack/backend_svc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,10 @@ func TestBackendService_Parameters(t *testing.T) {
ParameterKey: aws.String(WorkloadEnvFileARNParamKey),
ParameterValue: aws.String(""),
},
{
ParameterKey: aws.String(WorkloadArtifactKeyARNParamKey),
ParameterValue: aws.String(""),
},
{
ParameterKey: aws.String(WorkloadTargetContainerParamKey),
ParameterValue: aws.String("frontend"),
Expand Down
5 changes: 5 additions & 0 deletions internal/pkg/deploy/cloudformation/stack/lb_web_svc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,10 @@ func TestLoadBalancedWebService_Parameters(t *testing.T) {
ParameterKey: aws.String(WorkloadEnvFileARNParamKey),
ParameterValue: aws.String(""),
},
{
ParameterKey: aws.String(WorkloadArtifactKeyARNParamKey),
ParameterValue: aws.String(""),
},
}
testCases := map[string]struct {
httpsEnabled bool
Expand Down Expand Up @@ -966,6 +970,7 @@ func TestLoadBalancedWebService_SerializedParameters(t *testing.T) {
"Parameters": {
"AddonsTemplateURL": "",
"AppName": "phonetool",
"ArtifactKeyARN": "",
"ContainerImage": "111111111111.dkr.ecr.us-west-2.amazonaws.com/phonetool/frontend:manual-bf3678c",
"ContainerPort": "80",
"DNSDelegated": "false",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,10 @@ func TestScheduledJob_Parameters(t *testing.T) {
ParameterKey: aws.String(WorkloadEnvFileARNParamKey),
ParameterValue: aws.String(""),
},
{
ParameterKey: aws.String(WorkloadArtifactKeyARNParamKey),
ParameterValue: aws.String(""),
},
{
ParameterKey: aws.String(ScheduledJobScheduleParamKey),
ParameterValue: aws.String("cron(0 0 * * ? *)"),
Expand Down Expand Up @@ -590,6 +594,7 @@ func TestScheduledJob_SerializedParameters(t *testing.T) {
"Parameters": {
"AddonsTemplateURL": "",
"AppName": "phonetool",
"ArtifactKeyARN": "",
"ContainerImage": "111111111111.dkr.ecr.us-west-2.amazonaws.com/phonetool/frontend:manual-bf3678c",
"EnvFileARN": "",
"EnvName": "test",
Expand Down
4 changes: 4 additions & 0 deletions internal/pkg/deploy/cloudformation/stack/worker_svc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,5 +325,9 @@ func TestWorkerService_Parameters(t *testing.T) {
ParameterKey: aws.String(WorkloadEnvFileARNParamKey),
ParameterValue: aws.String(""),
},
{
ParameterKey: aws.String(WorkloadArtifactKeyARNParamKey),
ParameterValue: aws.String(""),
},
}, params)
}

0 comments on commit f9dcaa1

Please sign in to comment.