-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Expected Behaviour
- Given the valid json for a static IP range
{
"StaticIPRange": {
"reseller_id": 1,
"prefix": "10.10.0.0",
"prefix_length": 16,
"inactive_retention_period": -1
}
}
- When the json is POSTed to /static_ip_ranges
POST http://radius-dev-v3.uk.cxn-network.net/api/static_ip_ranges HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/json
accept: application/json
Content-Length: 130
Host: radius-dev-v3.uk.cxn-network.net
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Authorization: Basic bWFydGluOmNvbm5leGluMTIzNDU2
{
"StaticIPRange": {
"reseller_id": 1,
"prefix": "10.10.0.0",
"prefix_length": 16,
"inactive_retention_period": -1
}
}
Actual Behaviour
- HTTP status 200 is returned
- AND the response body includes the error
{"Errors": {"syntax": "Invalid Syntax"}}
Expected Behaviour
If the request is invalid, the HTTP status should be 400 : (Bad Request)
If the request is valid, the content should contain:
{
"StaticIPRange": {
"reseller_id": 1,
"prefix": "10.10.0.0",
"prefix_length": 16,
"inactive_retention_period": -1
}
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working