-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.feature
More file actions
14 lines (14 loc) · 912 Bytes
/
tests.feature
File metadata and controls
14 lines (14 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
@getPhoneNumberRoamingInfo_E19.01_InvalidCountryCode
@expand-by-user-type
Scenario: Check that the response returns an error when the request does not provide a valid ISO 3166-1 alpha-2 country code
Given a user to test "getPhoneNumberRoamingInfo"
And the path parameter "phone_number" is set to a phone number of this user
And a valid Kernel access_token
And the context variable "country_code" is set to a value not compliant with ISO 3166-1 alpha-2 country code
And the query params are set to
| param_name | param_value |
| country_code | [CONTEXT:country_code] |
When I request "getPhoneNumberRoamingInfo" through Kernel API GW
Then the response status code is "400"
And the API returns the error code "ROAMING_INFO.INVALID_COUNTRY_CODE"
And the API returns a human readable error message