Create Unit Test for POST existing data error 15/107715/6
authorlubos-cicut <lubos.cicut@pantheon.tech>
Wed, 6 Sep 2023 05:54:25 +0000 (07:54 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Fri, 19 Jan 2024 16:16:46 +0000 (16:16 +0000)
commit99546e3784aeefee84dfe8ad6f41bab11e2ef1ef
treea6cd669440095bef7f123ca6aae9cf550d919455
parentd0bc6c083fe040230b69dffb0633531528f6dbd4
Create Unit Test for POST existing data error

Successfully create resource of your choice using POST request.
When we invoke the same request again, we get the error
response 500 Internal Server Error. According to RFC 8040
we should get 409 Conflict.

Unit Test has been created to verify this issue.

JIRA: NETCONF-1130
Change-Id: Iad1254d2f058a8aa69ed1076e43823224d54c06e
Signed-off-by: lubos-cicut <lubos.cicut@pantheon.tech>
Signed-off-by: Yaroslav Lastivka <yaroslav.lastivka@pantheon.tech>
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/jaxrs/RestconfDataPostTest.java