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

updated test data

parent 2f8f7a00
No related branches found
No related tags found
1 merge request!308Improve test coverage of rbac stuff
This commit is part of merge request !308. Comments created here will be created in the context of that merge request.
...@@ -28,7 +28,7 @@ func TestLogin(t *testing.T) { ...@@ -28,7 +28,7 @@ func TestLogin(t *testing.T) {
args: args{ args: args{
ctx: context.TODO(), ctx: context.TODO(),
addr: testAPIEndpoint, addr: testAPIEndpoint,
username: "admin", username: "testAdmin",
pwd: "admin", pwd: "admin",
}, },
want: &apb.LoginResponse{ want: &apb.LoginResponse{
...@@ -38,7 +38,7 @@ func TestLogin(t *testing.T) { ...@@ -38,7 +38,7 @@ func TestLogin(t *testing.T) {
}, },
} }
err := userService.Add(&rbac.User{UserID: uuid.New(), UserName: "admin", Roles: map[string]string{pndID: "admin"}, Password: "admin"}) err := userService.Add(&rbac.User{UserID: uuid.New(), UserName: "testAdmin", Roles: map[string]string{pndID: "admin"}, Password: "admin"})
if err != nil { if err != nil {
t.Errorf("Login() error = %v", err) t.Errorf("Login() error = %v", err)
return return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment