strongloop / loopback-example-access-control

An example demonstrating LoopBack access control mechanisms.
Other
370 stars 168 forks source link

Testing dynamic roles #61

Closed teone closed 8 years ago

teone commented 9 years ago

Hi everybody,

as per my understandings the Role.registerResolver callback is triggered only if someone try to access a route where this role is used in the Acl.

I'm wondering which is the best way to write test for dynamic roles, as now I found out two ways:

Any suggestion?

richardpringle commented 8 years ago

Hey @teone, sorry about the delayed response to your issue but we're actually reserving the GitHub issues section for bugs and feature requests. Please post questions at https://groups.google.com/forum/#!forum/loopbackjs. See https://github.com/strongloop/loopback/wiki/Questions for more details.

Hopefully someone can help you out in there!