StreetCode
StreetCode copied to clipboard
[API][Chronology block] The timelineId and modelState keys accept invalid data when creating a timeline card
trafficstars
Environment: all Reproducible: always Build found: a7d807f
Preconditions
- Open Postman.
- Choose the POST method.
- Enter valid endpoints.
- Fill in all mandatory keys for creating Streetcode.
| Issue | Steps to reproduce | Steps to reproduce | Expected result | Status |
|---|---|---|---|---|
| 1. Key timelineItems modelState | 1. In "timelineItems" block key "modelState" enter: 1.1. 1, 1.2. 2, 1.3. 4, 1.4. -1. 2. Click the button Send. |
'200 OK' Streetcode and new historical context are created | The response returns a '400 Bad Request' status with the message 'When creating the timeline card "modelState": 0'. | Fail |
| 2. Key historicalContexts timelineId | 1. In "historicalContexts" block key "timelineId" enter: 1.1. 1, 1.2. -1. 2. Click the button Send. |
'200 OK' Streetcode and new historical context are created | The response returns a '400 Bad Request' status with the message 'When creating the timeline card "timelineId": 0'. | Fail |
| 3. Key historicalContexts modelState | 1. In "historicalContexts" block key "modelState" enter: 1.1. 1, 1.2. 2, 1.3. 4, 1.4. -1. 2. Click the button Send. |
'200 OK' Streetcode and new historical context are created | The response returns a '400 Bad Request' status with the message 'When creating the timeline card "modelState": 0'. | Fail |
User story: #124