Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-707

Netconf TestTool: Validation for invalid file in "schemas-dir" argument

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Low Low
    • 3.0.0, 2.0.15
    • None
    • netconf

      Netconf-testtool supports "schemas-dir" argument in java command line.

      If the schema directory contains a file which is not readable as text then it throws "MissingSchemaSourceException: All available providers exhausted".

      The exception is misleading, it should be thrown in existing validate method.

      In Yang tool library, it takes only Yang type file in class FilesystemSchemaSourceCache.findFileWithNewestRev(), so condition for file type ".yang" can be added in TesttoolParameters class' validation method .

            ojo Oleksandr Zharov
            nikhil.soni.lumina Nikhil Soni
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: