From 6f0c800a9201b014221d87da4df7e3e5568f8782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Mal=C3=A9s?= <85952626+joaomper-TE@users.noreply.github.com> Date: Wed, 13 Dec 2023 14:51:32 +0000 Subject: [PATCH 1/3] test --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 1abb803..a0385fe 100644 --- a/main.go +++ b/main.go @@ -11,12 +11,12 @@ import ( //go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs func main() { - var debugMode bool + var debugModeTest bool - flag.BoolVar(&debugMode, "debug", false, "set to true to run the provider with support for debuggers like delve") + flag.BoolVar(&debugModeTest, "debug", false, "set to true to run the provider with support for debuggers like delve") flag.Parse() opts := &plugin.ServeOpts{ - Debug: debugMode, + Debug: debugModeTest, ProviderAddr: "registry.terraform.io/thousandeyes/thousandeyes", ProviderFunc: thousandeyes.New(), } From 21169eb7f0e3c67b7e16bb8272f6cef09aa9a841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Mal=C3=A9s?= <85952626+joaomper-TE@users.noreply.github.com> Date: Wed, 13 Dec 2023 14:56:17 +0000 Subject: [PATCH 2/3] test2 --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index a0385fe..ff59701 100644 --- a/main.go +++ b/main.go @@ -11,12 +11,12 @@ import ( //go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs func main() { - var debugModeTest bool + var debugModeTest2 bool - flag.BoolVar(&debugModeTest, "debug", false, "set to true to run the provider with support for debuggers like delve") + flag.BoolVar(&debugModeTest2, "debug", false, "set to true to run the provider with support for debuggers like delve") flag.Parse() opts := &plugin.ServeOpts{ - Debug: debugModeTest, + Debug: debugModeTest2, ProviderAddr: "registry.terraform.io/thousandeyes/thousandeyes", ProviderFunc: thousandeyes.New(), } From 44286a404da8a751c507de419d79459b53a7f94a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Mal=C3=A9s?= <85952626+joaomper-TE@users.noreply.github.com> Date: Wed, 13 Dec 2023 15:15:34 +0000 Subject: [PATCH 3/3] test2 --- thousandeyes/provider_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thousandeyes/provider_test.go b/thousandeyes/provider_test.go index 48e0737..5b5b912 100644 --- a/thousandeyes/provider_test.go +++ b/thousandeyes/provider_test.go @@ -31,7 +31,7 @@ func init() { func testAccPreCheck(t *testing.T) { providerFunc, _ := providerFactories["thousandeyes"] provider, err := providerFunc() - require.Nil(t, err, "Error creating provider: %v", err) + require.NotNil(t, err, "Error creating provider: %v", err) ctx := context.TODO() resourceData := schema.TestResourceDataRaw(t, provider.Schema, map[string]interface{}{})