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

$puppetversion and other top level variables not present when running tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 4.3.0, PUP 4.3.1
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      RSpec Testing

    • Template:

      Description

      Seems 4.3.0 and 4.3.1 versions are affected:

      Failure/Error: it

      {should compile}

      error during compilation: Evaluation Error: Error while evaluating a Function Call, 'versioncmp' parameter 'a' expects a String value, got Undef at ...

      Example 1:

      if (versioncmp($::puppetversion, '3') != -1) {
          ...
      }
      

      Example 2:

      if versioncmp($::puppetversion, '4.0.0') >= 0 {
          ...
      }
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            cdenneen Chris Denneen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support