Skip to content

Commit

Permalink
fetch client in test for env side effect
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismarget-j committed Oct 3, 2024
1 parent 2ec928d commit 57dd282
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion apstra/resource_telemetry_service_registry_entry_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
package tfapstra
package tfapstra_test

import (
"context"
"fmt"
"testing"

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-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-testing/helper/acctest"
Expand Down Expand Up @@ -213,6 +216,11 @@ resource "apstra_telemetry_service_registry_entry" "test" {
)

func TestAccResourceTelemetryServiceRegistryEntry(t *testing.T) {
ctx := context.Background()
client := testutils.GetTestClient(t, ctx)
apiVersion := version.Must(version.NewVersion(client.ApiVersion()))
_ = apiVersion

var (
testAccResourceServiceName = acctest.RandStringFromCharSet(10, acctest.CharSetAlphaNum)
testAccResourceServiceRegistryCfg1 = fmt.Sprintf(resourceTelemetryServiceRegistryEntryHCL, testAccResourceServiceName, as1, ss1)
Expand Down

0 comments on commit 57dd282

Please sign in to comment.