@@ -20,7 +20,7 @@ func TestAccFileSystem_Basic(t *testing.T) {
2020
2121 fileSystemName := "TestAccFileSystem_Basic"
2222 fileSystemNameUpdated := "TestAccFileSystem_BasicUpdate"
23- size := int64 (100_000_000_000 )
23+ sizeInGB := int64 (100_000_000_000 )
2424
2525 resource .ParallelTest (t , resource.TestCase {
2626 PreCheck : func () { acctest .PreCheck (t ) },
@@ -31,25 +31,25 @@ func TestAccFileSystem_Basic(t *testing.T) {
3131 Config : fmt .Sprintf (`
3232 resource "scaleway_file_filesystem" "fs" {
3333 name = "%s"
34- size = %d
34+ size_in_gb = %d
3535 }
36- ` , fileSystemName , size ),
36+ ` , fileSystemName , sizeInGB ),
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 " , strconv .FormatInt (size , 10 )),
40+ resource .TestCheckResourceAttr ("scaleway_file_filesystem.fs" , "size_in_gb " , strconv .FormatInt (sizeInGB , 10 )),
4141 ),
4242 },
4343 {
4444 Config : fmt .Sprintf (`
4545 resource "scaleway_file_filesystem" "fs" {
4646 name = "%s"
47- size = %d
47+ size_in_gb = %d
4848 }
49- ` , fileSystemNameUpdated , size ),
49+ ` , fileSystemNameUpdated , sizeInGB ),
5050 Check : resource .ComposeTestCheckFunc (
5151 testAccCheckFileSystemExists (tt , "scaleway_file_filesystem.fs" ),
52- resource .TestCheckResourceAttr ("scaleway_file_filesystem.fs" , "size " , strconv .FormatInt (size , 10 )),
52+ resource .TestCheckResourceAttr ("scaleway_file_filesystem.fs" , "size_in_gb " , strconv .FormatInt (sizeInGB , 10 )),
5353 ),
5454 },
5555 },
@@ -61,7 +61,7 @@ func TestAccFileSystem_SizeTooSmallFails(t *testing.T) {
6161 defer tt .Cleanup ()
6262
6363 fileSystemName := "TestAccFileSystem_SizeTooSmallFails"
64- size := int64 (10_000_000_000 )
64+ sizeInGB := int64 (10_000_000_000 )
6565
6666 resource .ParallelTest (t , resource.TestCase {
6767 PreCheck : func () { acctest .PreCheck (t ) },
@@ -72,9 +72,9 @@ func TestAccFileSystem_SizeTooSmallFails(t *testing.T) {
7272 Config : fmt .Sprintf (`
7373 resource "scaleway_file_filesystem" "fs" {
7474 name = "%s"
75- size = %d
75+ size_in_gb = %d
7676 }
77- ` , fileSystemName , size ),
77+ ` , fileSystemName , sizeInGB ),
7878 ExpectError : regexp .MustCompile ("size must be greater or equal to 100000000000" ),
7979 },
8080 },
@@ -86,7 +86,7 @@ func TestAccFileSystem_InvalidSizeGranularityFails(t *testing.T) {
8686 defer tt .Cleanup ()
8787
8888 fileSystemName := "TestAccFileSystem_InvalidSizeGranularityFails"
89- size := int64 (25_000_000_000 )
89+ sizeInGB := int64 (25_000_000_000 )
9090
9191 resource .ParallelTest (t , resource.TestCase {
9292 PreCheck : func () { acctest .PreCheck (t ) },
@@ -97,10 +97,10 @@ func TestAccFileSystem_InvalidSizeGranularityFails(t *testing.T) {
9797 Config : fmt .Sprintf (`
9898 resource "scaleway_file_filesystem" "fs" {
9999 name = "%s"
100- size = %d
100+ size_in_gb = %d
101101 }
102- ` , fileSystemName , size ),
103- ExpectError : regexp .MustCompile ("size must be greater or equal to 100000000000" ),
102+ ` , fileSystemName , sizeInGB ),
103+ ExpectError : regexp .MustCompile ("size_in_gb must be greater or equal to 100000000000" ),
104104 },
105105 },
106106 })
0 commit comments