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

Registry module specs fail on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: registry
    • Labels:
    • Environment:

      Windows 2008R2 x64 with Ruby 1.9.3 x86 (at the very least)

    • Template:
    • Story Points:
      1
    • Sprint:
      MODS 2014-09-03

      Description

      When running specs on Windows, the tests from /spec/defines/registry_value_spec.rb fail like the following:

        1) registry::value Attempt using with redhat should raise Puppet::Error with message matching /Unsupported OS redhat/i
           Failure/Error: expect{
             expected Puppet::Error with message matching /Unsupported OS redhat/i, got #<Puppet::Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type registry::value at line 3 on node vagrant-2008r2.localdomain> with backtrace:
               # ./spec/defines/registry_value_spec.rb:12:in `block (5 levels) in <top (required)>'
               # ./spec/defines/registry_value_spec.rb:11:in `block (4 levels) in <top (required)>'
           # ./spec/defines/registry_value_spec.rb:11:in `block (4 levels) in <top (required)>'
       
        2) registry::value Attempt using with ubuntu should raise Puppet::Error with message matching /Unsupported OS ubuntu/i
           Failure/Error: expect{
             expected Puppet::Error with message matching /Unsupported OS ubuntu/i, got #<Puppet::Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type registry::value at line 3 on node vagrant-2008r2.localdomain> with backtrace:
               # ./spec/defines/registry_value_spec.rb:12:in `block (5 levels) in <top (required)>'
               # ./spec/defines/registry_value_spec.rb:11:in `block (4 levels) in <top (required)>'
           # ./spec/defines/registry_value_spec.rb:11:in `block (4 levels) in <top (required)>'
       
        3) registry::value Attempt using with debian should raise Puppet::Error with message matching /Unsupported OS debian/i
           Failure/Error: expect{
             expected Puppet::Error with message matching /Unsupported OS debian/i, got #<Puppet::Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type registry::value at line 3 on node vagrant-2008r2.localdomain> with backtrace:
               # ./spec/defines/registry_value_spec.rb:12:in `block (5 levels) in <top (required)>'
               # ./spec/defines/registry_value_spec.rb:11:in `block (4 levels) in <top (required)>'
           # ./spec/defines/registry_value_spec.rb:11:in `block (4 levels) in <top (required)>'
       
      Finished in 4.27 seconds
      97 examples, 3 failures, 13 pending
      

      The environment is Windows 2008R2 / Ruby 1.9.3 with the following gems

      *** LOCAL GEMS ***
       
      bundler (1.6.3)
      coderay (1.1.0)
      diff-lcs (1.2.5)
      docile (1.1.5)
      facter (2.0.2 x86-mingw32)
      ffi (1.9.0 x86-mingw32)
      hiera (1.3.4)
      highline (1.6.21)
      json_pure (1.8.1)
      metaclass (0.0.4)
      method_source (0.8.2)
      minitar (0.5.4)
      mocha (0.10.5)
      multi_json (1.10.1)
      net-ssh (2.9.1)
      pry (0.10.0 i386-mingw32)
      puppet (3.6.1 x86-mingw32)
      puppet-lint (0.3.2)
      puppet-syntax (1.3.0)
      puppetlabs_spec_helper (0.8.0)
      rake (10.3.2)
      rgen (0.6.6)
      rspec (2.14.0)
      rspec-core (2.14.8)
      rspec-expectations (2.14.0)
      rspec-mocks (2.14.6)
      rspec-puppet (1.0.1)
      serverspec (1.7.0)
      simplecov (0.9.0)
      simplecov-html (0.8.0)
      slop (3.6.0)
      specinfra (1.25.0)
      sys-admin (1.5.6 x86-mingw32)
      win32-api (1.4.8 x86-mingw32)
      win32-dir (0.4.9)
      win32-eventlog (0.5.3)
      win32-process (0.6.6)
      win32-security (0.1.4)
      win32-service (0.7.2 x86-mingw32)
      win32-taskscheduler (0.2.2)
      win32console (1.3.2 x86-mingw32)
      windows-api (0.4.2)
      windows-pr (1.2.3)
      

      However, these specs pass in Jenkins, when run under Linux. (I can also get them to fail on OSX FWIW).

      The gems installed there are perhaps different, and responsible for the differences:

      Fetching source index from http://rubygems.delivery.puppetlabs.net/
      Installing rake (10.3.2) 
      Installing CFPropertyList (2.2.8) 
      Installing addressable (2.3.6) 
      Installing archive-tar-minitar (0.5.2) 
      Installing extlib (0.9.16) 
      Installing multi_json (1.10.1) 
      Installing autoparse (0.3.3) 
      Installing json (1.8.1) 
      Installing nokogiri (1.5.11) 
      Installing aws-sdk (1.42.0) 
      Installing builder (3.2.2) 
      Installing excon (0.39.4) 
      Installing formatador (0.2.5) 
      Installing mime-types (1.25.1) 
      Installing net-ssh (2.9.1) 
      Installing net-scp (1.2.1) 
      Installing fog-core (1.23.0) 
      Installing fog-json (1.0.0) 
      Installing inflecto (0.0.2) 
      Installing fog-brightbox (0.2.0) 
      Installing fog-softlayer (0.3.13) 
      Installing ipaddress (0.8.0) 
      Installing fog (1.23.0) 
      Installing minitar (0.5.4) 
      Installing thor (0.19.1) 
      Installing blimpy (0.6.7) 
      Installing docker-api (1.13.2) 
      Installing fission (0.5.0) 
      Installing multipart-post (2.0.0) 
      Installing faraday (0.9.0) 
      Installing jwt (1.0.0) 
      Installing launchy (2.4.2) 
      Installing retriable (1.4.1) 
      Installing signet (0.5.1) 
      Installing uuidtools (2.1.4) 
      Installing google-api-client (0.7.1) 
      Installing hocon (0.0.4) 
      Installing inifile (2.0.2) 
      Installing trollop (2.0) 
      Installing rbvmomi (1.8.1) 
      Installing unf_ext (0.0.6) 
      Installing unf (0.1.4) 
      Installing beaker (1.17.1) 
      Installing coderay (1.1.0) 
      Installing diff-lcs (1.2.5) 
      Installing docile (1.1.5) 
      Installing facter (2.1.0) 
      Installing json_pure (1.8.1) 
      Installing hiera (1.3.4) 
      Installing highline (1.6.21) 
      Installing metaclass (0.0.4) 
      Installing method_source (0.8.2) 
      Installing mocha (0.10.5) 
      Installing slop (3.5.0) 
      Installing pry (0.10.0) 
      Installing rgen (0.6.6) 
      Installing puppet (3.6.2) 
      Installing puppet-lint (0.3.2) 
      Installing puppet-syntax (1.3.0) 
      Installing rspec-core (2.14.8) 
      Installing rspec-expectations (2.14.5) 
      Installing rspec-mocks (2.14.6) 
      Installing rspec (2.14.1) 
      Installing rspec-puppet (1.0.1) 
      Installing puppetlabs_spec_helper (0.8.0) 
      Installing specinfra (1.25.0) 
      Installing serverspec (1.7.0) 
      Installing simplecov-html (0.8.0) 
      Installing simplecov (0.8.2) 
      Using bundler (1.3.5) 
      Your bundle is complete!
      

      Ideally all spes should pass on Windows.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              travis Travis Fields
              Reporter:
              ethan Ethan Brown
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support