marklogic-community / data-explorer

Data Explorer Tool
Other
15 stars 4 forks source link

#172 ML9-specific privileges aren't deployed if they don't exist #173

Closed rjrudin closed 5 years ago

rjrudin commented 5 years ago

I'm submitting this to master, as that's really far ahead of develop. Feel free to change - e.g. if you want to get develop up-to-date with master first.

rjrudin commented 5 years ago

Oh right - I don't know of a good way to test this, because ideally, the test would hit both a ML 8 instance and a ML 9 instance. I'm open to ideas. One approach would be to add an interface for seeing if a privilege exists, and that could be mocked in a unit test to verify that the token is correctly set in the custom tokens map.