@@ -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" , strconv .FormatInt (int64 ( size ) , 10 )),
40
+ resource .TestCheckResourceAttr ("scaleway_file_filesystem.fs" , "size" , strconv .FormatInt (size , 10 )),
41
41
),
42
42
},
43
43
{
@@ -49,7 +49,7 @@ func TestAccFileSystem_Basic(t *testing.T) {
49
49
` , fileSystemNameUpdated , size ),
50
50
Check : resource .ComposeTestCheckFunc (
51
51
testAccCheckFileSystemExists (tt , "scaleway_file_filesystem.fs" ),
52
- resource .TestCheckResourceAttr ("scaleway_file_filesystem.fs" , "size" , strconv .FormatInt (int64 ( size ) , 10 )),
52
+ resource .TestCheckResourceAttr ("scaleway_file_filesystem.fs" , "size" , strconv .FormatInt (size , 10 )),
53
53
),
54
54
},
55
55
},
@@ -60,7 +60,7 @@ func TestAccFileSystem_SizeTooSmallFails(t *testing.T) {
60
60
tt := acctest .NewTestTools (t )
61
61
defer tt .Cleanup ()
62
62
63
- fileSystemName := "TestAccFileSystem_Basic "
63
+ fileSystemName := "TestAccFileSystem_SizeTooSmallFails "
64
64
size := int64 (10_000_000_000 )
65
65
66
66
resource .ParallelTest (t , resource.TestCase {
@@ -75,7 +75,7 @@ func TestAccFileSystem_SizeTooSmallFails(t *testing.T) {
75
75
size = %d
76
76
}
77
77
` , fileSystemName , size ),
78
- ExpectError : regexp .MustCompile ("size does not respect constraint, size must be greater or equal to 100000000000" ),
78
+ ExpectError : regexp .MustCompile ("size must be greater or equal to 100000000000" ),
79
79
},
80
80
},
81
81
})
@@ -85,7 +85,7 @@ func TestAccFileSystem_InvalidSizeGranularityFails(t *testing.T) {
85
85
tt := acctest .NewTestTools (t )
86
86
defer tt .Cleanup ()
87
87
88
- fileSystemName := "TestAccFileSystem_Basic "
88
+ fileSystemName := "TestAccFileSystem_InvalidSizeGranularityFails "
89
89
size := int64 (25_000_000_000 )
90
90
91
91
resource .ParallelTest (t , resource.TestCase {
@@ -100,7 +100,7 @@ func TestAccFileSystem_InvalidSizeGranularityFails(t *testing.T) {
100
100
size = %d
101
101
}
102
102
` , fileSystemName , size ),
103
- ExpectError : regexp .MustCompile ("size does not respect constraint, size must be greater or equal to 100000000000" ),
103
+ ExpectError : regexp .MustCompile ("size must be greater or equal to 100000000000" ),
104
104
},
105
105
},
106
106
})
0 commit comments