Versions Compared

Key

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

...

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

  • n/aspecified
  • 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:

  • n/a