Skip to content

πŸ› [Bug] Unstable Backend Tests #4341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ulfgebhardt opened this issue Apr 4, 2021 · 0 comments
Closed

πŸ› [Bug] Unstable Backend Tests #4341

ulfgebhardt opened this issue Apr 4, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ulfgebhardt
Copy link
Member

ulfgebhardt commented Apr 4, 2021

πŸ› Bugreport

!!! duplicate of #4572

FAIL src/middleware/permissionsMiddleware.spec.js (10.062s)
  authorization
    given an owner, an other user, an admin, a moderator
      access email address
        unauthenticated
          βœ“ throws an error and does not expose the owner's email address (939ms)
        authenticated
          as the owner
            βœ“ exposes the owner's email address (626ms)
          as another regular user
            βœ“ throws an error and does not expose the owner's email address (640ms)
          as a moderator
            βœ“ throws an error and does not expose the owner's email address (655ms)
          as an administrator
            βœ“ exposes the owner's email address (605ms)
      access Signup
        admin invite only
          as user
            βœ“ denies permission (981ms)
          as admin
            βœ“ returns an email (1077ms)
        public registration
          as anyone
            βœ“ returns an email (985ms)
        invite registration
          as anyone with valid invite code
            βœ“ returns an email (1029ms)
          as anyone without valid invite
            βœ• denies permission (882ms)

  ● authorization β€Ί given an owner, an other user, an admin, a moderator β€Ί access Signup β€Ί invite registration β€Ί as anyone without valid invite β€Ί denies permission

    TypeError: Cannot read property 'get' of undefined

      100 |       options.avatar,
      101 |     ])
    > 102 |     await Promise.all([user.relateTo(email, 'primaryEmail'), email.relateTo(user, 'belongsTo')])
          |     ^
      103 |     if (avatar) await user.relateTo(avatar, 'avatar')
      104 |     return user
      105 |   })

      at node_modules/neode/build/Services/RelateTo.js:53:38
          at runMicrotasks (<anonymous>)
          at async Promise.all (index 0)
      at Array.<anonymous> (src/db/factories.js:102:5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants