/
Case testDegenerateUseRestProject001

Case testDegenerateUseRestProject001

Overview

Test case for degenerate use of the "add/update/remove project" features of the REST project service.

Procedure 1

  • Authenticate "admin.user" with "admin.password"
  • Get all projects and choose the first one.
  • Call "add project" using this project (attempting to add a duplicate)
    • TEST: exception occurs because you cannot add something that already has an ID.
  • Call "add project" using a null project
    • TEST: exception
  • Get all projects and choose the first one.
  • Change the id to -1.
  • Update the project
    • TEST: exception because there is no project with that id (e.g. "update" cannot be used to add a project)
  • Call "update project" using a null project.
    • TEST: exception
  • Call "remove project" with -1 as the project id.
    • TEST: returns null
  • Call "remove project" with null
    • TEST: exception

Expected Runtime

  • < 1 sec

Notes

  • n/a