Skip to content

Commit d8fd74a

Browse files
committed
Merge remote-tracking branch 'upstream/main' into release/r3.2
2 parents fd48f38 + 74ed457 commit d8fd74a

10 files changed

Lines changed: 34 additions & 34 deletions

code/Test_definitions/qos-profiles-getQosProfile.feature

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,27 @@ Feature: CAMARA QoS Profiles API, v1.1.0 - Operation getQosProfile
77
# Testing assets:
88
# * The name of an existing QoS profile
99
#
10-
# References to OAS spec schemas refer to schemas specifies in qos-profiles.yaml
10+
# References to OAS spec schemas refer to schemas specified in qos-profiles.yaml
1111

1212
Background: Common getQosProfile setup
1313
Given an environment at "apiRoot"
1414
And the resource "/qos-profiles/v1/qos-profiles/{name}"
1515
And the header "Authorization" is set to a valid access token
1616
And the header "x-correlator" complies with the schema at "#/components/schemas/XCorrelator"
17-
And the path param "name" is set by default to a existing QoS profile name
17+
And the path param "name" is set by default to an existing QoS profile name
1818

1919
# Success scenarios
2020

2121
@qos_profiles_getQosProfile_01_generic_success_scenario
2222
Scenario: Common validations for any success scenario
2323
# Valid testing device and default request body compliant with the schema
2424
Given an existing QoS profile
25-
And the path parameter "name" is set to the value for an that QoS profile
25+
And the path parameter "name" is set to the value for that QoS profile
2626
When the request "getQosProfile" is sent
2727
Then the response status code is 200
2828
And the response header "Content-Type" is "application/json"
2929
And the response header "x-correlator" has same value as the request header "x-correlator"
30-
And each item of the the response array complies with the OAS schema at "/components/schemas/QosProfile"
30+
And each item of the response array complies with the OAS schema at "/components/schemas/QosProfile"
3131
And the response property "$.name" value is equal to path param "name"
3232
# TBC: Add additional constraints, such as max* properties must be higher than min* equivalent properties, etc
3333

@@ -110,7 +110,7 @@ Feature: CAMARA QoS Profiles API, v1.1.0 - Operation getQosProfile
110110
# Generic 404 errors
111111

112112
@qos_profiles_getQosProfile_404.1_not_found
113-
Scenario: name of a no existing QoS profile
113+
Scenario: name of a non-existing QoS profile
114114
Given the path parameter "name" is set to a random string compliant with the pattern
115115
When the request "getQosProfile" is sent
116116
Then the response status code is 404

code/Test_definitions/qos-profiles-retrieveQoSProfiles.feature

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Feature: CAMARA QoS Profiles API, v1.1.0 - Operation retrieveQoSProfiles
1111
# * If some QoS Profile is restricted for some devices, provide the QoS profile name and device
1212
# * A device object identifying a device commercialized by the implementation for which the service is not applicable, if any
1313

14-
# References to OAS spec schemas refer to schemas specifies in qos-profiles.yaml
14+
# References to OAS spec schemas refer to schemas specified in qos-profiles.yaml
1515

1616
Background: Common retrieveQoSProfiles setup
1717
Given an environment at "apiRoot"
@@ -32,7 +32,7 @@ Feature: CAMARA QoS Profiles API, v1.1.0 - Operation retrieveQoSProfiles
3232
Then the response status code is 200
3333
And the response header "Content-Type" is "application/json"
3434
And the response header "x-correlator" has same value as the request header "x-correlator"
35-
And each item of the the response array, if any, complies with the OAS schema at "/components/schemas/QosProfile"
35+
And each item of the response array, if any, complies with the OAS schema at "/components/schemas/QosProfile"
3636
# TBC: Add additional constraints, such as max* properties must be higher than min* equivalent properties, etc
3737

3838
@qos_profiles_retrieveQoSProfiles_02_filter_by_name_only
@@ -54,8 +54,8 @@ Feature: CAMARA QoS Profiles API, v1.1.0 - Operation retrieveQoSProfiles
5454
Then the response status code is 200
5555
And the response header "Content-Type" is "application/json"
5656
And the response header "x-correlator" has same value as the request header "x-correlator"
57-
And each item of the the response array, if any, complies with the OAS schema at "/components/schemas/QosProfile"
58-
And each item of the the response array, if any, has property "$[*].status" equal to <status>
57+
And each item of the response array, if any, complies with the OAS schema at "/components/schemas/QosProfile"
58+
And each item of the response array, if any, has property "$[*].status" equal to <status>
5959

6060
Examples:
6161
| status |
@@ -72,8 +72,8 @@ Feature: CAMARA QoS Profiles API, v1.1.0 - Operation retrieveQoSProfiles
7272
Then the response status code is 200
7373
And the response header "Content-Type" is "application/json"
7474
And the response header "x-correlator" has same value as the request header "x-correlator"
75-
And each item of the the response array complies with the OAS schema at "/components/schemas/QosProfile"
76-
And the restricted QoS Profiles is returned in the response
75+
And each item of the response array complies with the OAS schema at "/components/schemas/QosProfile"
76+
And the restricted QoS Profiles are returned in the response
7777

7878
@qos_profiles_retrieveQoSProfiles_05_not_return_restricted_profiles
7979
Scenario: Do not return restricted QoS Profiles restricted to certain devices
@@ -84,11 +84,11 @@ Feature: CAMARA QoS Profiles API, v1.1.0 - Operation retrieveQoSProfiles
8484
Then the response status code is 200
8585
And the response header "Content-Type" is "application/json"
8686
And the response header "x-correlator" has same value as the request header "x-correlator"
87-
And each item of the the response array complies with the OAS schema at "/components/schemas/QosProfile"
87+
And each item of the response array complies with the OAS schema at "/components/schemas/QosProfile"
8888
And no restricted QoS Profile is included in the response
8989

9090
@qos_profiles_retrieveQoSProfiles_06_device_qos_profiles_not_found
91-
Scenario: Device has not QoS profiles associated
91+
Scenario: Device has no QoS profiles associated
9292
Given a device for which the service is not applicable, provided in the request body or identified by the access token
9393
When the request "retrieveQoSProfiles" is sent
9494
Then the response status code is 200

code/Test_definitions/qos-provisioning-getQosAssignmentByDevice.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Feature: CAMARA QoS Provisioning API, v0.3.0 - Operation getQosAssignmentByDevic
1515

1616
Background: Common getQosAssignmentByDevice setup
1717
Given an environment at "apiRoot"
18-
And the resource "/qos-provisioning/v0.3/retrieve-qos-assignment" |
18+
And the resource "/qos-provisioning/v0.3/retrieve-qos-assignment"
1919
And the header "Content-Type" is set to "application/json"
2020
# Unless indicated otherwise the QoS assignment must be created by the same API client given in the access token
2121
And the header "Authorization" is set to a valid access token granted to the same client that created the QoS assignment

code/Test_definitions/qos-provisioning-getQosAssignmentById.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Feature: CAMARA QoS Provisioning API, v0.3.0 - Operation getQosAssignmentById
1111

1212
Background: Common getQosAssignmentById setup
1313
Given an environment at "apiRoot"
14-
And the resource "/qos-provisioning/v0.3/qos-assignments/{assignmentId}" |
14+
And the resource "/qos-provisioning/v0.3/qos-assignments/{assignmentId}"
1515
# Unless indicated otherwise the QoS assignment must be created by the same API client given in the access token
1616
And the header "Authorization" is set to a valid access token granted to the same client that created the QoS assignment
1717
And the header "x-correlator" complies with the schema at "#/components/schemas/XCorrelator"
@@ -127,7 +127,7 @@ Feature: CAMARA QoS Provisioning API, v0.3.0 - Operation getQosAssignmentById
127127
# Errors 404
128128

129129
@qos_provisioning_getQosAssignmentById_404.1_not_found
130-
Scenario: assignmentId of a no existing QoS assignment
130+
Scenario: assignmentId of a non-existing QoS assignment
131131
Given the path parameter "assignmentId" is set to a random UUID
132132
When the request "getQosAssignmentById" is sent
133133
Then the response status code is 404

code/Test_definitions/qos-provisioning-revokeQosAssignment.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Feature: CAMARA QoS Provisioning API, v0.3.0 - Operation revokeQosAssignment
9494
Scenario: Invalid Argument. Generic Syntax Exception
9595
Given the path parameter "assignmentId" has not a UUID format
9696
When the request "revokeQosAssignment" is sent
97-
Then the response status code is 404
97+
Then the response status code is 400
9898
And the response header "x-correlator" has same value as the request header "x-correlator"
9999
And the response header "Content-Type" is "application/json"
100100
And the response property "$.status" is 400
@@ -165,7 +165,7 @@ Feature: CAMARA QoS Provisioning API, v0.3.0 - Operation revokeQosAssignment
165165
# Errors 404
166166

167167
@qos_provisioning_revokeQosAssignment_404.1_not_found
168-
Scenario: assignmentId of a no existing QoS assignment
168+
Scenario: assignmentId of a non-existing QoS assignment
169169
Given the path parameter "assignmentId" is set to a random UUID
170170
When the request "revokeQosAssignment" is sent
171171
Then the response status code is 404

code/Test_definitions/quality-on-demand-createSession.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Feature: CAMARA Quality On Demand API, v1.1.0 - Operation createSession
1212
# * A device object identifying a device commercialized by the implementation for which the service is not applicable, if any.
1313
#
1414

15-
# References to OAS spec schemas refer to schemas specifies in quality-on-demand.yaml
15+
# References to OAS spec schemas refer to schemas specified in quality-on-demand.yaml
1616

1717
Background: Common createSession setup
1818
Given an environment at "apiRoot"
@@ -229,7 +229,7 @@ Feature: CAMARA Quality On Demand API, v1.1.0 - Operation createSession
229229

230230
# The maximum is considered in the schema so a generic schema validator may fail and generate a 400 INVALID_ARGUMENT without further distinction,
231231
# and both could be accepted
232-
@quality_on_demand_createSession_400.6_out_of_range_port
232+
@quality_on_demand_createSession_400.5_out_of_range_port
233233
Scenario Outline: Out of range port
234234
Given the request body property "<port_property>" is set to a value not between between 0 and 65535
235235
When the request "createSession" is sent
@@ -251,7 +251,7 @@ Feature: CAMARA Quality On Demand API, v1.1.0 - Operation createSession
251251
| $.applicationServerPorts.ports[*] |
252252

253253
# PLAIN and REFRESHTOKEN are considered in the schema so INVALID_ARGUMENT is not expected
254-
@quality_on_demand_createSession_400.7_invalid_sink_credential
254+
@quality_on_demand_createSession_400.6_invalid_sink_credential
255255
Scenario Outline: Invalid credential
256256
Given the request body property "$.sinkCredential.credentialType" is set to "<unsupported_credential_type>"
257257
When the request "createSession" is sent
@@ -269,7 +269,7 @@ Feature: CAMARA Quality On Demand API, v1.1.0 - Operation createSession
269269

270270
# Only "bearer" is considered in the schema so a generic schema validator may fail and generate a 400 INVALID_ARGUMENT without further distinction,
271271
# and both could be accepted
272-
@quality_on_demand_createSession_400.8_sink_credential_invalid_token
272+
@quality_on_demand_createSession_400.7_sink_credential_invalid_token
273273
Scenario: Invalid token
274274
Given the request body property "$.sinkCredential.accessTokenType" is set to a value other than "bearer"
275275
When the request "createSession" is sent
@@ -280,7 +280,7 @@ Feature: CAMARA Quality On Demand API, v1.1.0 - Operation createSession
280280
And the response property "$.code" is "INVALID_TOKEN" or "INVALID_ARGUMENT"
281281
And the response property "$.message" contains a user friendly text
282282

283-
@quality_on_demand_createSession_400.9_non_existent_qos_profile
283+
@quality_on_demand_createSession_400.8_non_existent_qos_profile
284284
Scenario: Error response for invalid qos profile in request body
285285
Given the request body property "qosProfile" is set to a non existent qos Profile
286286
When the request "createSession" is sent
@@ -291,7 +291,7 @@ Feature: CAMARA Quality On Demand API, v1.1.0 - Operation createSession
291291
And the response property "$.code" is "INVALID_ARGUMENT"
292292
And the response property "$.message" contains a user friendly text
293293

294-
@quality_on_demand_createSession_400.10_invalid_duration
294+
@quality_on_demand_createSession_400.9_invalid_duration
295295
Scenario: Error response when duration is not valid for selected qos profile
296296
Given the request body property "duration" is set to an invalid duration for the selected qosProfile
297297
When the request "createSession" is sent

code/Test_definitions/quality-on-demand-deleteSession.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Feature: CAMARA Quality On Demand API, v1.1.0 - Operation deleteSession
99
# * The sessionId of an existing session with status "AVAILABLE", and with provided values for "sink" and "sinkCredential".
1010
# * The sessionId of an existing session with status "UNAVAILABLE", and with provided values for "sink" and "sinkCredential".
1111
#
12-
# References to OAS spec schemas refer to schemas specifies in quality-on-demand.yaml
12+
# References to OAS spec schemas refer to schemas specified in quality-on-demand.yaml
1313

1414
Background: Common deleteSession setup
1515
Given an environment at "apiRoot"
@@ -125,7 +125,7 @@ Feature: CAMARA Quality On Demand API, v1.1.0 - Operation deleteSession
125125
# Errors 404
126126

127127
@quality_on_demand_deleteSession_404.1_not_found
128-
Scenario: sessionId of a no existing QoS session
128+
Scenario: sessionId of a non-existing QoS session
129129
Given the path parameter "sessionId" is set to a random UUID
130130
When the request "deleteSession" is sent
131131
Then the response status code is 404

code/Test_definitions/quality-on-demand-extendQosSessionDuration.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Feature: CAMARA Quality On Demand API, v1.1.0 - Operation extendQosSessionDurati
88
# * The sessionId of an existing session with qosStatus "AVAILABLE"
99
# * The sessionId of an existing session with qosStatus "UNAVAILABLE"
1010
#
11-
# References to OAS spec schemas refer to schemas specifies in quality-on-demand.yaml
11+
# References to OAS spec schemas refer to schemas specified in quality-on-demand.yaml
1212

1313
Background: Common extendQosSessionDuration setup
1414
Given an environment at "apiRoot"
@@ -62,7 +62,7 @@ Feature: CAMARA Quality On Demand API, v1.1.0 - Operation extendQosSessionDurati
6262

6363
@quality_on_demand_extendQosSessionDuration_400.1_schema_not_compliant
6464
Scenario: Invalid Argument. Generic Syntax Exception
65-
Given the request body is set to any value which is not compliant with the schema at "/components/schemas/extendQosSessionDuration"
65+
Given the request body is set to any value which is not compliant with the schema at "/components/schemas/ExtendSessionDuration"
6666
When the request "extendQosSessionDuration" is sent
6767
Then the response status code is 400
6868
And the response header "x-correlator" has same value as the request header "x-correlator"
@@ -170,7 +170,7 @@ Feature: CAMARA Quality On Demand API, v1.1.0 - Operation extendQosSessionDurati
170170
# Errors 404
171171

172172
@quality_on_demand_extendQosSessionDuration_404.1_not_found
173-
Scenario: sessionId of a no existing QoS session
173+
Scenario: sessionId of a non-existing QoS session
174174
Given the path parameter "sessionId" is set to a random UUID
175175
And the request body is set to a valid request body
176176
When the request "extendQosSessionDuration" is sent

code/Test_definitions/quality-on-demand-getSession.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Feature: CAMARA Quality On Demand API, v1.1.0 - Operation getSession
77
# Testing assets:
88
# * The sessionId of an existing QoS session, and the request properties used for createSession
99
#
10-
# References to OAS spec schemas refer to schemas specifies in quality-on-demand.yaml
10+
# References to OAS spec schemas refer to schemas specified in quality-on-demand.yaml
1111

1212
Background: Common getSession setup
1313
Given an environment at "apiRoot"
@@ -49,7 +49,7 @@ Feature: CAMARA Quality On Demand API, v1.1.0 - Operation getSession
4949
And the response header "Content-Type" is "application/json"
5050
And the response header "x-correlator" has same value as the request header "x-correlator"
5151
And the response body complies with the OAS schema at "#/components/schemas/SessionInfo"
52-
And the response property "$.status" is "UNAVAILABLE"
52+
And the response property "$.qosStatus" is "UNAVAILABLE"
5353

5454
# Errors 400
5555

@@ -130,7 +130,7 @@ Feature: CAMARA Quality On Demand API, v1.1.0 - Operation getSession
130130
# Errors 404
131131

132132
@quality_on_demand_getSession_404.1_not_found
133-
Scenario: sessionId of a no existing QoS session
133+
Scenario: sessionId of a non-existing QoS session
134134
Given the path parameter "sessionId" is set to a random UUID
135135
When the request "getSession" is sent
136136
Then the response status code is 404

code/Test_definitions/quality-on-demand-retrieveSessionsByDevice.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Feature: CAMARA Quality On Demand API, v1.1.0 - Operation retrieveSessionsByDevi
1111
# * A device object applicable for Quality On Demand service with NO QoS Sessions associated
1212
# * A device object identifying a device commercialized by the implementation for which the service is not applicable, if any.
1313
#
14-
# References to OAS spec schemas refer to schemas specifies in quality-on-demand.yaml
14+
# References to OAS spec schemas refer to schemas specified in quality-on-demand.yaml
1515

1616
Background: Common retrieveSessionsByDevice setup
1717
Given an environment at "apiRoot"
@@ -141,7 +141,7 @@ Feature: CAMARA Quality On Demand API, v1.1.0 - Operation retrieveSessionsByDevi
141141

142142
@quality_on_demand_retrieveSessionsByDevice_400.1_schema_not_compliant
143143
Scenario: Invalid Argument. Generic Syntax Exception
144-
Given the request body is set to any value which is not compliant with the schema at "/components/schemas/retrieveSessionsByDevice"
144+
Given the request body is set to any value which is not compliant with the schema at "/components/schemas/RetrieveSessionsInput"
145145
When the request "retrieveSessionsByDevice" is sent
146146
Then the response status code is 400
147147
And the response header "x-correlator" has same value as the request header "x-correlator"

0 commit comments

Comments
 (0)