Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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:

 

testNormalUseRestContent004
testNormalUseRestContent005
testNormalUseRestContent006
testNormalUseRestContent007
testNormalUseRestContent008
testNormalUseRestContent009
testNormalUseRestContent010
testNormalUseRestContent011
testNormalUseRestContent012
testNormalUseRestContent013
testNormalUseRestContent014
testNormalUseRestContent015
testNormalUseRestContent016
testNormalUseRestContent017
testNormalUseRestContent018
testNormalUseRestContent019