diff --git a/controller/northbound/server/role_test.go b/controller/northbound/server/role_test.go index 51db6a7e87d17d852d2b9929a289cb9958ef22d3..21a25d3ee7a8141499d627c9c51aa21b617a0ff7 100644 --- a/controller/northbound/server/role_test.go +++ b/controller/northbound/server/role_test.go @@ -592,8 +592,7 @@ func TestRole_DeleteRoles(t *testing.T) { wantErr: true, validationErrors: []*validate.Violation{ { - //FieldPath: stringToPointer("role_name"), - Field: &validate.FieldPath{Elements: []*validate.FieldPathElement{&validate.FieldPathElement{FieldName: stringToPointer("role_name")}}}, + Field: &validate.FieldPath{Elements: []*validate.FieldPathElement{{FieldName: stringToPointer("role_name")}}}, ConstraintId: stringToPointer("required"), Message: stringToPointer("value is required"), }, diff --git a/controller/northbound/server/user_test.go b/controller/northbound/server/user_test.go index 01a65cbae9dba1c7f7e9bf256b55687a98cb8167..c204e501f3a93cdae6212384950750f86815257a 100644 --- a/controller/northbound/server/user_test.go +++ b/controller/northbound/server/user_test.go @@ -365,8 +365,7 @@ func TestUser_UpdateUsers(t *testing.T) { wantErr: true, validationErrors: []*validate.Violation{ { - // FieldPath: stringToPointer("name"), - Field: &validate.FieldPath{Elements: []*validate.FieldPathElement{&validate.FieldPathElement{FieldName: stringToPointer("name")}}}, + Field: &validate.FieldPath{Elements: []*validate.FieldPathElement{{FieldName: stringToPointer("name")}}}, ConstraintId: stringToPointer("required"), Message: stringToPointer("value is required"), }, @@ -427,8 +426,7 @@ func TestUser_DeleteUsers(t *testing.T) { wantErr: true, validationErrors: []*validate.Violation{ { - //FieldPath: stringToPointer("name"), - Field: &validate.FieldPath{Elements: []*validate.FieldPathElement{&validate.FieldPathElement{FieldName: stringToPointer("name")}}}, + Field: &validate.FieldPath{Elements: []*validate.FieldPathElement{{FieldName: stringToPointer("name")}}}, ConstraintId: stringToPointer("required"), Message: stringToPointer("value is required"), },