diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index c85a1f7..b69c8ca 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -12,5 +12,6 @@ jobs: terraform_api: app.terraform.io github_username: djaboxx github_email: git@roknsound.com + github_org: HappyPathway secrets: TFE_TOKEN: ${{ secrets.TFE_TOKEN }} diff --git a/github_repo.tftest.hcl b/github_repo.tftest.hcl new file mode 100644 index 0000000..25ccacb --- /dev/null +++ b/github_repo.tftest.hcl @@ -0,0 +1,21 @@ +# 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 + github_org_teams = [] + admin_teams = [] +} + +run "repo_tests" { + + command = plan + + assert { + condition = github_repository.repo.name == "github-repo-test" + error_message = "Github Repo name did not match expected" + } +}