Skip to content

Commit

Permalink
Merge pull request #935 from Juniper/816-remove-unused-blueprinte-tes…
Browse files Browse the repository at this point in the history
…t-function-in-apstratest_utilsblueprintgo

Remove unused `BlueprintE()` test helper function
  • Loading branch information
chrismarget-j authored Oct 20, 2024
2 parents c2aa3d9 + 1f0aa48 commit 197ca33
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions apstra/test_utils/blueprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,29 +192,8 @@ func BlueprintD(t testing.TB, ctx context.Context) *apstra.TwoStageL3ClosClient
return bpClient
}

func BlueprintE(t testing.TB, ctx context.Context) *apstra.TwoStageL3ClosClient {
t.Helper()

client := GetTestClient(t, ctx)
template := TemplateD(t, ctx)
name := acctest.RandString(10)
id, err := client.CreateBlueprintFromTemplate(ctx, &apstra.CreateBlueprintFromTemplateRequest{
RefDesign: apstra.RefDesignTwoStageL3Clos,
Label: name,
TemplateId: template.Id,
FabricSettings: &apstra.FabricSettings{
SpineSuperspineLinks: utils.ToPtr(apstra.AddressingSchemeIp4),
SpineLeafLinks: utils.ToPtr(apstra.AddressingSchemeIp4),
},
})
require.NoError(t, err)
t.Cleanup(func() { require.NoError(t, client.DeleteBlueprint(ctx, id)) })

bpClient, err := client.NewTwoStageL3ClosClient(ctx, id)
require.NoError(t, err)

return bpClient
}
//func BlueprintE(t testing.TB, ctx context.Context) *apstra.TwoStageL3ClosClient {
//}

func BlueprintF(t testing.TB, ctx context.Context) *apstra.TwoStageL3ClosClient {
t.Helper()
Expand Down

0 comments on commit 197ca33

Please sign in to comment.