Skip to content

Commit

Permalink
Fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanpadams committed Nov 1, 2023
1 parent 471b23d commit c84ac10
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/main/java/gov/nasa/pds/validate/ri/CommandLineInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public CommandLineInterface() {
this.opts = new Options();

// Disabling this argument for the time being since the Search API does not yet support authorized access
// this.opts.addOption(Option.builder("A").argName("auth-file").desc(
// "file with the URL and credential content to have full (all product states) read-only access to the Registry Search API")
// .hasArg(true).longOpt("auth-api").numberOfArgs(1).optionalArg(true).build());
this.opts.addOption(Option.builder("A").argName("auth-file").desc(
"file with the URL and credential content to have full (all product states) read-only access to the Registry Search API")
.hasArg(true).longOpt("auth-api").numberOfArgs(1).optionalArg(true).build());

this.opts.addOption(Option.builder("a").argName("auth-file").desc(
"file with the URL and credential content to have full, direct read-only access to the Registry OpenSearch DB")
Expand Down Expand Up @@ -90,12 +90,11 @@ public int process(String[] args)
ctx.updateLoggers();

// Disabling this argument for the time being since the Search API does not yet support authorized access
// this.opts.addOption(Option.builder("A").argName("auth-file").desc(
// "file with the URL and credential content to have full (all product states) read-only access to the Registry Search API")
// .hasArg(true).longOpt("auth-api").numberOfArgs(1).optionalArg(true).build());
// if (!cl.hasOption("a"))
// throw new ParseException(
// "Not yet implemented. Must provide OpenSearch Registry authorization information.");
this.opts.addOption(Option.builder("A").argName("auth-file").desc(
"file with the URL and credential content to have full (all product states) read-only access to the Registry Search API")
.hasArg(true).longOpt("auth-api").numberOfArgs(1).optionalArg(true).build());
if (!cl.hasOption("a"))
throw new ParseException("Not yet implemented. Must provide OpenSearch Registry authorization information.");

if (cl.getArgList().size() < 1)
throw new ParseException("Must provide at least one LIDVID, Label file path, or manifest file path as a starting point.");
Expand Down

0 comments on commit c84ac10

Please sign in to comment.