...
Test suite for the Security REST service.
...
Prerequisites
Prerequisites are tested in the class SecurityServiceRestTest.
- The run.config is configured with .ts specifies a "security.handler" with any required parameters also specified.
- The run.config.ts has a an "testadmin.user" and "testadmin.password" that is valid for the configured handler.specified
- The run.config.ts has a an "testviewer.baduser" that fails to authenticate with any password for the configured handler.user" and "viewer.password" specified
- The run.config.ts has a "testbad.user" and "bad.password" that fails to authenticate with any user for the configured handler.
Prerequisites
- The test.user specified in the config file is not attached to any projectspecified
- 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:
- Normal Use - org.ihtsdo.otf.ts.test.Restrest.SecurityServiceNormalUseTestSecurityServiceRestNormalUseTest
- Degenerate Use - org.ihtsdo.otf.ts.test.Restrest.SecurityServiceDegenerateUseTestSecurityServiceRestDegenerateUseTest
- Edge Cases - org.ihtsdo.otf.ts.test.rest.SecurityServiceEdgeCasesTestSecurityServiceRestEdgeCasesTest
- Case testEdgeCasesRestSecurity001
- n/a (no conditions)
- Case testEdgeCasesRestSecurity003
- Role Check - org.ihtsdo.otf.ts.test.rest.SecurityServiceRestRoleCheckTest
- n/a (no conditions)
- Case testRoleCheckRestSecurity002
- n/a (no conditions)
References/Links
- n/a