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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • PUP 4.3.0, PUP 4.3.1
    • None
    • None
    • RSpec Testing

    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

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support