Closed chmreid closed 4 years ago
i think this PR brings up a weird state of the auth0, delete method, we perhaps when we added it we were thinking of file operations, but users should be able to delete subscriptions at their own desire without admin escalation.
Going with a different approach, per #154
This PR contributes some fixes to help get integration tests passing.
The new Auth0 authorization layer has made deletion endopints admin-only, including for subscriptions. This PR resolves the issue by mocking the call to get the list of admin emails to be whatever emails will be in the test's tokens.
Also makes an Auth0 deletion error message more helpful.