Overview
Test suite for the Security Content REST service.
Prerequisites
Prerequisites are tested in the class SecurityServiceRestTest.
...
ContentServiceRestTest.
- SNOMEDCT, version latest, loaded from the config data project
- ICD9CM, 2013, loaded from the config data project
- The config.properties file fully specifies the "security.handler" with any required parameters also specified.
- The run. config has an "admin.user" and "admin.password" specifiedThe run.config has an ".properties file specifies a "viewer.user" and "viewer.password" specified
- The run.config has a "bad.user" and "bad.password" specified
- 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 VIEWERThe 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.rest.SecurityServiceRestNormalUseTest
- Case testNormalUseRestContentt003
- Case testNormalUseRestContent003
- Case testNormalUseRestContent004
- Case testNormalUseRestContent005
- Case testNormalUseRestContent006
- Case testNormalUseRestContent007
- Case testNormalUseRestContent008
- Case testNormalUseRestContent009
- Case testNormalUseRestContent010
- Case testNormalUseRestContent011
- Case testNormalUseRestContent012
- Case testNormalUseRestContent013
- Case testNormalUseRestContent014
- Case testNormalUseRestContent015
- Case testNormalUseRestContent016
- Case testNormalUseRestContent017
- Case testNormalUseRestContent018
- Case testNormalUseRestContent019
- Degenerate Use - org.ihtsdo.otf.ts.test.rest.SecurityServiceRestDegenerateUseTest
- Case testDegenerateUseRestContentt001
- Case testDegenerateUseRestContentt002 Case testDegenerateUseRestContentt003
- Case testEdgeCasesRestContentt001
- n/a (no conditions) Case testEdgeCasesRestContentt003
- Role Check - org.ihtsdo.otf.ts.test.rest.SecurityServiceRestRoleCheckTest
- n/a (no conditions)
- Case testRoleCheckRestContentt002 n/a (no conditions)
Edge Cases - org.ihtsdo.otf.ts.test.rest.SecurityServiceRestEdgeCasesTest
testNormalUseRestContent004 |
testNormalUseRestContent005 |
testNormalUseRestContent006 |
testNormalUseRestContent007 |
testNormalUseRestContent008 |
testNormalUseRestContent009 |
testNormalUseRestContent010 |
testNormalUseRestContent011 |
testNormalUseRestContent012 |
testNormalUseRestContent013 |
testNormalUseRestContent014 |
testNormalUseRestContent015 |
testNormalUseRestContent016 |
testNormalUseRestContent017 |
testNormalUseRestContent018 |
testNormalUseRestContent019 |