Skip to content

Commit 6bf7783

Browse files
committed
Update test content to actually pass the GH API
Signed-off-by: Timo Sand <[email protected]>
1 parent be1b1e0 commit 6bf7783

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

github/resource_github_organization_ruleset_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ func TestGithubOrganizationRulesets(t *testing.T) {
1818
resource "github_repository" "test" {
1919
name = "%s"
2020
visibility = "private"
21+
auto_init = true
22+
}
23+
24+
resource "github_repository_file" "workflow_file" {
25+
repository = github_repository.test.name
26+
branch = "main"
27+
file = ".github/workflows/echo.yaml"
28+
content = "name: Echo Workflow\n\non: [pull_request]\n\njobs:\n echo:\n runs-on: linux\n steps:\n - run: echo \"Hello, world!\"\n"
29+
commit_message = "Managed by Terraform"
30+
commit_author = "Terraform User"
31+
commit_email = "[email protected]"
2132
}
2233
2334
resource "github_actions_repository_access_level" "test" {

0 commit comments

Comments
 (0)