Skip to content

Commit 1ee0d0a

Browse files
committed
image and volume _test.go
1 parent 42bab1d commit 1ee0d0a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

internal/services/instance/image_test.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ import (
1515
)
1616

1717
func TestAccImage_BlockVolume(t *testing.T) {
18+
t.Skip("Resources \"scaleway_instance_volume\" and \"scaleway_instance_snapshot\" are depracated")
19+
// TestAccImage_ExternalBlockVolume should suffice to test the same logic with scaleway_block_volumes
20+
1821
tt := acctest.NewTestTools(t)
1922
defer tt.Cleanup()
2023
resource.ParallelTest(t, resource.TestCase{
@@ -213,7 +216,7 @@ func TestAccImage_Server(t *testing.T) {
213216
ProviderFactories: tt.ProviderFactories,
214217
CheckDestroy: resource.ComposeTestCheckFunc(
215218
isImageDestroyed(tt),
216-
isSnapshotDestroyed(tt),
219+
blocktestfuncs.IsSnapshotDestroyed(tt),
217220
instancechecks.IsServerDestroyed(tt),
218221
),
219222
Steps: []resource.TestStep{
@@ -278,6 +281,9 @@ func TestAccImage_Server(t *testing.T) {
278281
}
279282

280283
func TestAccImage_ServerWithBlockVolume(t *testing.T) {
284+
t.Skip("Resources \"scaleway_instance_volume\" and \"scaleway_instance_snapshot\" are depracated")
285+
// TestAccImage_ServerWithSBSVolume should suffice to test the same logic with block volumes
286+
281287
tt := acctest.NewTestTools(t)
282288
defer tt.Cleanup()
283289
resource.ParallelTest(t, resource.TestCase{

internal/services/instance/volume_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ func TestAccVolume_DifferentNameGenerated(t *testing.T) {
7979
}
8080

8181
func TestAccVolume_ResizeBlock(t *testing.T) {
82+
t.Skip("Resource \"scaleway_instance_volume\" is depracated for block volumes")
83+
8284
tt := acctest.NewTestTools(t)
8385
defer tt.Cleanup()
8486
resource.ParallelTest(t, resource.TestCase{
@@ -144,6 +146,8 @@ func TestAccVolume_ResizeNotBlock(t *testing.T) {
144146
}
145147

146148
func TestAccVolume_CannotResizeBlockDown(t *testing.T) {
149+
t.Skip("Resource \"scaleway_instance_volume\" is depracated for block volumes")
150+
147151
tt := acctest.NewTestTools(t)
148152
defer tt.Cleanup()
149153
resource.ParallelTest(t, resource.TestCase{

0 commit comments

Comments
 (0)