Skip to content

Commit f179fb1

Browse files
Align API-Testing with Error codes
Align API-Testing with Error codes: camaraproject#123
1 parent d4ca5b6 commit f179fb1

File tree

2 files changed

+0
-43
lines changed

2 files changed

+0
-43
lines changed

code/Test_definitions/call-forwarding-signal-every-forwarding.feature

-22
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ Feature: CAMARA Call Fowarwing Signal API, v1.0.0 - Operation call-forwardings
143143
Scenario: retrieve call forwarding signal on a properly formatted phone number unknown by the network
144144
Given the request body property "$.phoneNumber" is set to a valid phone number for which the call forwarding status could not be retrieved
145145
And the request body is set to a valid request body
146-
And "login_hint" is set to a valid phone number supported by the service with the same value as "$.phoneNumber", if valorised.
147146
When the HTTP "POST" request is sent
148147
Then the response status code is 404
149148
And the response property "$.code" is "CALL_FORWARDING.UNKNOWN_PHONE_NUMBER"
@@ -159,27 +158,6 @@ Feature: CAMARA Call Fowarwing Signal API, v1.0.0 - Operation call-forwardings
159158
And the response property "$.code" is "CALL_FORWARDING.UNKNOWN_PHONE_NUMBER"
160159
And the response property "$.message" contains a user friendly text
161160

162-
# Generic 409 error - conflict
163-
@call_forwarding_signal_409.1_already_exists
164-
Scenario: Endpoint invoked, by the same API Consumer, for a phone number whose status is already under verification
165-
Given a pending request for a given phone number
166-
And a the same phone number for a new request
167-
When the HTTP "POST" for the second request is sent before the first request gets an answer
168-
Then the response status code is 409
169-
And the response property "$.status" is 409
170-
And the response property "$.code" is "ALREADY_EXISTS"
171-
172-
# Generic 415 error - phone number format
173-
@call_forwarding_signal_415.wrong_phone_number_format
174-
Scenario: The phone number is not properly formatted
175-
Given the request body property "$.phoneNumber" is set to a not properly formatted phone number
176-
Given "login_hint" is set to a not properly formatted phone number
177-
When the HTTP "POST" request is sent
178-
Then the response status code is 415
179-
And the response property "$.status" is 415
180-
And the response property "$.code" is "UNSUPPORTED_MEDIA_TYPE"
181-
And the response property "$.message" contains a user friendly text
182-
183161
# Generic 422 error - phone number unavailable or unnecessary
184162
@call_forwarding_signal_422.phone_number_unavailable_2-legs
185163
Scenario: The "phoneNumber" parameter is not included in the request

code/Test_definitions/call-forwarding-signal-unconditional.feature

-21
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ Feature: CAMARA Call Fowarwing Signal API, v1.0.0 - Operation unconditional-cal
121121
Scenario: retrieve call forwarding signal on a properly formatted phone number unknown by the network
122122
Given the request body property "$.phoneNumber" is set to a valid phone number for which the unconditional call forwarding status could not be retrieved
123123
And the request body is set to a valid request body
124-
And "login_hint" is set to a valid phone number supported by the service with the same value as "$.phoneNumber"
125124
When the HTTP "POST" request is sent
126125
Then the response status code is 404
127126
And the response property "$.code" is "CALL_FORWARDING.UNKNOWN_PHONE_NUMBER"
@@ -137,26 +136,6 @@ Feature: CAMARA Call Fowarwing Signal API, v1.0.0 - Operation unconditional-cal
137136
And the response property "$.code" is "CALL_FORWARDING.UNKNOWN_PHONE_NUMBER"
138137
And the response property "$.message" contains a user friendly text
139138

140-
# Generic 409 error - conflict
141-
@call_forwarding_signal_409.1_already_exists
142-
Scenario: Endpoint invoked, by the same API Consumer, for a phone number whose status is already under verification
143-
Given a pending request for a given phone number
144-
And a the same phone number for a new request
145-
When the HTTP "POST" for the second request is sent before the first request gets an answer
146-
Then the response status code is 409
147-
And the response property "$.status" is 409
148-
And the response property "$.code" is "ALREADY_EXISTS"
149-
150-
# Generic 415 error - phone number format
151-
@call_forwarding_signal_415.wrong_phone_number_format
152-
Scenario: The phone number is not properly formatted
153-
Given "login_hint" is set to a not propertly formatted phone number
154-
When the HTTP "POST" request is sent
155-
Then the response status code is 415
156-
And the response property "$.status" is 415
157-
And the response property "$.code" is "UNSUPPORTED_MEDIA_TYPE"
158-
And the response property "$.message" contains a user friendly text
159-
160139
# Generic 422 error - phone number unavailable
161140
@call_forwarding_signal_422.phone_number_unavailable_2-legs
162141
Scenario: The "phoneNumber" parameter is not included in the request

0 commit comments

Comments
 (0)