Throws RDE exception in case model was not found 08/108408/4
authorOleksandr Zharov <oleksandr.zharov@pantheon.tech>
Thu, 5 Oct 2023 12:19:57 +0000 (14:19 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Tue, 17 Oct 2023 09:03:10 +0000 (09:03 +0000)
commit15cca98bcafa1aca61481113193a77a97dbeebe5
tree2bc2abd735fb7494a78c8f29711377e7d0262d7d
parent7e96a9822cabf7ce13f21bc05df33c3497113b07
Throws RDE exception in case model was not found

Added proper response in case model was not found using
RestconfDocumentedException's DATA_MISSING error tag.

Added unit tests to cover this cases.

JIRA: NETCONF-1159
Change-Id: Ife5b3836c8c2d974963d80df4d497ec019a83cc1
Signed-off-by: Oleksandr Zharov <oleksandr.zharov@pantheon.tech>
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
(cherry picked from commit e17f784409f8d6a42a9529ef45423dfcd06c39f7)
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/ParserIdentifier.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfSchemaServiceTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/ParserIdentifierTest.java