Improve validation for invalid files in schemas dir 92/99892/1
authorOleksandrZharov <Oleksandr.Zharov@pantheon.tech>
Wed, 2 Mar 2022 14:33:24 +0000 (15:33 +0100)
committerTomas Cere <tomas.cere@pantheon.tech>
Thu, 3 Mar 2022 12:51:53 +0000 (12:51 +0000)
commitdcf5b394f55292ff87aad9a78388eec2a7a2de8f
treeac6f74191f53642c8eeb7c79f3574776bf34bdc2
parented024cc0db69c3f026f5e109af680e162a484572
Improve validation for invalid files in schemas dir

Previous validation of schema files was not very specific if
there was problems with files. Now there is more direct message if
something wrong with yang files.

Removed logic that rename not yang files into .yang in schema dir.
We are storing yang models only in .yang files. Therefore all other
files should be rejected.

JIRA: NETCONF-707
Change-Id: Iad4b91fd534eef8ea134a9463de3dab618fe969e
Signed-off-by: OleksandrZharov <Oleksandr.Zharov@pantheon.tech>
(cherry picked from commit 0a1d0c2b779ae95ae8b0e67f02c820cb89402b30)
netconf/tools/netconf-testtool/src/main/java/org/opendaylight/netconf/test/tool/NetconfDeviceSimulator.java
netconf/tools/netconf-testtool/src/main/java/org/opendaylight/netconf/test/tool/TesttoolParameters.java