Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test branch #156

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
//go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs

func main() {
var debugMode bool
var debugModeTest2 bool

flag.BoolVar(&debugMode, "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: debugMode,
Debug: debugModeTest2,
ProviderAddr: "registry.terraform.io/thousandeyes/thousandeyes",
ProviderFunc: thousandeyes.New(),
}
Expand Down
2 changes: 1 addition & 1 deletion thousandeyes/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}{})
Expand Down