...
Step | Action | Expected system response | Comment | |||||||
1 | http://localhost:8080/ it is not protected Open Postman. Enter: Method: Get Authentication: no authentication | Should appear: Status 200 OK | 2 | Check if Api is visible: URL:http://localhost:8080/api/foos/count is available for authenticated users (regular user and admin) - without any loginURL: http://localhost:8080/api/foos/countorders Method: Get Authentication: no auhentication | Should appear: Status 401 Unauthorized | 3 | Should appear: Status 200 OK | |||
4 | http://localhost:8080/api/foos/count is available for authenticated users (regular user and admin) - admin URL: http://localhost:8080/api/foos/count Method: Get Authentication: admin/password | Should appear: Status 200 OK | 5 | Should appear: Status 401 Unauthorized | ||||||
6 | http://localhost:8080/weather/Gdynia only admin has access - regular user URL: http://localhost:8080/weather/Gdynia Method: Get Authentication: user/password | Should appear: Status 401 Unauthorized | ||||||||
7 | http://localhost:8080/weather/Gdynia only admin has access - regular user URL: http://localhost:8080/weather/Gdynia Method: Get Authentication: admin/password | Should appear: Status 200 OK | ||||||||
8 | Should appear: Status 200 OK GET | Status: 200 OK
| ||||||||
|
---|
Post – conditions:
|