diff options
author | Matt Robinson <matt@puppetlabs.com> | 2011-04-14 11:33:03 -0700 |
---|---|---|
committer | Matt Robinson <matt@puppetlabs.com> | 2011-04-14 11:51:06 -0700 |
commit | 174e87a9b150a06a4ff9d696a6008fc08b05568b (patch) | |
tree | 8b36561cabe518b65a67deb0a2fcf41a11dda672 /lib/puppet/rails/database | |
parent | cb552af357763310ca4a16bf514dd39fcbd203bf (diff) | |
download | puppet-174e87a9b150a06a4ff9d696a6008fc08b05568b.tar.gz puppet-174e87a9b150a06a4ff9d696a6008fc08b05568b.tar.xz puppet-174e87a9b150a06a4ff9d696a6008fc08b05568b.zip |
(#4258) Fix pkgutil spec test to have the correct provider
The resource being used for testing didn't explicitly set the provider,
so it ended up using whatever the default provider was on the system on
which it was run. This was problematic when running the specs on a Mac
since the default provider is pkgdmg and that provider doesn't seem to
be upgradeable. So when you tried:
@resource[:ensure] = :latest
You got the error:
1) Puppet::Type::Package::ProviderPkgutil when installing should use a command without versioned package
Failure/Error: @resource[:ensure] = :latest
Puppet::Error: Parameter ensure failed: Provider must have features 'upgradeable' to set 'ensure' to 'latest'
# ./lib/puppet/parameter.rb:171:in `fail' # ./lib/puppet/parameter.rb:257:in `validate'
# ./lib/puppet/property.rb:300:in `should=' # ./lib/puppet/property.rb:300:in `each'
# ./lib/puppet/property.rb:300:in `should=' # ./lib/puppet/property.rb:337:in `value='
# ./lib/puppet/type.rb:416:in `[]=' # ./spec/unit/provider/package/pkgutil_spec.rb:35
Reviewed-by: Daniel Pittman <daniel@puppetlabs.com>
Diffstat (limited to 'lib/puppet/rails/database')
0 files changed, 0 insertions, 0 deletions