Throws RDE exception in case model was not found 48/108248/11
authorOleksandr Zharov <oleksandr.zharov@pantheon.tech>
Thu, 5 Oct 2023 12:19:57 +0000 (14:19 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Thu, 12 Oct 2023 14:36:15 +0000 (16:36 +0200)
commite17f784409f8d6a42a9529ef45423dfcd06c39f7
treeef130b0b87d710afa68ed16bfe2ae5527725b2cc
parent820f7aba74e9f71b46da6d69611ce120feb26148
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>
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