From fe2a058d19f1d3ee78014faf691e9855b0cf34f9 Mon Sep 17 00:00:00 2001
From: Fabian Seidl <fabian.seidl@h-da.de>
Date: Wed, 15 Jan 2025 09:09:05 +0100
Subject: [PATCH] fixed alignment of code

---
 controller/northbound/server/role_test.go     |  5 +++--
 controller/northbound/server/topology_test.go | 15 +++++++++------
 controller/northbound/server/user_test.go     | 15 +++++++++------
 3 files changed, 21 insertions(+), 14 deletions(-)

diff --git a/controller/northbound/server/role_test.go b/controller/northbound/server/role_test.go
index 0b415d857..2d75e0678 100644
--- a/controller/northbound/server/role_test.go
+++ b/controller/northbound/server/role_test.go
@@ -206,8 +206,9 @@ func TestRole_GetRole(t *testing.T) {
 								FieldName: stringToPointer("role_name"),
 							},
 						},
-					}, ConstraintId: stringToPointer("required"),
-					Message: stringToPointer("value is required"),
+					},
+					ConstraintId: stringToPointer("required"),
+					Message:      stringToPointer("value is required"),
 				},
 			},
 		},
diff --git a/controller/northbound/server/topology_test.go b/controller/northbound/server/topology_test.go
index aca431a95..dea560a45 100644
--- a/controller/northbound/server/topology_test.go
+++ b/controller/northbound/server/topology_test.go
@@ -308,8 +308,9 @@ func TestTopology_AddLink(t *testing.T) {
 								FieldName: stringToPointer("sourceNode"),
 							},
 						},
-					}, ConstraintId: stringToPointer("required"),
-					Message: stringToPointer("value is required"),
+					},
+					ConstraintId: stringToPointer("required"),
+					Message:      stringToPointer("value is required"),
 				},
 				{
 					Field: &validate.FieldPath{
@@ -321,8 +322,9 @@ func TestTopology_AddLink(t *testing.T) {
 								FieldName: stringToPointer("targetNode"),
 							},
 						},
-					}, ConstraintId: stringToPointer("required"),
-					Message: stringToPointer("value is required"),
+					},
+					ConstraintId: stringToPointer("required"),
+					Message:      stringToPointer("value is required"),
 				},
 				{
 					Field: &validate.FieldPath{
@@ -334,8 +336,9 @@ func TestTopology_AddLink(t *testing.T) {
 								FieldName: stringToPointer("sourcePort"),
 							},
 						},
-					}, ConstraintId: stringToPointer("required"),
-					Message: stringToPointer("value is required"),
+					},
+					ConstraintId: stringToPointer("required"),
+					Message:      stringToPointer("value is required"),
 				},
 				{
 					Field: &validate.FieldPath{
diff --git a/controller/northbound/server/user_test.go b/controller/northbound/server/user_test.go
index 201382709..9fcdf4d61 100644
--- a/controller/northbound/server/user_test.go
+++ b/controller/northbound/server/user_test.go
@@ -99,8 +99,9 @@ func TestUser_CreateUsers(t *testing.T) {
 								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) {
 								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) {
 								FieldName: stringToPointer("name"),
 							},
 						},
-					}, ConstraintId: stringToPointer("required"),
-					Message: stringToPointer("value is required"),
+					},
+					ConstraintId: stringToPointer("required"),
+					Message:      stringToPointer("value is required"),
 				}},
 		},
 	}
-- 
GitLab