Skip to content

Commit

Permalink
validate duplicate steps
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Oberlechner <[email protected]>
  • Loading branch information
geoberle committed Dec 4, 2024
1 parent 3759a16 commit ab9fa4f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tooling/templatize/pkg/pipeline/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,32 @@ func TestPipelineValidate(t *testing.T) {
},
err: "invalid dependency on step step2: dependency step3 does not exist",
},
{
name: "duplicate step name",
pipeline: &Pipeline{
ResourceGroups: []*ResourceGroup{
{
Name: "rg1",
Subscription: "sub1",
Steps: []*Step{
{
Name: "step1",
},
},
},
{
Name: "rg2",
Subscription: "sub1",
Steps: []*Step{
{
Name: "step1",
},
},
},
},
},
err: "duplicate step name \"step1\"",
},
{
name: "valid step dependencies",
pipeline: &Pipeline{
Expand Down

0 comments on commit ab9fa4f

Please sign in to comment.