Skip to content
Snippets Groups Projects
Commit fe2a058d authored by Fabian Seidl's avatar Fabian Seidl
Browse files

fixed alignment of code

parent 5ed34cd6
No related branches found
No related tags found
1 merge request!1131[renovate] Update module github.com/bufbuild/protovalidate-go to v0.8.2
Pipeline #249267 passed
This commit is part of merge request !1131. Comments created here will be created in the context of that merge request.
...@@ -206,8 +206,9 @@ func TestRole_GetRole(t *testing.T) { ...@@ -206,8 +206,9 @@ func TestRole_GetRole(t *testing.T) {
FieldName: stringToPointer("role_name"), FieldName: stringToPointer("role_name"),
}, },
}, },
}, ConstraintId: stringToPointer("required"), },
Message: stringToPointer("value is required"), ConstraintId: stringToPointer("required"),
Message: stringToPointer("value is required"),
}, },
}, },
}, },
......
...@@ -308,8 +308,9 @@ func TestTopology_AddLink(t *testing.T) { ...@@ -308,8 +308,9 @@ func TestTopology_AddLink(t *testing.T) {
FieldName: stringToPointer("sourceNode"), FieldName: stringToPointer("sourceNode"),
}, },
}, },
}, ConstraintId: stringToPointer("required"), },
Message: stringToPointer("value is required"), ConstraintId: stringToPointer("required"),
Message: stringToPointer("value is required"),
}, },
{ {
Field: &validate.FieldPath{ Field: &validate.FieldPath{
...@@ -321,8 +322,9 @@ func TestTopology_AddLink(t *testing.T) { ...@@ -321,8 +322,9 @@ func TestTopology_AddLink(t *testing.T) {
FieldName: stringToPointer("targetNode"), FieldName: stringToPointer("targetNode"),
}, },
}, },
}, ConstraintId: stringToPointer("required"), },
Message: stringToPointer("value is required"), ConstraintId: stringToPointer("required"),
Message: stringToPointer("value is required"),
}, },
{ {
Field: &validate.FieldPath{ Field: &validate.FieldPath{
...@@ -334,8 +336,9 @@ func TestTopology_AddLink(t *testing.T) { ...@@ -334,8 +336,9 @@ func TestTopology_AddLink(t *testing.T) {
FieldName: stringToPointer("sourcePort"), FieldName: stringToPointer("sourcePort"),
}, },
}, },
}, ConstraintId: stringToPointer("required"), },
Message: stringToPointer("value is required"), ConstraintId: stringToPointer("required"),
Message: stringToPointer("value is required"),
}, },
{ {
Field: &validate.FieldPath{ Field: &validate.FieldPath{
......
...@@ -99,8 +99,9 @@ func TestUser_CreateUsers(t *testing.T) { ...@@ -99,8 +99,9 @@ func TestUser_CreateUsers(t *testing.T) {
FieldName: stringToPointer("password"), FieldName: stringToPointer("password"),
}, },
}, },
}, ConstraintId: stringToPointer("string.min_len"), },
Message: stringToPointer("value length must be at least 5 characters"), ConstraintId: stringToPointer("string.min_len"),
Message: stringToPointer("value length must be at least 5 characters"),
}}, }},
}, },
{ {
...@@ -133,8 +134,9 @@ func TestUser_CreateUsers(t *testing.T) { ...@@ -133,8 +134,9 @@ func TestUser_CreateUsers(t *testing.T) {
FieldName: stringToPointer("name"), FieldName: stringToPointer("name"),
}, },
}, },
}, ConstraintId: stringToPointer("string.min_len"), },
Message: stringToPointer("value length must be at least 3 characters"), ConstraintId: stringToPointer("string.min_len"),
Message: stringToPointer("value length must be at least 3 characters"),
}}, }},
}, },
} }
...@@ -212,8 +214,9 @@ func TestUser_GetUser(t *testing.T) { ...@@ -212,8 +214,9 @@ func TestUser_GetUser(t *testing.T) {
FieldName: stringToPointer("name"), FieldName: stringToPointer("name"),
}, },
}, },
}, ConstraintId: stringToPointer("required"), },
Message: stringToPointer("value is required"), ConstraintId: stringToPointer("required"),
Message: stringToPointer("value is required"),
}}, }},
}, },
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment