@@ -20,7 +20,7 @@ func TestAccFileSystem_Basic(t *testing.T) {
20
20
21
21
fileSystemName := "TestAccFileSystem_Basic"
22
22
fileSystemNameUpdated := "TestAccFileSystem_BasicUpdate"
23
- sizeInGB := int64 ( 100_000_000_000 )
23
+ sizeInGB := 100
24
24
25
25
resource .ParallelTest (t , resource.TestCase {
26
26
PreCheck : func () { acctest .PreCheck (t ) },
@@ -37,7 +37,7 @@ func TestAccFileSystem_Basic(t *testing.T) {
37
37
Check : resource .ComposeTestCheckFunc (
38
38
testAccCheckFileSystemExists (tt , "scaleway_file_filesystem.fs" ),
39
39
resource .TestCheckResourceAttr ("scaleway_file_filesystem.fs" , "name" , fileSystemName ),
40
- resource .TestCheckResourceAttr ("scaleway_file_filesystem.fs" , "size_in_gb" , strconv .FormatInt (sizeInGB , 10 )),
40
+ resource .TestCheckResourceAttr ("scaleway_file_filesystem.fs" , "size_in_gb" , strconv .Itoa (sizeInGB )),
41
41
),
42
42
},
43
43
{
@@ -49,7 +49,7 @@ func TestAccFileSystem_Basic(t *testing.T) {
49
49
` , fileSystemNameUpdated , sizeInGB ),
50
50
Check : resource .ComposeTestCheckFunc (
51
51
testAccCheckFileSystemExists (tt , "scaleway_file_filesystem.fs" ),
52
- resource .TestCheckResourceAttr ("scaleway_file_filesystem.fs" , "size_in_gb" , strconv .FormatInt (sizeInGB , 10 )),
52
+ resource .TestCheckResourceAttr ("scaleway_file_filesystem.fs" , "size_in_gb" , strconv .Itoa (sizeInGB )),
53
53
),
54
54
},
55
55
},
@@ -61,7 +61,7 @@ func TestAccFileSystem_SizeTooSmallFails(t *testing.T) {
61
61
defer tt .Cleanup ()
62
62
63
63
fileSystemName := "TestAccFileSystem_SizeTooSmallFails"
64
- sizeInGB := int64 ( 10_000_000_000 )
64
+ sizeInGB := 10
65
65
66
66
resource .ParallelTest (t , resource.TestCase {
67
67
PreCheck : func () { acctest .PreCheck (t ) },
@@ -86,7 +86,7 @@ func TestAccFileSystem_InvalidSizeGranularityFails(t *testing.T) {
86
86
defer tt .Cleanup ()
87
87
88
88
fileSystemName := "TestAccFileSystem_InvalidSizeGranularityFails"
89
- sizeInGB := int64 ( 25_000_000_000 )
89
+ sizeInGB := 250
90
90
91
91
resource .ParallelTest (t , resource.TestCase {
92
92
PreCheck : func () { acctest .PreCheck (t ) },
@@ -100,7 +100,7 @@ func TestAccFileSystem_InvalidSizeGranularityFails(t *testing.T) {
100
100
size_in_gb = %d
101
101
}
102
102
` , fileSystemName , sizeInGB ),
103
- ExpectError : regexp .MustCompile ("size_in_gb must be greater or equal to 100000000000" ),
103
+ ExpectError : regexp .MustCompile ("size does not respect constraint, size must be a multiple of 100000000000" ),
104
104
},
105
105
},
106
106
})
0 commit comments