...
Test suite for the Security REST service.
...
Prerequisites
Prerequisites are tested in the class SecurityServiceRestTest.
- The run.config is configured with specifies a "security.handler" with any required parameters also specified.
- The run.config has a an "admin.user" and "admin.password" that is valid for the configured handler, and has role of ADMINISTRATOR.specified
- The run.config has a an "testviewer.user" and "testviewer.password" that is valid for the configured handler. Any role for this user is acceptablespecified
- The run.config has a "bad.user" and "bad.password" that is invalid for the configured handlerspecified
- No user exists in the database with the "bad.user" userName.
Assumptions
Assumptions not fulfilled will cause test failures.
- The security handler specified exists and can be instantiated.
- The security handler successfully authenticates the "admin.user", and returns a user with application role of ADMINISTRATOR
- The security handler successfully authenticates the "viewer.user", and returns a user with application role of VIEWER
- The security handler fails to authenticate the "bad.user", and returns no user.
Test Cases.
This test suite comprises the following test cases:
...