Validating a tool

Validate a tool in the Cloudera Agent Studio tool editor before publishing detects schema, syntax, and runtime issues so your agent workflow does not fail during execution.

During validation, Agent Studio checks the tool in your authoring workspace and displays a validation report. When you publish a tool, Agent Studio validates the tool automatically. If the report contains errors, publishing stops, and the report displays the option to skip validation and publish anyway. Saving a draft does not validate the tool.

  1. Launch the Cloudera Agent Studio console.
  2. In the left navigation pane, under Assets, click Tool Catalog.
    The Tools page is displayed.
  3. In the row of the tool, click the Actions menu, and then click Edit.
    If an authoring session is not ready, a progress dialog opens. Wait for the dialog to close.
    The tool editor page is displayed.
  4. In the tool editor, click Validate.
    If the validation cannot run, a message is displayed, for example Validation failed.
    When the validation completes, the Validation report dialog opens.
  5. Review the report.
    The report starts with one of the following messages:
    • All checks passed indicate that the tool has no errors. If the tool has no issues, the report also shows the text No issues reported.
    • Validation found issues indicates that the report contains at least one error.
    Each issue in the report displays the following information:
    • An Error or Warning label.
    • The identifier of the rule that the tool does not meet.
    • The path of the file that contains the issue.
    • A message that describes the issue.
  6. Click Close.

The Validation report dialog indicates whether the tool passes validation. An error marks the tool as not passing. A warning does not mark the tool as not passing and does not block publishing.