Refine test sessions to only have permissions for declared interfaces
When Hoodoo is receiving a request into a known set of interface declarations, then if using a test session, only the interfaces' declared resources and supported actions of those resources ought to be permitted within the session.
Going back to the earliest days of its development, for expediency the test session had a global "else allow" on all resources. This is fine until inter-resource calls start to happen, at which point if additional_permissions_for is not declared, a test might pass but a real-world deployment would fail.
Mocking/stubbing may defeat this regardless, but at least there'd be a fighting chance of spotting such issues under test if there was a less permissive approach to the test session permissions.
Related: https://github.com/LoyaltyNZ/hoodoo/issues/101