Skip to content

Commit

Permalink
Updated example and removed test debug line
Browse files Browse the repository at this point in the history
  • Loading branch information
thenom committed May 23, 2022
1 parent 4486132 commit dd8e645
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Expand Up @@ -6,8 +6,9 @@ resource "gitlab_project_environment" "this" {

# Example with access level
resource "gitlab_project_protected_environment" "example_with_access_level" {
project = gitlab_project_environment.this.project
environment = gitlab_project_environment.this.name
project = gitlab_project_environment.this.project
required_approval_count = 1
environment = gitlab_project_environment.this.name

deploy_access_levels {
access_level = "developer"
Expand Down Expand Up @@ -36,8 +37,9 @@ resource "gitlab_project_protected_environment" "example_with_user" {

# Example with multiple access levels
resource "gitlab_project_protected_environment" "example_with_multiple" {
project = gitlab_project_environment.this.project
environment = gitlab_project_environment.this.name
project = gitlab_project_environment.this.project
required_approval_count = 2
environment = gitlab_project_environment.this.name

deploy_access_levels {
access_level = "developer"
Expand Down
Expand Up @@ -36,8 +36,6 @@ func TestAccGitlabProjectProtectedEnvironment_basic(t *testing.T) {
t.Fatalf("unable to share project %d with group %d", project.ID, group.ID)
}

t.Fatal("bang")

resource.Test(t, resource.TestCase{
ProviderFactories: providerFactories,
CheckDestroy: testAccCheckGitlabProjectProtectedEnvironmentDestroy(project.ID, environment.Name),
Expand Down

0 comments on commit dd8e645

Please sign in to comment.