Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: BOLT 1.18.0
    • Component/s: None
    • Labels:
    • Template:
    • Epic Link:
    • Sprint:
      Bolt Kanban
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      YAML plan validation has been improved to catch and alert on syntax errors before plan execution.
    • QA Risk Assessment:
      Needs Assessment

      Description

      When a plan is loaded we should perform the following validation:

      • All required keys for all steps are present
      • Puppet code snippets parse as valid code
      • No unexpected keys (for each step as well as top level plan)
      • unique and valid step/parameter names (already implemented in 1.15.0)

      Note that when using CLI plan is loaded twice. Once when we do parameter validation https://github.com/puppetlabs/bolt/blob/7751b4e82cd723527a137560d00f9be29771aeaf/lib/bolt/cli.rb#L271

      And again when it is run https://github.com/puppetlabs/bolt/blob/7751b4e82cd723527a137560d00f9be29771aeaf/lib/bolt/cli.rb#L379

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                cas.donoghue Cas Donoghue
                Reporter:
                alex Alex Dreyer
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: