Skip to content

Commit

Permalink
fix: remove project prefix when creating pipeline stack name (#854)
Browse files Browse the repository at this point in the history
This was creating inconsistencies between the name of the stack in the
pipeline.yml file and the one being deployed
  • Loading branch information
SoManyHs authored Apr 20, 2020
1 parent aa0b7b1 commit 62e5515
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/pkg/deploy/cloudformation/stack/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func NewPipelineStackConfig(in *deploy.CreatePipelineInput) *pipelineStackConfig
}

func (p *pipelineStackConfig) StackName() string {
return p.ProjectName + "-" + p.Name
return p.Name
}

func (p *pipelineStackConfig) Template() (string, error) {
Expand Down
3 changes: 1 addition & 2 deletions internal/pkg/deploy/cloudformation/stack/pipeline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ func TestPipelineStackName(t *testing.T) {
mockCreatePipelineInput(),
)

require.Equal(t, projectName+"-"+pipelineName,
pipeline.StackName(), "unexpected StackName")
require.Equal(t, pipelineName, pipeline.StackName(), "unexpected StackName")
}

func TestPipelineStackConfig_Template(t *testing.T) {
Expand Down

0 comments on commit 62e5515

Please sign in to comment.