Skip to content

Commit

Permalink
Merge pull request #875 from Juniper/874-additional-config-validation…
Browse files Browse the repository at this point in the history
…-needed

Enable IPv6 before beginning test
  • Loading branch information
chrismarget-j authored Sep 26, 2024
2 parents a75f1f2 + ea5a87f commit b153d87
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ import (
"github.com/Juniper/apstra-go-sdk/apstra"
tfapstra "github.com/Juniper/terraform-provider-apstra/apstra"
testutils "github.com/Juniper/terraform-provider-apstra/apstra/test_utils"
"github.com/Juniper/terraform-provider-apstra/apstra/utils"
"github.com/hashicorp/go-version"
"github.com/hashicorp/terraform-plugin-testing/helper/acctest"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
"github.com/stretchr/testify/require"
)

const resourceDataCenterConnectivityTemplateSviHCL = `resource %q %q {
Expand Down Expand Up @@ -109,6 +111,13 @@ func TestResourceDatacenteConnectivityTemplateSvi(t *testing.T) {
// Create a blueprint
bp := testutils.BlueprintG(t, ctx, cleanup)

// Enable IPv6
fs, err := bp.GetFabricSettings(ctx)
require.NoError(t, err)
fs.Ipv6Enabled = utils.ToPtr(true)
err = bp.SetFabricSettings(ctx, fs)
require.NoError(t, err)

type testStep struct {
config resourceDataCenterConnectivityTemplateSvi
}
Expand Down

0 comments on commit b153d87

Please sign in to comment.