@@ -29,14 +29,14 @@ func TestAccGitlabGroupLdapLink_basic(t *testing.T) {
29
29
t .Skipf ("[WARNING] Skipping test until test data is configured in %s." , testDataFile )
30
30
} else {
31
31
resource .Test (t , resource.TestCase {
32
- //PreCheck: func() {testAccPreCheck(t)},
33
32
Providers : testAccProviders ,
34
33
CheckDestroy : testAccCheckGitlabGroupLdapLinkDestroy ,
35
34
Steps : []resource.TestStep {
36
35
37
36
// Create a group LDAP link as a developer (uses testAccGitlabGroupLdapLinkCreateConfig for Config)
38
37
{
39
- Config : testAccGitlabGroupLdapLinkCreateConfig (rInt , & testLdapLink ),
38
+ SkipFunc : isRunningInCE ,
39
+ Config : testAccGitlabGroupLdapLinkCreateConfig (rInt , & testLdapLink ),
40
40
Check : resource .ComposeTestCheckFunc (
41
41
testAccCheckGitlabGroupLdapLinkExists ("gitlab_group_ldap_link.foo" , & ldapLink ),
42
42
testAccCheckGitlabGroupLdapLinkAttributes (& ldapLink , & testAccGitlabGroupLdapLinkExpectedAttributes {
@@ -46,7 +46,8 @@ func TestAccGitlabGroupLdapLink_basic(t *testing.T) {
46
46
47
47
// Update the group LDAP link to change the access level (uses testAccGitlabGroupLdapLinkUpdateConfig for Config)
48
48
{
49
- Config : testAccGitlabGroupLdapLinkUpdateConfig (rInt , & testLdapLink ),
49
+ SkipFunc : isRunningInCE ,
50
+ Config : testAccGitlabGroupLdapLinkUpdateConfig (rInt , & testLdapLink ),
50
51
Check : resource .ComposeTestCheckFunc (
51
52
testAccCheckGitlabGroupLdapLinkExists ("gitlab_group_ldap_link.foo" , & ldapLink ),
52
53
testAccCheckGitlabGroupLdapLinkAttributes (& ldapLink , & testAccGitlabGroupLdapLinkExpectedAttributes {
@@ -56,7 +57,8 @@ func TestAccGitlabGroupLdapLink_basic(t *testing.T) {
56
57
57
58
// Force create the same group LDAP link in a different resource (uses testAccGitlabGroupLdapLinkForceCreateConfig for Config)
58
59
{
59
- Config : testAccGitlabGroupLdapLinkForceCreateConfig (rInt , & testLdapLink ),
60
+ SkipFunc : isRunningInCE ,
61
+ Config : testAccGitlabGroupLdapLinkForceCreateConfig (rInt , & testLdapLink ),
60
62
Check : resource .ComposeTestCheckFunc (
61
63
testAccCheckGitlabGroupLdapLinkExists ("gitlab_group_ldap_link.bar" , & ldapLink ),
62
64
testAccCheckGitlabGroupLdapLinkAttributes (& ldapLink , & testAccGitlabGroupLdapLinkExpectedAttributes {
0 commit comments