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 b00e6f6 commit eb65013Copy full SHA for eb65013
gitlab/provider_test.go
@@ -12,12 +12,14 @@ var testAccProviders map[string]terraform.ResourceProvider
12
var testAccProvider *schema.Provider
13
14
func init() {
15
- testAccProvider = Provider().(*schema.Provider)
16
- if err := testAccProvider.Configure(&terraform.ResourceConfig{}); err != nil {
17
- panic(err)
18
- }
19
- testAccProviders = map[string]terraform.ResourceProvider{
20
- "gitlab": testAccProvider,
+ if os.Getenv(resource.TestEnvVar) != "" {
+ testAccProvider = Provider().(*schema.Provider)
+ if err := testAccProvider.Configure(&terraform.ResourceConfig{}); err != nil {
+ panic(err)
+ }
+ testAccProviders = map[string]terraform.ResourceProvider{
21
+ "gitlab": testAccProvider,
22
23
}
24
25
0 commit comments