aquality-automation / aquality-tracking

Apache License 2.0
5 stars 2 forks source link

[BUG] [API] /api/public/test/create-or-update does not update list of suites #105

Closed paveliam closed 4 years ago

paveliam commented 4 years ago

Describe the bug Create OR Update Test endpoint (/api/public/test/create-or-update) does not update list of suites.

To Reproduce Steps to reproduce the behavior:

  1. Create test without suites: {"id":null,"name":"test","project_id":1,"suites":[]}
  2. Try to update test: {"id":1,"name":"test","project_id":1,"suites":[{"id":1,"name":"test","project_id":1}]}

Actual result List of suites is empty - response: {"id":1,"name":"test","project_id":1,"suites":[]}

Expected behavior Test added to suite with ID 1.

Additional info: