Skip to content

Commit

Permalink
Remove env var and add skipfunc for ee tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmet2mir committed Sep 16, 2020
1 parent fe5e37e commit d439732
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
echo "::set-env name=MAKE_TARGET::testacc"
echo "::set-env name=GO_FLAGS::-mod=vendor"
echo "::set-env name=GO111MODULE::on"
echo "::set-env name=GITLAB_EE::no"
echo "::set-env name=GITLAB_TOKEN::20char-testing-token"
echo "::set-env name=GITLAB_BASE_URL::http://127.0.0.1:8080/api/v4"
Expand Down Expand Up @@ -59,7 +58,6 @@ jobs:
echo "::set-env name=MAKE_TARGET::testacc"
echo "::set-env name=GO_FLAGS::-mod=vendor"
echo "::set-env name=GO111MODULE::on"
echo "::set-env name=GITLAB_EE::yes"
echo "::set-env name=GITLAB_TOKEN::20char-testing-token"
echo "::set-env name=GITLAB_BASE_URL::http://127.0.0.1:8080/api/v4"
echo "::set-env name=TF_LOG::DEBUG"
Expand Down
12 changes: 4 additions & 8 deletions gitlab/resource_gitlab_project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,6 @@ func TestAccGitlabProject_templateName(t *testing.T) {
}

func TestAccGitlabProject_templateNameCustom(t *testing.T) {
if v := os.Getenv("GITLAB_EE"); v == "no" {
return
}
var project gitlab.Project
rInt := acctest.RandInt()

Expand All @@ -241,7 +238,8 @@ func TestAccGitlabProject_templateNameCustom(t *testing.T) {
CheckDestroy: testAccCheckGitlabProjectDestroy,
Steps: []resource.TestStep{
{
Config: testAccGitlabProjectConfigTemplateNameCustom(rInt),
Config: testAccGitlabProjectConfigTemplateNameCustom(rInt),
SkipFunc: isRunningInCE,
Check: resource.ComposeTestCheckFunc(
testAccCheckGitlabProjectExists("gitlab_project.template-name-custom", &project),
testAccCheckGitlabProjectDefaultBranch(&project, &testAccGitlabProjectExpectedAttributes{
Expand All @@ -254,9 +252,6 @@ func TestAccGitlabProject_templateNameCustom(t *testing.T) {
}

func TestAccGitlabProject_templateProjectID(t *testing.T) {
if v := os.Getenv("GITLAB_EE"); v == "no" {
return
}
var project gitlab.Project
rInt := acctest.RandInt()

Expand All @@ -266,7 +261,8 @@ func TestAccGitlabProject_templateProjectID(t *testing.T) {
CheckDestroy: testAccCheckGitlabProjectDestroy,
Steps: []resource.TestStep{
{
Config: testAccGitlabProjectConfigTemplateProjectID(rInt),
Config: testAccGitlabProjectConfigTemplateProjectID(rInt),
SkipFunc: isRunningInCE,
Check: resource.ComposeTestCheckFunc(
testAccCheckGitlabProjectExists("gitlab_project.template-id", &project),
testAccCheckGitlabProjectDefaultBranch(&project, &testAccGitlabProjectExpectedAttributes{
Expand Down

0 comments on commit d439732

Please sign in to comment.