From 1654d766434448e9f48d1f103e7b840251a62975 Mon Sep 17 00:00:00 2001 From: Dave Arnold Date: Wed, 21 Aug 2024 16:59:18 -0700 Subject: [PATCH 1/3] re-adding tests --- github_repo.tftest.hcl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 github_repo.tftest.hcl diff --git a/github_repo.tftest.hcl b/github_repo.tftest.hcl new file mode 100644 index 0000000..8c0471c --- /dev/null +++ b/github_repo.tftest.hcl @@ -0,0 +1,19 @@ +# valid_string_concat.tftest.hcl +variables { + force_name = true + github_is_private = true + repo_org = "HappyPathway" + name = "github-repo-test" + enforce_prs = false + archive_on_destroy = false +} + +run "repo_tests" { + + command = plan + + assert { + condition = github_repository.repo.name == "github-repo-test" + error_message = "Github Repo name did not match expected" + } +} From 409c2486eed9a8e8f4e6864d5f0ec1e006974729 Mon Sep 17 00:00:00 2001 From: David Arnold <10138997+djaboxx@users.noreply.github.com> Date: Wed, 21 Aug 2024 17:10:09 -0700 Subject: [PATCH 2/3] Update terraform.yml --- .github/workflows/terraform.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index bf78fd0..a3d67a0 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -12,6 +12,7 @@ jobs: terraform_api: app.terraform.io github_username: djaboxx github_email: git@roknsound.com + github_org: HappyPathway secrets: TFE_TOKEN: ${{ secrets.TFE_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 3c6e8bb6a86c5a34dd252183f16da4dab3afbddd Mon Sep 17 00:00:00 2001 From: David Arnold <10138997+djaboxx@users.noreply.github.com> Date: Wed, 21 Aug 2024 17:21:27 -0700 Subject: [PATCH 3/3] Update github_repo.tftest.hcl --- github_repo.tftest.hcl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/github_repo.tftest.hcl b/github_repo.tftest.hcl index 8c0471c..25ccacb 100644 --- a/github_repo.tftest.hcl +++ b/github_repo.tftest.hcl @@ -6,6 +6,8 @@ variables { name = "github-repo-test" enforce_prs = false archive_on_destroy = false + github_org_teams = [] + admin_teams = [] } run "repo_tests" {