@@ -20,7 +20,7 @@ func TestAccFileSystem_Basic(t *testing.T) {
2020
2121 fileSystemName := "TestAccFileSystem_Basic"
2222 fileSystemNameUpdated := "TestAccFileSystem_BasicUpdate"
23- sizeInGB := int64 ( 100_000_000_000 )
23+ sizeInGB := 100
2424
2525 resource .ParallelTest (t , resource.TestCase {
2626 PreCheck : func () { acctest .PreCheck (t ) },
@@ -37,7 +37,7 @@ func TestAccFileSystem_Basic(t *testing.T) {
3737 Check : resource .ComposeTestCheckFunc (
3838 testAccCheckFileSystemExists (tt , "scaleway_file_filesystem.fs" ),
3939 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 )),
4141 ),
4242 },
4343 {
@@ -49,7 +49,7 @@ func TestAccFileSystem_Basic(t *testing.T) {
4949 ` , fileSystemNameUpdated , sizeInGB ),
5050 Check : resource .ComposeTestCheckFunc (
5151 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 )),
5353 ),
5454 },
5555 },
@@ -61,7 +61,7 @@ func TestAccFileSystem_SizeTooSmallFails(t *testing.T) {
6161 defer tt .Cleanup ()
6262
6363 fileSystemName := "TestAccFileSystem_SizeTooSmallFails"
64- sizeInGB := int64 ( 10_000_000_000 )
64+ sizeInGB := 10
6565
6666 resource .ParallelTest (t , resource.TestCase {
6767 PreCheck : func () { acctest .PreCheck (t ) },
@@ -86,7 +86,7 @@ func TestAccFileSystem_InvalidSizeGranularityFails(t *testing.T) {
8686 defer tt .Cleanup ()
8787
8888 fileSystemName := "TestAccFileSystem_InvalidSizeGranularityFails"
89- sizeInGB := int64 ( 25_000_000_000 )
89+ sizeInGB := 250
9090
9191 resource .ParallelTest (t , resource.TestCase {
9292 PreCheck : func () { acctest .PreCheck (t ) },
@@ -100,7 +100,7 @@ func TestAccFileSystem_InvalidSizeGranularityFails(t *testing.T) {
100100 size_in_gb = %d
101101 }
102102 ` , 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" ),
104104 },
105105 },
106106 })
0 commit comments