Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
rschmied committed Jan 22, 2025
1 parent d673d8a commit 9b04f3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/provider/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"regexp"
"testing"

cml "github.com/ciscodevnet/terraform-provider-cml2/internal/provider"
"github.com/hashicorp/terraform-plugin-framework/providerserver"
"github.com/hashicorp/terraform-plugin-go/tfprotov6"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
cml "github.com/ciscodevnet/terraform-provider-cml2/internal/provider"
)

// testAccProtoV6ProviderFactories are used to instantiate a provider during
Expand All @@ -26,7 +26,7 @@ func testAccPreCheck(t *testing.T) {
}

func TestAccHTTPScheck(t *testing.T) {
re := regexp.MustCompile(`valid and uses HTTPS`)
re := regexp.MustCompile(`A valid CML server URL using HTTPS must be provided.`)
for _, url := range []string{"()!@*(#$&", "https://"} {
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand Down

0 comments on commit 9b04f3c

Please sign in to comment.