openBackhaul / MicroWaveDeviceInventory

Physical and logical inventory of the MW SDN Domain
Apache License 2.0
5 stars 1 forks source link

[LinkService] PUT /core-model-1-4:network-control-domain=cache/link={uuid} doesn't show correct error response for wrong requestBody (Lab) #880

Open kmohr-soprasteria opened 8 months ago

kmohr-soprasteria commented 8 months ago

When I try to put some link data with wrong requestBody, the link is not written to the cache, but instead of an error response I get a 204:

image

I observed this behaviour in the lab.

There should be an error response. When I sent some requests in the last weeks for testcase creation I saw somehing like the following for the link-port service with an invalid requestBody (I would have excepted to see the same for the link service):

{ "code": "400", "message": "request.body['core-model-1-4:link-port'][0] should have required property 'local-id', request.body['core-model-1-4:link-port'][0] should have required property 'link-port-direction', request.body['core-model-1-4:link-port'][0] should have required property 'logical-termination-point', request.body['core-model-1-4:link-port'][0] should match exactly one schema in oneOf", "errors": [ ]