Content Service REST Test Suite
Overview
Test suite for the Content REST service.
Prerequisites
Prerequisites are tested in the class ContentServiceRestTest.
The terminology SNOMEDCT version "latest" is loaded from the config data project
The terminology ICD9CM version 2013 is loaded from the config data project
The config.properties file fully specifies the "security.handler" parameters
The config.properties file specifies a "viewer.user" and "viewer.password"
Assumptions
Assumptions not fulfilled will cause test failures.
The security handler specified exists and can be instantiated.
The security handler successfully authenticates the "viewer.user", and returns a user with application role of VIEWER
TODO NOTES:
Do all tests for both SNOMEDCT and ICD9CM
When retrieving concepts, check some random attributes of the concepts (e.g. defaultPreferredName) to make sure parameters are being set.
Test Cases.
This test suite comprises the following test cases:
Normal Use - org.ihtsdo.otf.ts.test.rest.SecurityServiceRestNormalUseTest
Degenerate Use - org.ihtsdo.otf.ts.test.rest.SecurityServiceRestDegenerateUseTest
Edge Cases - org.ihtsdo.otf.ts.test.rest.SecurityServiceRestEdgeCasesTest
Role Check - org.ihtsdo.otf.ts.test.rest.SecurityServiceRestRoleCheckTest