@@ -28,15 +28,15 @@ func TestAccFunction_Basic(t *testing.T) {
28
28
resource scaleway_function main {
29
29
name = "foobar"
30
30
namespace_id = scaleway_function_namespace.main.id
31
- runtime = "node14 "
31
+ runtime = "node22 "
32
32
privacy = "private"
33
33
handler = "handler.handle"
34
34
}
35
35
` ,
36
36
Check : resource .ComposeTestCheckFunc (
37
37
testAccCheckFunctionExists (tt , "scaleway_function.main" ),
38
38
resource .TestCheckResourceAttr ("scaleway_function.main" , "name" , "foobar" ),
39
- resource .TestCheckResourceAttr ("scaleway_function.main" , "runtime" , "node14 " ),
39
+ resource .TestCheckResourceAttr ("scaleway_function.main" , "runtime" , "node22 " ),
40
40
resource .TestCheckResourceAttr ("scaleway_function.main" , "privacy" , "private" ),
41
41
resource .TestCheckResourceAttr ("scaleway_function.main" , "handler" , "handler.handle" ),
42
42
resource .TestCheckResourceAttrSet ("scaleway_function.main" , "namespace_id" ),
@@ -63,7 +63,7 @@ func TestAccFunction_Timeout(t *testing.T) {
63
63
resource scaleway_function main {
64
64
name = "foobar"
65
65
namespace_id = scaleway_function_namespace.main.id
66
- runtime = "node14 "
66
+ runtime = "node22 "
67
67
privacy = "private"
68
68
handler = "handler.handle"
69
69
timeout = 10
@@ -72,7 +72,7 @@ func TestAccFunction_Timeout(t *testing.T) {
72
72
Check : resource .ComposeTestCheckFunc (
73
73
testAccCheckFunctionExists (tt , "scaleway_function.main" ),
74
74
resource .TestCheckResourceAttr ("scaleway_function.main" , "name" , "foobar" ),
75
- resource .TestCheckResourceAttr ("scaleway_function.main" , "runtime" , "node14 " ),
75
+ resource .TestCheckResourceAttr ("scaleway_function.main" , "runtime" , "node22 " ),
76
76
resource .TestCheckResourceAttr ("scaleway_function.main" , "privacy" , "private" ),
77
77
resource .TestCheckResourceAttr ("scaleway_function.main" , "handler" , "handler.handle" ),
78
78
resource .TestCheckResourceAttr ("scaleway_function.main" , "timeout" , "10" ),
@@ -97,7 +97,7 @@ func TestAccFunction_NoName(t *testing.T) {
97
97
98
98
resource scaleway_function main {
99
99
namespace_id = scaleway_function_namespace.main.id
100
- runtime = "node14 "
100
+ runtime = "node22 "
101
101
privacy = "private"
102
102
handler = "handler.handle"
103
103
}
@@ -127,7 +127,7 @@ func TestAccFunction_EnvironmentVariables(t *testing.T) {
127
127
resource scaleway_function main {
128
128
name = "foobar"
129
129
namespace_id = scaleway_function_namespace.main.id
130
- runtime = "node14 "
130
+ runtime = "node22 "
131
131
privacy = "private"
132
132
handler = "handler.handle"
133
133
environment_variables = {
@@ -152,7 +152,7 @@ func TestAccFunction_EnvironmentVariables(t *testing.T) {
152
152
resource scaleway_function main {
153
153
name = "foobar"
154
154
namespace_id = scaleway_function_namespace.main.id
155
- runtime = "node14 "
155
+ runtime = "node22 "
156
156
privacy = "private"
157
157
handler = "handler.handle"
158
158
environment_variables = {
@@ -190,7 +190,7 @@ func TestAccFunction_Upload(t *testing.T) {
190
190
resource scaleway_function main {
191
191
name = "foobar"
192
192
namespace_id = scaleway_function_namespace.main.id
193
- runtime = "go118 "
193
+ runtime = "go122 "
194
194
privacy = "private"
195
195
handler = "Handle"
196
196
zip_file = "testfixture/gofunction.zip"
@@ -220,7 +220,7 @@ func TestAccFunction_Deploy(t *testing.T) {
220
220
resource scaleway_function main {
221
221
name = "foobar"
222
222
namespace_id = scaleway_function_namespace.main.id
223
- runtime = "go118 "
223
+ runtime = "go122 "
224
224
privacy = "private"
225
225
handler = "Handle"
226
226
zip_file = "testfixture/gofunction.zip"
@@ -238,7 +238,7 @@ func TestAccFunction_Deploy(t *testing.T) {
238
238
resource scaleway_function main {
239
239
name = "foobar"
240
240
namespace_id = scaleway_function_namespace.main.id
241
- runtime = "go118 "
241
+ runtime = "go122 "
242
242
privacy = "private"
243
243
handler = "Handle"
244
244
zip_file = "testfixture/gofunction.zip"
@@ -270,7 +270,7 @@ func TestAccFunction_HTTPOption(t *testing.T) {
270
270
resource scaleway_function main {
271
271
name = "foobar"
272
272
namespace_id = scaleway_function_namespace.main.id
273
- runtime = "node14 "
273
+ runtime = "node22 "
274
274
privacy = "private"
275
275
handler = "handler.handle"
276
276
http_option = "enabled"
@@ -288,7 +288,7 @@ func TestAccFunction_HTTPOption(t *testing.T) {
288
288
resource scaleway_function main {
289
289
name = "foobar"
290
290
namespace_id = scaleway_function_namespace.main.id
291
- runtime = "node14 "
291
+ runtime = "node22 "
292
292
privacy = "private"
293
293
handler = "handler.handle"
294
294
http_option = "redirected"
@@ -306,7 +306,7 @@ func TestAccFunction_HTTPOption(t *testing.T) {
306
306
resource scaleway_function main {
307
307
name = "foobar"
308
308
namespace_id = scaleway_function_namespace.main.id
309
- runtime = "node14 "
309
+ runtime = "node22 "
310
310
privacy = "private"
311
311
handler = "handler.handle"
312
312
}
0 commit comments