Repository navigation
Expand file tree
/
Copy pathwebrtc-events-subscriptions-retrieveNotificationChannelSubscriptionList.feature
More file actions
52 lines (45 loc) · 2.82 KB
/
Copy pathwebrtc-events-subscriptions-retrieveNotificationChannelSubscriptionList.feature
File metadata and controls
52 lines (45 loc) · 2.82 KB
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
52
Feature: CAMARA WebRTC Events Subscriptions, vwip - Operation retrieveNotificationChannelSubscriptionList
Background: Common retrieveNotificationChannelSubscriptionList setup
Given an environment at "apiRoot"
And the resource "/webrtc-events-subscriptions/vwip/subscriptions" |
And the header "Content-Type" is set to "application/json"
And the header "Authorization" is set to a valid access token
And the header "x-correlator" complies with the schema at "#/components/schemas/XCorrelator"
And the path parameter "subscriptionId" is set by default to a existing register session
# Properties not explicitly overwitten in the Scenarios can take any values compliant with the schema
@webrtc_events_retrieveNotificationChannelSubscriptionList_01_generic_success_scenario
Scenario: Retrieve a list of webrtc-events-subscriptions event subscription
When the client sends a GET request to "/subscriptions"
Then the response status code should be 200
And the response header "x-correlator" has same value as the request header "x-correlator"
And each item of the the response array, if any, complies with the OAS schema at "/components/schemas/Subscription"
# Error scenarios
# Generic 401 errors
@webrtc_events_retrieveNotificationChannelSubscriptionList_401.1_no_authorization_header
Scenario: No Authorization header
Given the header "Authorization" is removed
And the request body is set to a valid request body
When the HTTP "GET" request is sent
Then the response status code is 401
And the response property "$.status" is 401
And the response property "$.code" is "UNAUTHENTICATED"
And the response property "$.message" contains a user friendly text
@webrtc_events_retrieveNotificationChannelSubscriptionList_401.2_expired_access_token
Scenario: Expired access token
Given the header "Authorization" is set to an expired access token
And the request body is set to a valid request body
When the HTTP "GET" request is sent
Then the response status code is 401
And the response property "$.status" is 401
And the response property "$.code" is "UNAUTHENTICATED"
And the response property "$.message" contains a user friendly text
@webrtc_events_retrieveNotificationChannelSubscriptionList_401.3_invalid_access_token
Scenario: Invalid access token
Given the header "Authorization" is set to an invalid access token
And the request body is set to a valid request body
When the HTTP "GET" request is sent
Then the response status code is 401
And the response header "Content-Type" is "application/json"
And the response property "$.status" is 401
And the response property "$.code" is "UNAUTHENTICATED"
And the response property "$.message" contains a user friendly text