egg-authz icon indicating copy to clipboard operation
egg-authz copied to clipboard

Confused in test cases

Open shenxiang11 opened this issue 4 years ago • 1 comments

For example:

 it('test: p, bob, /dataset2/resource1, * - DELETE', async () => {
    app.mockCsrf()
    const response = await app.httpRequest()
      .delete('/dataset2/resource')
      .set('Authorization', 'bob')
    assert(response.status === 403)
  })

test /dataset2/resource1, however request /dataset2/resource

shenxiang11 avatar Dec 15 '21 06:12 shenxiang11

@Gabriel-403 @Zxilly @kingiw @nodece

casbin-bot avatar Dec 15 '21 06:12 casbin-bot

@Gabriel-403 @Zxilly @kingiw @nodece

hsluoyz avatar Dec 17 '21 02:12 hsluoyz