-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TF-9505] fix TestAccTFEWorkspace_updateRemoveVCSRepoWithTagsRegex (#…
…1076) * remove unused fn testAccTFEWorkspace_updateUpdateVCSRepoBranchFileTriggersDisabled * fix linter warning * alphabetize long list of arg references * remove vcs_repo block for now * replace repo, prev repo deleted * alphabetize vcs_repo args in docs * change GITHUB_WORKSPACE_IDENTIFIER * update branch - testing theory
- Loading branch information
1 parent
2f928da
commit 4d15f67
Showing
4 changed files
with
14 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1613,6 +1613,7 @@ func TestAccTFEWorkspace_updateVCSRepoChangeTagRegexToTriggerPattern(t *testing. | |
func TestAccTFEWorkspace_updateRemoveVCSRepoWithTagsRegex(t *testing.T) { | ||
workspace := &tfe.Workspace{} | ||
rInt := rand.New(rand.NewSource(time.Now().UnixNano())).Int() | ||
|
||
resource.Test(t, resource.TestCase{ | ||
PreCheck: func() { | ||
testAccPreCheck(t) | ||
|
@@ -3213,41 +3214,6 @@ resource "tfe_workspace" "foobar" { | |
) | ||
} | ||
|
||
func testAccTFEWorkspace_updateUpdateVCSRepoBranchFileTriggersDisabled(rInt int) string { | ||
return fmt.Sprintf(` | ||
resource "tfe_organization" "foobar" { | ||
name = "tst-terraform-%d" | ||
email = "[email protected]" | ||
} | ||
resource "tfe_oauth_client" "test" { | ||
organization = tfe_organization.foobar.id | ||
api_url = "https://api.github.com" | ||
http_url = "https://github.com" | ||
oauth_token = "%s" | ||
service_provider = "github" | ||
} | ||
resource "tfe_workspace" "foobar" { | ||
name = "workspace-test" | ||
description = "workspace-test-update-vcs-repo-branch" | ||
organization = tfe_organization.foobar.id | ||
auto_apply = true | ||
## file_triggers_enabled = false | ||
vcs_repo { | ||
identifier = "%s" | ||
oauth_token_id = tfe_oauth_client.test.oauth_token_id | ||
branch = "%s" | ||
} | ||
} | ||
`, | ||
rInt, | ||
envGithubToken, | ||
envGithubWorkspaceIdentifier, | ||
envGithubWorkspaceBranch, | ||
) | ||
} | ||
|
||
func testAccTFEWorkspace_updateUpdateVCSRepoBranch(rInt int) string { | ||
return fmt.Sprintf(` | ||
resource "tfe_organization" "foobar" { | ||
|
@@ -3458,7 +3424,7 @@ func testAccTFEWorkspace_updateRemoveVCSBlockFromTagsRegex(rInt int) string { | |
description = "workspace-test-update-vcs-repo-tags-regex" | ||
organization = tfe_organization.foobar.id | ||
auto_apply = true | ||
force_delete = true | ||
force_delete = true | ||
file_triggers_enabled = true | ||
trigger_patterns = ["foo/**/*"] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters