We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9c477e commit eeb1d5fCopy full SHA for eeb1d5f
internal/testutil/acc/factory.go
@@ -51,6 +51,12 @@ func ConnV2UsingGov() *admin.APIClient {
51
}
52
53
func init() {
54
+ if InUnitTest() { // Dummy credentials for unit tests
55
+ os.Setenv("MONGODB_ATLAS_PUBLIC_KEY", "dummy")
56
+ os.Setenv("MONGODB_ATLAS_PRIVATE_KEY", "dummy")
57
+ os.Unsetenv("MONGODB_ATLAS_CLIENT_ID")
58
+ os.Unsetenv("MONGODB_ATLAS_CLIENT_SECRET")
59
+ }
60
TestAccProviderV6Factories = map[string]func() (tfprotov6.ProviderServer, error){
61
ProviderNameMongoDBAtlas: func() (tfprotov6.ProviderServer, error) {
62
return provider.MuxProviderFactory()(), nil
0 commit comments