Skip to content

Commit 9b04f3c

Browse files
committed
Fix unit test
1 parent d673d8a commit 9b04f3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/provider/provider_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"regexp"
66
"testing"
77

8+
cml "github.com/ciscodevnet/terraform-provider-cml2/internal/provider"
89
"github.com/hashicorp/terraform-plugin-framework/providerserver"
910
"github.com/hashicorp/terraform-plugin-go/tfprotov6"
1011
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
11-
cml "github.com/ciscodevnet/terraform-provider-cml2/internal/provider"
1212
)
1313

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

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

0 commit comments

Comments
 (0)