-
Notifications
You must be signed in to change notification settings - Fork 744
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: Correct name of docs file * tests: failed on main branch When running the tests prior to making changes 2 issues were seen 1) With a setting to enable vulnerability alerts the tests failed, adding them to be on in these tests doesn't impact the results and allows others in the same position to run the tests. 2) The overwrte tests did not set attributes that were being asserted, adding the attribures allow the test to pass. Not sure how these previously passed. * fix: Files should not be removed on rate limiting --------- Co-authored-by: Keegan Campbell <[email protected]>
- Loading branch information
1 parent
7e83094
commit 0f84a2a
Showing
2 changed files
with
24 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,9 @@ func TestAccGithubRepositoryFile(t *testing.T) { | |
config := fmt.Sprintf(` | ||
resource "github_repository" "test" { | ||
name = "tf-acc-test-%s" | ||
auto_init = true | ||
name = "tf-acc-test-%s" | ||
auto_init = true | ||
vulnerability_alerts = true | ||
} | ||
resource "github_repository_file" "test" { | ||
|
@@ -92,8 +93,9 @@ func TestAccGithubRepositoryFile(t *testing.T) { | |
|
||
config := fmt.Sprintf(` | ||
resource "github_repository" "test" { | ||
name = "tf-acc-test-%s" | ||
auto_init = true | ||
name = "tf-acc-test-%s" | ||
auto_init = true | ||
vulnerability_alerts = true | ||
} | ||
resource "github_repository_file" "test" { | ||
|
@@ -102,6 +104,9 @@ func TestAccGithubRepositoryFile(t *testing.T) { | |
file = "README.md" | ||
content = "overwritten" | ||
overwrite_on_create = false | ||
commit_message = "Managed by Terraform" | ||
commit_author = "Terraform User" | ||
commit_email = "[email protected]" | ||
} | ||
`, randomID) | ||
|
@@ -167,8 +172,9 @@ func TestAccGithubRepositoryFile(t *testing.T) { | |
config := fmt.Sprintf(` | ||
resource "github_repository" "test" { | ||
name = "tf-acc-test-%s" | ||
auto_init = true | ||
name = "tf-acc-test-%s" | ||
auto_init = true | ||
vulnerability_alerts = true | ||
} | ||
resource "github_branch" "test" { | ||
|
@@ -251,8 +257,9 @@ func TestAccGithubRepositoryFile(t *testing.T) { | |
|
||
config := fmt.Sprintf(` | ||
resource "github_repository" "test" { | ||
name = "tf-acc-test-%s" | ||
auto_init = true | ||
name = "tf-acc-test-%s" | ||
auto_init = true | ||
vulnerability_alerts = true | ||
} | ||
resource "github_repository_file" "test" { | ||
|