Skip to content

Commit

Permalink
Update qod-provisioning-createProvisioning.feature
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-murray authored Jan 14, 2025
1 parent 4baab8a commit 15090f2
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,12 @@ Feature: CAMARA QoD Provisioning API, vwip - Operation createProvisioning
And the response property "$.code" is "INVALID_ARGUMENT"
And the response property "$.message" contains a user friendly text

# Note that device schema validation errors (if any) should be thrown even if a 3-legged access token is being used
@qod_provisioning_createProvisioning_400.5_device_identifiers_not_schema_compliant
# Test every type of identifier even if not supported by the implementation
Scenario Outline: Some device identifier value does not comply with the schema
Given the request body property "<device_identifier>" does not comply with the OAS schema at "<oas_spec_schema>"
And a 2-legged or 3-legged access token is being used
When the request "createProvisioning" is sent
Then the response status code is 400
And the response header "x-correlator" has same value as the request header "x-correlator"
Expand All @@ -138,14 +140,14 @@ Feature: CAMARA QoD Provisioning API, vwip - Operation createProvisioning
Examples:
| device_identifier | oas_spec_schema |
| $.device.phoneNumber | /components/schemas/PhoneNumber |
| $.device.ipv4Address | /components/schemas/NetworkAccessIdentifier |
| $.device.ipv6Address | /components/schemas/DeviceIpv4Addr |
| $.device.networkIdentifier | /components/schemas/DeviceIpv6Address |
| $.device.ipv4Address | /components/schemas/DeviceIpv4Addr |
| $.device.ipv6Address | /components/schemas/DeviceIpv6Address |
| $.device.networkIdentifier | /components/schemas/NetworkAccessIdentifier |

# The maximum is considered in the schema so a generic schema validator may fail and generate a 400 INVALID_ARGUMENT without further distinction, and both could be accepted
@qod_provisioning_createProvisioning_400.6_out_of_range_port
Scenario: Out of range port
Given the request body property "$.device.ipv4Address.publicPort" is set to a value not between 0 and 65536
Given the request body property "$.device.ipv4Address.publicPort" is set to a value not between 0 and 65535
When the request "createProvisioning" is sent
Then the response status code is 400
And the response header "x-correlator" has same value as the request header "x-correlator"
Expand Down

0 comments on commit 15090f2

Please sign in to comment.