Skip to content

Commit

Permalink
Temporarily skip registry tests due to token
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasslash committed May 10, 2024
1 parent f3977d1 commit 355a477
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions internal/provider/resource_tfe_registry_module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,8 @@ func testAccCheckTFERegistryModuleDestroy(s *terraform.State) error {
}

func testAccPreCheckTFERegistryModule(t *testing.T) {
skipUnlessAfterDate(t, time.Date(2024, 5, 24, 0, 0, 0, 0, time.UTC))

if envGithubToken == "" {
t.Skip("Please set GITHUB_TOKEN to run this test")
}
Expand Down
12 changes: 9 additions & 3 deletions internal/provider/resource_tfe_test_variable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ func TestAccTFETestVariable_basic(t *testing.T) {
rInt := rand.New(rand.NewSource(time.Now().UnixNano())).Int()

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
PreCheck: func() {
testAccPreCheck(t)
testAccGithubPreCheck(t)
},
ProtoV5ProviderFactories: testAccMuxedProviders,
CheckDestroy: testAccCheckTFETestVariableDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -52,7 +55,10 @@ func TestAccTFETestVariable_update(t *testing.T) {
rInt := rand.New(rand.NewSource(time.Now().UnixNano())).Int()

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
PreCheck: func() {
testAccPreCheck(t)
testAccGithubPreCheck(t)
},
ProtoV5ProviderFactories: testAccMuxedProviders,
CheckDestroy: testAccCheckTFETestVariableDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -199,7 +205,7 @@ resource "tfe_organization" "foobar" {
name = "tst-terraform-%d"
email = "admin@company.com"
}
resource "tfe_oauth_client" "foobar" {
organization = tfe_organization.foobar.name
api_url = "https://api.github.com"
Expand Down

0 comments on commit 355a477

Please sign in to comment.