Skip to content

Commit ba91ec0

Browse files
committed
Add skipUnlessHYOKEnabled check before performing tests in data_source_hyok_customer_key_version_test.go and data_source_hyok_encrypted_data_key_test.go
1 parent f192017 commit ba91ec0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

internal/provider/data_source_hyok_customer_key_version_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import (
88
)
99

1010
func TestAccTFEHYOKCustomerKeyVersionDataSource_basic(t *testing.T) {
11+
skipUnlessHYOKEnabled(t)
12+
1113
hyokCustomerKeyVersionID := os.Getenv("HYOK_CUSTOMER_KEY_VERSION_ID")
1214
if hyokCustomerKeyVersionID == "" {
1315
t.Skip("HYOK_CUSTOMER_KEY_VERSION_ID environment variable must be set to run this test")

internal/provider/data_source_hyok_encrypted_data_key_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import (
88
)
99

1010
func TestAccTFEHYOKEncryptedDataKeyDataSource_basic(t *testing.T) {
11+
skipUnlessHYOKEnabled(t)
12+
1113
hyokEncryptedDataKeyID := os.Getenv("HYOK_ENCRYPTED_DATA_KEY_ID")
1214
if hyokEncryptedDataKeyID == "" {
1315
t.Skip("HYOK_ENCRYPTED_DATA_KEY_ID environment variable must be set to run this test")

0 commit comments

Comments
 (0)