Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-6930

Disallow multiple case and selector expression defaults by changing them to error

    Details

    • Template:
    • Acceptance Criteria:
      Hide

      given multiple selectors or case options
      when having a literal default value
      then always generate an error

      Show
      given multiple selectors or case options when having a literal default value then always generate an error
    • Epic Link:
    • Team:
      Puppet Developer Experience
    • Story Points:
      1
    • Sprint:
      PDE 2017-01-11, PDE 2017-01-25, PDE 2017-02-08
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Duplicate literal default entries in case and selector expressions will now always error. Earlier this was under the control of the --strict option.
    • QA Risk Assessment:
      No Action
    • QA Risk Assessment Reason:
      covered by unit tests; error message

      Description

      It is now possible to have more than one literal default in a Case or Selector expression. The validator does not say anything about these, and the evaluator simply picks the first matching default (if nothing else matched).

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  hunter Hunter (Hunner) Haugen
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: