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

chocolatey: all spec tests failing

    XMLWordPrintable

    Details

    • Type: CI Blocker
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: chocolatey
    • Labels:
      None
    • QA Risk Assessment:
      Needs Assessment

      Description

      Every single spec test is failing on jenkins for Chocolatey module

      https://jenkins-master-prod-1.delivery.puppetlabs.net/view/modules/view/windows/view/chocolatey/view/master/job/forge-windows_puppetlabs-chocolatey_intn-module_master/24/

      Ruby 2.1.9/2.3.1 and Puppet 4.7.1 and 4.10.4

      17:05:42 Failures:
      17:05:42 
      17:05:42   1) Chocolatey Common .chocolatey_command should find chocolatey install location based on PuppetX::Chocolatey::ChocolateyInstall
      17:05:42      Failure/Error: PuppetX::Chocolatey::ChocolateyCommon.chocolatey_command.should == 'c:\dude\choco.exe'
      17:05:42 
      17:05:42        expected: "c:\\dude\\choco.exe"
      17:05:42             got: "choco.exe" (using ==)
      17:05:42      # ./spec/unit/puppet_x/chocolatey/chocolatey_common_spec.rb:20:in `block (3 levels) in <top (required)>'
      17:05:42 
      17:05:42   2) Chocolatey Common .chocolatey_command should find chocolatey install location based on default location
      17:05:42      Failure/Error: PuppetX::Chocolatey::ChocolateyCommon.chocolatey_command.should == "#{ENV['ALLUSERSPROFILE']}\\chocolatey\\choco.exe"
      17:05:42 
      17:05:42        expected: "C:\\ProgramData\\chocolatey\\choco.exe"
      17:05:42             got: "choco.exe" (using ==)
      17:05:42      # ./spec/unit/puppet_x/chocolatey/chocolatey_common_spec.rb:29:in `block (3 levels) in <top (required)>'
      17:05:42 
      17:05:42   3) Chocolatey Install Location on Windows should return install path from registry if it exists
      17:05:42      Failure/Error: PuppetX::Chocolatey::ChocolateyInstall.install_path.must == expected_value
      17:05:42 
      17:05:42        expected: "C:\\somewhere"
      17:05:42             got: "c:\\blah" (using ==)
      17:05:42      # ./spec/unit/puppet_x/chocolatey/chocolatey_install_spec.rb:12:in `block (3 levels) in <top (required)>'
      17:05:42 
      17:05:42   4) Chocolatey Install Location on Windows should return the environment variable ChocolateyInstall if it exists
      17:05:42      Failure/Error: Win32::Registry.any_instance.expects(:[]).with('ChocolateyInstall').raises(Win32::Registry::Error.new(2), 'file not found yo')
      17:05:42 
      17:05:42      Mocha::ExpectationError:
      17:05:42        not all expectations were satisfied
      17:05:42        unsatisfied expectations:
      17:05:42        - expected exactly once, not yet invoked: #<AnyInstance:Win32::Registry>.[]('ChocolateyInstall')
      17:05:42        satisfied expectations:
      17:05:42        - allowed any number of times, not yet invoked: #<Puppet::Util::Feature:0x34fd4b0>.root?(any_parameters)
      17:05:42      # ./spec/unit/puppet_x/chocolatey/chocolatey_install_spec.rb:16:in `block (3 levels) in <top (required)>'
      17:05:42 
      17:05:42   5) Chocolatey Install Location on Windows should return nil if the environment variable does not exist
      17:05:42      Failure/Error: Win32::Registry.any_instance.expects(:[]).with('ChocolateyInstall').raises(Win32::Registry::Error.new(2), 'file not found yo')
      17:05:42 
      17:05:42      Mocha::ExpectationError:
      17:05:42        not all expectations were satisfied
      17:05:42        unsatisfied expectations:
      17:05:42        - expected exactly once, not yet invoked: #<AnyInstance:Win32::Registry>.[]('ChocolateyInstall')
      17:05:42        satisfied expectations:
      17:05:42        - allowed any number of times, not yet invoked: #<Puppet::Util::Feature:0x34fd4b0>.root?(any_parameters)
      17:05:42      # ./spec/unit/puppet_x/chocolatey/chocolatey_install_spec.rb:25:in `block (3 levels) in <top (required)>'
      17:05:42 
      17:05:42   6) Chocolatey Version on Windows when Chocolatey is installed should return the value from running choco -v
      17:05:42      Failure/Error: PuppetX::Chocolatey::ChocolateyVersion.version.must == expected_value
      17:05:42 
      17:05:42        expected: "1.2.3"
      17:05:42             got: nil (using ==)
      17:05:42      # ./spec/unit/puppet_x/chocolatey/chocolatey_version_spec.rb:18:in `block (4 levels) in <top (required)>'
      17:05:42 
      17:05:42   7) Chocolatey Version on Windows when Chocolatey is installed should handle cleaning up spaces
      17:05:42      Failure/Error: PuppetX::Chocolatey::ChocolateyVersion.version.must == expected_value
      17:05:42 
      17:05:42        expected: "1.2.3"
      17:05:42             got: nil (using ==)
      17:05:42      # ./spec/unit/puppet_x/chocolatey/chocolatey_version_spec.rb:25:in `block (4 levels) in <top (required)>'
      17:05:42 
      17:05:42   8) Chocolatey Version on Windows when Chocolatey is installed should handle older versions of choco
      17:05:42      Failure/Error: PuppetX::Chocolatey::ChocolateyVersion.version.must == expected_value
      17:05:42 
      17:05:42        expected: "1.2.3"
      17:05:42             got: nil (using ==)
      17:05:42      # ./spec/unit/puppet_x/chocolatey/chocolatey_version_spec.rb:32:in `block (4 levels) in <top (required)>'
      17:05:42 
      17:05:42   9) Chocolatey Version on Windows when Chocolatey is installed should handle other messages that return with version call
      17:05:42      Failure/Error: PuppetX::Chocolatey::ChocolateyVersion.version.must == expected_value
      17:05:42 
      17:05:42        expected: "1.2.3"
      17:05:42             got: nil (using ==)
      17:05:42      # ./spec/unit/puppet_x/chocolatey/chocolatey_version_spec.rb:39:in `block (4 levels) in <top (required)>'
      17:05:42 
      17:05:42   10) Chocolatey Version on Windows when Chocolatey is installed should handle a trailing line break
      17:05:42       Failure/Error: PuppetX::Chocolatey::ChocolateyVersion.version.must == expected_value
      17:05:42 
      17:05:42         expected: "1.2.3"
      17:05:42              got: nil (using ==)
      17:05:42       # ./spec/unit/puppet_x/chocolatey/chocolatey_version_spec.rb:46:in `block (4 levels) in <top (required)>'
      17:05:42 
      17:05:42   11) Chocolatey Version on Windows when Chocolatey is installed should handle 0.9.8.33 of choco
      17:05:42       Failure/Error: PuppetX::Chocolatey::ChocolateyVersion.version.must == expected_value
      17:05:42 
      17:05:42         expected: "1.2.3"
      17:05:42              got: nil (using ==)
      17:05:42       # ./spec/unit/puppet_x/chocolatey/chocolatey_version_spec.rb:59:in `block (4 levels) in <top (required)>'
      17:05:42 
      17:05:42   12) Chocolatey Version on Windows When Chocolatey is not installed should return nil
      17:05:42       Failure/Error: File.expects(:exist?).with('\choco.exe').returns(false)
      17:05:42 
      17:05:42       Mocha::ExpectationError:
      17:05:42         not all expectations were satisfied
      17:05:42         unsatisfied expectations:
      17:05:42         - expected exactly once, not yet invoked: File.exist?('\\choco.exe')
      17:05:42         satisfied expectations:
      17:05:42         - allowed any number of times, not yet invoked: #<Puppet::Util::Feature:0x34fd4b0>.root?(any_parameters)
      17:05:42         - expected exactly once, invoked once: PuppetX::Chocolatey::ChocolateyInstall.install_path(any_parameters)
      17:05:42       # ./spec/unit/puppet_x/chocolatey/chocolatey_version_spec.rb:66:in `block (4 levels) in <top (required)>'
      17:05:42 
      17:05:42 Finished in 21.5 seconds (files took 3.02 seconds to load)
      17:05:42 254 examples, 12 failures
      17:05:42 
      17:05:42 Failed examples:
      17:05:42 
      17:05:42 rspec ./spec/unit/puppet_x/chocolatey/chocolatey_common_spec.rb:16 # Chocolatey Common .chocolatey_command should find chocolatey install location based on PuppetX::Chocolatey::ChocolateyInstall
      17:05:42 rspec ./spec/unit/puppet_x/chocolatey/chocolatey_common_spec.rb:23 # Chocolatey Common .chocolatey_command should find chocolatey install location based on default location
      17:05:42 rspec ./spec/unit/puppet_x/chocolatey/chocolatey_install_spec.rb:8 # Chocolatey Install Location on Windows should return install path from registry if it exists
      17:05:42 rspec ./spec/unit/puppet_x/chocolatey/chocolatey_install_spec.rb:15 # Chocolatey Install Location on Windows should return the environment variable ChocolateyInstall if it exists
      17:05:42 rspec ./spec/unit/puppet_x/chocolatey/chocolatey_install_spec.rb:24 # Chocolatey Install Location on Windows should return nil if the environment variable does not exist
      17:05:42 rspec ./spec/unit/puppet_x/chocolatey/chocolatey_version_spec.rb:14 # Chocolatey Version on Windows when Chocolatey is installed should return the value from running choco -v
      17:05:42 rspec ./spec/unit/puppet_x/chocolatey/chocolatey_version_spec.rb:21 # Chocolatey Version on Windows when Chocolatey is installed should handle cleaning up spaces
      17:05:42 rspec ./spec/unit/puppet_x/chocolatey/chocolatey_version_spec.rb:28 # Chocolatey Version on Windows when Chocolatey is installed should handle older versions of choco
      17:05:42 rspec ./spec/unit/puppet_x/chocolatey/chocolatey_version_spec.rb:35 # Chocolatey Version on Windows when Chocolatey is installed should handle other messages that return with version call
      17:05:42 rspec ./spec/unit/puppet_x/chocolatey/chocolatey_version_spec.rb:42 # Chocolatey Version on Windows when Chocolatey is installed should handle a trailing line break
      17:05:42 rspec ./spec/unit/puppet_x/chocolatey/chocolatey_version_spec.rb:49 # Chocolatey Version on Windows when Chocolatey is installed should handle 0.9.8.33 of choco
      17:05:42 rspec ./spec/unit/puppet_x/chocolatey/chocolatey_version_spec.rb:69 # Chocolatey Version on Windows When Chocolatey is not installed should return nil
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            glenn.sarti Glenn Sarti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support