Admin endpoint and initial permissions integration tests #485
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added an admin endpoint (only enabled in development environment) that reports the possible content and user permissions available in Solr and the database. The same code is used in a new permissions integration test that goes through all possible combinations of permissions and verifies that fields have been redacted or not redacted according to the permissions and the policy. The integration test only has one aspect tested at the moment. The rest of the aspects are coming in the other PR.
There are some changes in the other integration tests that are there just to allow the tests to be discovered without errors. Many of these tests need to be updated because they are failing due to various reaosons. This will be done separately.