Testing permissions w/out a cert

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Testing permissions w/out a cert

dcrissman
For integration testing purposes, it would be useful if there was an easy way to test permissions/roles without needing a cert. I created an issue for this, but thought it might be an interesting discussion to talk about how this could be implemented?

https://github.com/lightblue-platform/lightblue-test-utils/issues/13

For my particular usecase, the migrator has two entities defined, both require certain access levels for various operations. It would be good to be able to use this exact metadata for integration testing, but as it is, I am unaware of a way to set the permissions. The work around is simply to create a copy of the metadata and set the permissions to 'anyone', but then when the metadata changes, both documents would need to be updated.

That specific usecase aside, I could easily see other applications wanting to be able to test that certain permissions either do or do not allow an action to occur.
Reply | Threaded
Open this post in threaded view
|

Re: Testing permissions w/out a cert

dcrissman
Chatted with Naveen and we will keep this discussion in the issue and not use the forum for this.