Skip to content

Commit 8ab2e92

Browse files
committed
Run acceptance tests with acceptance build tag
1 parent 145117c commit 8ab2e92

File tree

81 files changed

+245
-13
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+245
-13
lines changed

.vscode/settings.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"go.testEnvVars": {
3-
"TF_ACC": "1",
4-
"GITLAB_TOKEN": "ACCTEST1234567890123",
5-
"GITLAB_BASE_URL": "http://127.0.0.1:8080"
6-
},
7-
"go.testFlags": ["-count=1", "-v", "-timeout=30m"]
2+
"go.testEnvVars": {
3+
"TF_ACC": "1",
4+
"GITLAB_TOKEN": "ACCTEST1234567890123",
5+
"GITLAB_BASE_URL": "http://127.0.0.1:8080"
6+
},
7+
"go.testFlags": ["-count=1", "-v", "-tags=acceptance", "-tags=acceptance"]
88
}

GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ testacc-down: ## Teardown a GitLab instance.
7373
docker-compose down --volumes
7474

7575
testacc: ## Run acceptance tests against a GitLab instance.
76-
TF_ACC=1 GITLAB_TOKEN=$(GITLAB_TOKEN) GITLAB_BASE_URL=$(GITLAB_BASE_URL) go test -v $(PROVIDER_SRC_DIR) $(TESTARGS) -timeout 40m
76+
TF_ACC=1 GITLAB_TOKEN=$(GITLAB_TOKEN) GITLAB_BASE_URL=$(GITLAB_BASE_URL) go test -v $(PROVIDER_SRC_DIR) $(TESTARGS) -timeout 40m -tags acceptance
7777

7878
certs: ## Generate certs for the GitLab container registry
7979
mkdir -p certs

internal/provider/data_source_gitlab_branch_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//go:build acceptance
2+
// +build acceptance
3+
14
package provider
25

36
import (

internal/provider/data_source_gitlab_group_membership_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//go:build acceptance
2+
// +build acceptance
3+
14
package provider
25

36
import (

internal/provider/data_source_gitlab_group_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//go:build acceptance
2+
// +build acceptance
3+
14
package provider
25

36
import (

internal/provider/data_source_gitlab_group_variable_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//go:build acceptance
2+
// +build acceptance
3+
14
package provider
25

36
import (

internal/provider/data_source_gitlab_group_variables_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//go:build acceptance
2+
// +build acceptance
3+
14
package provider
25

36
import (

internal/provider/data_source_gitlab_instance_deploy_keys_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//go:build acceptance
2+
// +build acceptance
3+
14
package provider
25

36
import (

internal/provider/data_source_gitlab_instance_variable_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//go:build acceptance
2+
// +build acceptance
3+
14
package provider
25

36
import (

internal/provider/data_source_gitlab_instance_variables_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//go:build acceptance
2+
// +build acceptance
3+
14
package provider
25

36
import (

0 commit comments

Comments
 (0)