SERVER-138222ClosedFixed

user_defined_roles should test all subsets of privileges for auth failures

The inline documentation of the `privileges` option in jstests/auth/lib/commands_lib.js states that the custom roles test runner will check "that having only a subset of the privileges causes an authorization failure". However, in jstests/auth/commands_user_defined_roles.js:runOneTest(), the runner checks each privilege individually but not any larger subsets of privileges. Either change the runOneTest() logic to test every subset of the full set of privileges for an auth failure, or update

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.