Skip to content
Snippets Groups Projects

Resolve "Implement integration tests for RBAC"

Merged Fabian Seidl requested to merge 340-implement-integration-tests-for-rbac into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -156,7 +156,6 @@ func TestUserWithoutPermission(t *testing.T) {
@@ -156,7 +156,6 @@ func TestUserWithoutPermission(t *testing.T) {
Timestamp: time.Now().UnixNano(),
Timestamp: time.Now().UnixNano(),
User: []*apb.User{
User: []*apb.User{
{
{
Id: userUUID,
Name: user1NameAndPW,
Name: user1NameAndPW,
Roles: map[string]string{pndID: roleName},
Roles: map[string]string{pndID: roleName},
Password: user1NameAndPW,
Password: user1NameAndPW,
@@ -223,6 +222,7 @@ func TestUserWithoutPermission(t *testing.T) {
@@ -223,6 +222,7 @@ func TestUserWithoutPermission(t *testing.T) {
loginResponse, err := authService.Login(context.Background(), loginRequest)
loginResponse, err := authService.Login(context.Background(), loginRequest)
if err != nil {
if err != nil {
t.Error(err)
t.Error(err)
 
t.FailNow()
}
}
sessionToken := integration_test_utils.CreateContextWithAuthorization(loginResponse)
sessionToken := integration_test_utils.CreateContextWithAuthorization(loginResponse)
Loading