Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-9657

vcsrepo: rspec tests fail with Windows path.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Won't Fix
    • PUP 5.5.11, PUP 6.0.6
    • None
    • rspec, vcsrepo
    • None
    • Needs Assessment
    • Needs Assessment

    Description

      Module Version: 2.3 and 3.0
      Puppet Version: 5.5 and 6.0
      OS Name/Version: Ubuntu 18

      Manifest inside my control repo:

          vcsrepo {'IPP POSH Profile':
            ensure   => 'present',
            provider => 'git',
            path     => 'C:\Windows\System32\WindowsPowerShell\v1.0\ipp',
            source   => 'https://gitlab-master.nvidia.com/tools/sc-platform/ipp-posh.git',
            revision => 'master',
          }
      
      

      This works, but fails on testing.

       

      Output: 

      Failures:  1) profile::base on Windows 10 should compile into a catalogue without dependency cycles
           Failure/Error: it { is_expected.to compile compile.with_all_deps }
             error during compilation: Parameter path failed on Vcsrepo[IPP POSH Profile]: Path must be absolute: C:\Windows\System32\WindowsPowerShell\v1.0\ipp (file: /home/jglenn/Projects/ipp-puppet/modules/profile/manifests/base.pp, line: 320)
           # ./spec/classes/profile_base_spec.rb:197:in `block (3 levels) in <top (required)>'
      
      

       

      Error is coming from https://github.com/puppetlabs/puppetlabs-vcsrepo/blob/ccfcd0a5b238bb1704700576bbf78cb549a1dd2d/lib/puppet/type/vcsrepo.rb#L157

       

      Desired Behavior: 

      Unit tests pass.

      Actual Behavior:

      Unit tests fail.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              thedonkdonk James Glenn
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support