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?
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.