connexin / connexin-RADIUS3-REST-Tests

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

Creating transient packages results in syntax error. #7

Open MartinSpamer opened 5 years ago

MartinSpamer commented 5 years ago

Actual Behaviour Given the json content

{  "Transient Package": {
    "user_id": 1,
    "start": {},
    "end": {},
    "precedence": 5,
    "mode": "Override",
    "speed_up": 60,
    "speed_down": 60,
    "upload_limit": 250,
    "download_limit": 250
  } }

When the json is posted to /transient_package

Expected Results The response should be

{  "Transient Package": {
    "id": 1,
    "user_id": 1,
    "start": {},
    "end": {},
    "precedence": 5,
    "mode": "Override",
    "speed_up": 60,
    "speed_down": 60,
    "upload_limit": 250,
    "download_limit": 250
  }
}

Actual Results

{
  "Errors": {
    "syntax": "Invalid Syntax"
  }
}