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

updated test data

parent 2f8f7a00
Branches
Tags
1 merge request!308Improve test coverage of rbac stuff
......@@ -28,7 +28,7 @@ func TestLogin(t *testing.T) {
args: args{
ctx: context.TODO(),
addr: testAPIEndpoint,
username: "admin",
username: "testAdmin",
pwd: "admin",
},
want: &apb.LoginResponse{
......@@ -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 {
t.Errorf("Login() error = %v", err)
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment