Skip to content

Commit b70033c

Browse files
committed
fix(object): add testfixture to run tests
1 parent fe11e3d commit b70033c

File tree

3 files changed

+21701
-3
lines changed

3 files changed

+21701
-3
lines changed

internal/services/object/object_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ func TestAccObject_Basic(t *testing.T) {
105105
}
106106

107107
func TestAccObject_Hash(t *testing.T) {
108-
t.Skip("Cannot be tested with an empty file")
109108
tt := acctest.NewTestTools(t)
110109
defer tt.Cleanup()
111110
bucketName := sdkacctest.RandomWithPrefix("test-acc-scaleway-object-hash")
@@ -130,7 +129,7 @@ func TestAccObject_Hash(t *testing.T) {
130129
resource scaleway_object "file" {
131130
bucket = scaleway_object_bucket.base-01.id
132131
key = "myfile"
133-
content = "hello world"
132+
file = "testfixture/empty.qcow2"
134133
hash = "1"
135134
}
136135
`, bucketName, objectTestsMainRegion),
@@ -152,7 +151,7 @@ func TestAccObject_Hash(t *testing.T) {
152151
resource scaleway_object "file" {
153152
bucket = scaleway_object_bucket.base-01.id
154153
key = "myfile"
155-
content = "hello world"
154+
file = "testfixture/empty.qcow2"
156155
hash = "2"
157156
}
158157
`, bucketName, objectTestsMainRegion),

0 commit comments

Comments
 (0)