Skip to content

Commit

Permalink
fix: do not prepare compressed test image if TF_ACC is not set (#636)
Browse files Browse the repository at this point in the history
  • Loading branch information
kangasta authored Sep 11, 2024
1 parent 184c89e commit a0adadd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions upcloud/resource_upcloud_storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,15 @@ func TestAccUpCloudStorage_StorageImportDirect(t *testing.T) {
}

func TestAccUpCloudStorage_StorageImportDirectCompressed(t *testing.T) {
// Do not prepare the testdata, if the test will be skipped by resource.ParallelTest
if os.Getenv(resource.EnvTfAcc) == "" {
t.Skipf(
"Acceptance tests skipped unless env '%s' set",
resource.EnvTfAcc,
)
return
}

var storageDetails upcloud.StorageDetails

imagePath, sum, err := createTempImage()
Expand Down

0 comments on commit a0adadd

Please sign in to comment.