connexin / connexin-RADIUS3-REST-Tests

Automated testing suite for the RADIUS3 REST API using SOAPUI.
0 stars 0 forks source link

Creating admin with reseller #1

Open MartinSpamer opened 5 years ago

MartinSpamer commented 5 years ago

Outline When creating an admin with a reseller name using the RADIUS3 REST API, the response does not include the reseller that was included in the request.

Expected Behaviour Expectation: Create admin with reseller Given the following request with json When the request is sent to /api/admins

POST http://radius-dev-v3.uk.cxn-network.net/api/admins HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/json
accept: application/json
Content-Length: 203
Host: radius-dev-v3.uk.cxn-network.net
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Authorization: Basic bWFydGluOmNvbm5leGluMTIzNDU2

{
    "Admin": {
        "username": "Test Admin-09:44:20.255",
        "password": "cf7234b2-e57b-46df-ad73-4188c4a8060e",
        "super": true,
        "Resellers": [
            {
            "name": "Test Reseller-09:44:20.255"
            }
        ]
    }
}

Then the expected response should include the "Test Reseller-09:44:20.255".

Actual Behaviour The response does not include the reseller and id.

HTTP/1.1 200 OK
Date: Wed, 17 Apr 2019 08:44:35 GMT
Server: Apache/2.4.6 (CentOS) PHP/7.0.32
X-Powered-By: PHP/7.0.32
Content-Length: 136
Keep-Alive: timeout=5, max=99
Connection: Keep-Alive
Content-Type: application/json; charset=UTF-8

{
    "Admin": {
        "id": 30,
        "username": "Test Admin-09:44:20.255",
        "super": true,
        "Resellers": []
    }
}