Skip to content

Commit ab81096

Browse files
authored
fix(function): increase name max size (#1455)
1 parent e66aba4 commit ab81096

File tree

4 files changed

+259
-325
lines changed

4 files changed

+259
-325
lines changed

scaleway/resource_function.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func resourceScalewayFunction() *schema.Resource {
4343
Optional: true,
4444
Computed: true,
4545
Description: "The name of the function",
46-
ValidateFunc: validation.StringLenBetween(1, 20),
46+
ValidateFunc: validation.StringLenBetween(1, 34),
4747
},
4848
"description": {
4949
Type: schema.TypeString,

scaleway/resource_function_cron_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ func TestAccScalewayFunctionCron_Basic(t *testing.T) {
5757
{
5858
Config: `
5959
resource scaleway_function_namespace main {
60-
name = "test-cron"
60+
name = "tf-tests-function-cron-basic"
6161
}
6262
6363
resource scaleway_function main {
64-
name = "test-cron"
64+
name = "tf-tests-cron-basic"
6565
namespace_id = scaleway_function_namespace.main.id
6666
runtime = "node14"
6767
privacy = "private"
@@ -95,11 +95,11 @@ func TestAccScalewayFunctionCron_WithArgs(t *testing.T) {
9595
{
9696
Config: `
9797
resource scaleway_function_namespace main {
98-
name = "test-cron"
98+
name = "tf-tests-function-cron-with-args"
9999
}
100100
101101
resource scaleway_function main {
102-
name = "test-cron"
102+
name = "tf-tests-cron-with-args"
103103
namespace_id = scaleway_function_namespace.main.id
104104
runtime = "node14"
105105
privacy = "private"

0 commit comments

Comments
 (0)