-
Notifications
You must be signed in to change notification settings - Fork 42
/
user_feedback.feature
51 lines (45 loc) · 2.28 KB
/
user_feedback.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Feature: User feedback server API V1
Scenario: Check the API entry point
Given System is running
When I access /api/v1/
Then I should get 200 status code
@requires_authorization_token
Scenario: Check the user-feedback endpoint access without the authorization token
Given System is running
When I post valid input to the /api/v1/user-feedback endpoint without authorization token
Then I should get 401 status code
@requires_authorization_token
Scenario: Check the user-feedback endpoint access with authorization token but invalid input
Given System is running
When I acquire the authorization token
Then I should get the proper authorization token
When I post invalid input to the /api/v1/user-feedback endpoint with authorization token
Then I should get 400 status code
@requires_authorization_token
Scenario: Check the user-feedback endpoint access with authorization token but incomplete input
Given System is running
When I acquire the authorization token
Then I should get the proper authorization token
When I post incomplete input to the /api/v1/user-feedback endpoint with authorization token
Then I should get 400 status code
@requires_authorization_token
Scenario: Check the user-feedback endpoint access with authorization token but empty input
Given System is running
When I acquire the authorization token
Then I should get the proper authorization token
When I post empty input to the /api/v1/user-feedback endpoint with authorization token
Then I should get 400 status code
@requires_authorization_token
Scenario: Check the user-feedback endpoint access with authorization token but missing input
Given System is running
When I acquire the authorization token
Then I should get the proper authorization token
When I post missing input to the /api/v1/user-feedback endpoint with authorization token
Then I should get 400 status code
@requires_authorization_token
Scenario: Check if the user feedback is received by the system
Given System is running
When I acquire the authorization token
Then I should get the proper authorization token
When I post valid input to the /api/v1/user-feedback endpoint with authorization token
Then I should get 200 status code