Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Expose batch authorization in Hapi 17 plugin #556

Merged
merged 1 commit into from
Nov 28, 2018

Conversation

simoneb
Copy link
Member

@simoneb simoneb commented Sep 3, 2018

Addresses issue #555

Also includes:

  • add tests
  • fix existing tests which were succeding because wrongly implemented

@@ -294,11 +338,10 @@ lab.experiment('Authorization inherited org policies', () => {
}
})

server.inject(options, (response) => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this and the below tests were mistakenly succeeding, I was actually puzzled as to why because the API didn't exist in the hapi 17 plugin, and eventually realized that they were not asserting correctly, probably because of a copy/paste from the hapi 16 plugin package, which uses callback-based assertions VS the async-based assertions used here instead.

@coveralls
Copy link

coveralls commented Sep 3, 2018

Coverage Status

Coverage remained the same at 93.148% when pulling 1350ee8 on simoneb:issue-555-batch-authorization into f6f176d on nearform:master.

- add tests
- fix existing tests which were succeding because wrongly implemented
@simoneb simoneb force-pushed the issue-555-batch-authorization branch from 715e970 to 1350ee8 Compare September 4, 2018 09:37
Copy link
Contributor

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mihaidma
Copy link
Contributor

will merge and check/repair tests

@mihaidma mihaidma merged commit a5ab09e into nearform:master Nov 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants