/
Case testDegenerateUseRestSecurity002
Case testDegenerateUseRestSecurity002
Overview
Test case for degenerate use of the REST security service user management CRUD methods.
Procedure 1: Testing add services
- Test using degenerate use helper
- TEST: user parameter null -> Exception
- TEST: authToken parameter null/empty -> Exception
- Add user with incomplete user information (e.g. for all fields, set to null and add)
- TEST: Should throw deserialization error
- Add user with duplicate user name Not currently implemented due to lock/timeout issues
- TEST: Should throw DuplicateEntry exception
- Add user with already-existing hibernate id Not currently implemented due to lock/timeout issues
- TEST: Should throw DuplicateEntry exception
Procedure 2: Testing get services
- Test get by name using degenerate use helper using bad user and admin auth token
- TEST: userName parameter null -> Exception
- TEST: userName parameter empty-> Null result
- TEST: authToken parameter null/empty -> Exception
- Test get by id using degenerate use helper using bad user and admin auth token
- TEST: userName parameter null -> Exception
- TEST: userName parameter invalid-> Null result
- TEST: authToken parameter null/empty -> Exception
- Get user with invalid name (does not exist in database)
- TEST: Should return null
Procedure 3: Testing update services
- Test update using degenerate use helper using bad user and admin auth token
- TEST: userName parameter null -> Exception
- TEST: authToken parameter null/empty -> Exception
- Update user with incomplete user information
- TEST: Should throw deserialization error
Procedure 4: Testing delete services
- Test update using degenerate use helper using bad user and admin auth token
- TEST: id parameter null/invalid -> Exception
- TEST: authToken parameter null/empty -> Exception
Expected Runtime
- < 6s
Notes
- n/a