File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 1
1
package gitlab
2
2
3
3
import (
4
- "errors"
5
4
"os"
6
- "strings"
7
5
"testing"
8
6
9
7
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
10
8
"github.com/hashicorp/terraform-plugin-sdk/terraform"
11
- "github.com/xanzy/go-gitlab"
12
9
)
13
10
14
11
var testAccProviders map [string ]terraform.ResourceProvider
@@ -21,26 +18,6 @@ func init() {
21
18
}
22
19
}
23
20
24
- func isRunningInEE () (bool , error ) {
25
- if conn , ok := testAccProvider .Meta ().(* gitlab.Client ); ok {
26
- version , _ , err := conn .Version .GetVersion ()
27
- if err != nil {
28
- return false , err
29
- }
30
- if strings .Contains (version .String (), "-ee" ) {
31
- return true , nil
32
- }
33
- } else {
34
- return false , errors .New ("Provider not initialized, unable to get GitLab connection" )
35
- }
36
- return false , nil
37
- }
38
-
39
- func isRunningInCE () (bool , error ) {
40
- isEE , err := isRunningInEE ()
41
- return ! isEE , err
42
- }
43
-
44
21
func TestProvider (t * testing.T ) {
45
22
if err := Provider ().(* schema.Provider ).InternalValidate (); err != nil {
46
23
t .Fatalf ("err: %s" , err )
You can’t perform that action at this time.
0 commit comments