Skip to content

Commit 355a477

Browse files
committed
Temporarily skip registry tests due to token
1 parent f3977d1 commit 355a477

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

internal/provider/resource_tfe_registry_module_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,8 @@ func testAccCheckTFERegistryModuleDestroy(s *terraform.State) error {
942942
}
943943

944944
func testAccPreCheckTFERegistryModule(t *testing.T) {
945+
skipUnlessAfterDate(t, time.Date(2024, 5, 24, 0, 0, 0, 0, time.UTC))
946+
945947
if envGithubToken == "" {
946948
t.Skip("Please set GITHUB_TOKEN to run this test")
947949
}

internal/provider/resource_tfe_test_variable_test.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ func TestAccTFETestVariable_basic(t *testing.T) {
1919
rInt := rand.New(rand.NewSource(time.Now().UnixNano())).Int()
2020

2121
resource.Test(t, resource.TestCase{
22-
PreCheck: func() { testAccPreCheck(t) },
22+
PreCheck: func() {
23+
testAccPreCheck(t)
24+
testAccGithubPreCheck(t)
25+
},
2326
ProtoV5ProviderFactories: testAccMuxedProviders,
2427
CheckDestroy: testAccCheckTFETestVariableDestroy,
2528
Steps: []resource.TestStep{
@@ -52,7 +55,10 @@ func TestAccTFETestVariable_update(t *testing.T) {
5255
rInt := rand.New(rand.NewSource(time.Now().UnixNano())).Int()
5356

5457
resource.Test(t, resource.TestCase{
55-
PreCheck: func() { testAccPreCheck(t) },
58+
PreCheck: func() {
59+
testAccPreCheck(t)
60+
testAccGithubPreCheck(t)
61+
},
5662
ProtoV5ProviderFactories: testAccMuxedProviders,
5763
CheckDestroy: testAccCheckTFETestVariableDestroy,
5864
Steps: []resource.TestStep{
@@ -199,7 +205,7 @@ resource "tfe_organization" "foobar" {
199205
name = "tst-terraform-%d"
200206
201207
}
202-
208+
203209
resource "tfe_oauth_client" "foobar" {
204210
organization = tfe_organization.foobar.name
205211
api_url = "https://api.github.com"

0 commit comments

Comments
 (0)