<feed xmlns='http://www.w3.org/2005/Atom'>
<title>puppet.git/spec/unit/provider/package, branch master</title>
<subtitle>Puppet repo</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/'/>
<entry>
<title>maint: Fix pacman provider to work with Ruby 1.9</title>
<updated>2011-05-24T16:54:07+00:00</updated>
<author>
<name>Matt Robinson</name>
<email>matt@puppetlabs.com</email>
</author>
<published>2011-05-24T16:31:39+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=107b38a94f8b4e4a0fcca4879a167ab4c955fe4d'/>
<id>107b38a94f8b4e4a0fcca4879a167ab4c955fe4d</id>
<content type='text'>
Ruby 1.9 doesn't allow the lambda to walk up the directory structure to
require the spec helper This is the same issue as with commit:
f6da3339f59bbd9243a03dc1e417b1fed7955c7e

Also, you can't call each on a string in Ruby 1.9 directly since it
doesn't implicitly do a split on \n like it did in older Rubies, but
each_line works all the way back to 1.8.5

Reviewed-by: Nick Lewis &lt;nick@puppetlabs.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ruby 1.9 doesn't allow the lambda to walk up the directory structure to
require the spec helper This is the same issue as with commit:
f6da3339f59bbd9243a03dc1e417b1fed7955c7e

Also, you can't call each on a string in Ruby 1.9 directly since it
doesn't implicitly do a split on \n like it did in older Rubies, but
each_line works all the way back to 1.8.5

Reviewed-by: Nick Lewis &lt;nick@puppetlabs.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch '2.7.next' into next</title>
<updated>2011-05-18T22:32:53+00:00</updated>
<author>
<name>Pieter van de Bruggen</name>
<email>pieter@puppetlabs.com</email>
</author>
<published>2011-05-18T22:32:53+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=7941336d6b91945c02bc6e79f72720f6048f4e64'/>
<id>7941336d6b91945c02bc6e79f72720f6048f4e64</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>maint: fix spec_helper inclusions again.</title>
<updated>2011-05-17T22:23:12+00:00</updated>
<author>
<name>Daniel Pittman</name>
<email>daniel@puppetlabs.com</email>
</author>
<published>2011-05-17T22:23:00+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=d1cc24f6e7eb8ea5b29f0611eaa8246f9d7d4d25'/>
<id>d1cc24f6e7eb8ea5b29f0611eaa8246f9d7d4d25</id>
<content type='text'>
We got rid of the '../../spec_helper' style requires, but a few of them snuck
back in in recent changes.  This purges them out, replaced with the header:

    #!/usr/bin/env rspec
    require 'spec_helper'

Reviewed-By: Nick Lewis &lt;nick@puppetlabs.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We got rid of the '../../spec_helper' style requires, but a few of them snuck
back in in recent changes.  This purges them out, replaced with the header:

    #!/usr/bin/env rspec
    require 'spec_helper'

Reviewed-By: Nick Lewis &lt;nick@puppetlabs.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch '2.7.next' into next</title>
<updated>2011-05-17T22:01:26+00:00</updated>
<author>
<name>Pieter van de Bruggen</name>
<email>pieter@puppetlabs.com</email>
</author>
<published>2011-05-17T22:01:26+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=51855e7f17877871aa8ec4f1ed7226c1d95ce66b'/>
<id>51855e7f17877871aa8ec4f1ed7226c1d95ce66b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>(#7507) Add ability to filter Ruby 1.9 spec failures</title>
<updated>2011-05-17T16:57:26+00:00</updated>
<author>
<name>Matt Robinson</name>
<email>matt@puppetlabs.com</email>
</author>
<published>2011-05-16T23:10:21+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=9da1454e71b8330e929ac5616eefa44388c90832'/>
<id>9da1454e71b8330e929ac5616eefa44388c90832</id>
<content type='text'>
By running:

    rspec spec --tag ~@fails_on_ruby_1.9.2

We can now just run the specs that pass under Ruby 1.9.  Obviously in
the long term we want to have all the specs passing, but until then we
need notification when we regress.  From now on new code will be
required to pass under Ruby 1.9, and Jenkins will give us email
notification if it doesn't or if we break something that was already
working.

Reviewed-by: Daniel Pittman &lt;daniel@puppetlabs.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
By running:

    rspec spec --tag ~@fails_on_ruby_1.9.2

We can now just run the specs that pass under Ruby 1.9.  Obviously in
the long term we want to have all the specs passing, but until then we
need notification when we regress.  From now on new code will be
required to pass under Ruby 1.9, and Jenkins will give us email
notification if it doesn't or if we break something that was already
working.

Reviewed-by: Daniel Pittman &lt;daniel@puppetlabs.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>(#1853) Pacman package provider</title>
<updated>2011-05-16T17:22:08+00:00</updated>
<author>
<name>Paul Boyd</name>
<email>boyd.paul2@gmail.com</email>
</author>
<published>2011-05-14T12:08:47+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=1dc662a0988fee83c92d2d46462f0662710ce7ad'/>
<id>1dc662a0988fee83c92d2d46462f0662710ce7ad</id>
<content type='text'>
Stub the command method, so it doesn't give an error.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Stub the command method, so it doesn't give an error.
</pre>
</div>
</content>
</entry>
<entry>
<title>(#1853) Pacman package provider</title>
<updated>2011-05-16T17:21:34+00:00</updated>
<author>
<name>Paul Boyd</name>
<email>boyd.paul2@gmail.com</email>
</author>
<published>2011-05-12T01:21:38+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=6bb2a85a2d1bfdf0fd3fb09339c4b98c627610bf'/>
<id>6bb2a85a2d1bfdf0fd3fb09339c4b98c627610bf</id>
<content type='text'>
Adds support for use Archlinux's pacman package manager in Puppet.

Originally written by Miah Johnson, with bug fixes from Thomas Hatch and
myself.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adds support for use Archlinux's pacman package manager in Puppet.

Originally written by Miah Johnson, with bug fixes from Thomas Hatch and
myself.
</pre>
</div>
</content>
</entry>
<entry>
<title>(#7468) Stub spec that tries to connect to pypi.python.org</title>
<updated>2011-05-10T18:53:00+00:00</updated>
<author>
<name>Matt Robinson</name>
<email>matt@puppetlabs.com</email>
</author>
<published>2011-05-10T05:02:50+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=9377507499f70c11c87615675656dbffed30a0bf'/>
<id>9377507499f70c11c87615675656dbffed30a0bf</id>
<content type='text'>
I noticed a test failure when I ran the specs without an internet
connection.  Specs should never need an internet connection to pass.

Reviewed-by: Max Martin &lt;max@puppetlabs.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I noticed a test failure when I ran the specs without an internet
connection.  Specs should never need an internet connection to pass.

Reviewed-by: Max Martin &lt;max@puppetlabs.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'feature/master/4258-pkgutil' into 2.7.x</title>
<updated>2011-04-14T18:55:08+00:00</updated>
<author>
<name>Matt Robinson</name>
<email>matt@puppetlabs.com</email>
</author>
<published>2011-04-14T18:55:08+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=d88b3763cea9e116c8abf45ca2aa4ec80fa20349'/>
<id>d88b3763cea9e116c8abf45ca2aa4ec80fa20349</id>
<content type='text'>
* feature/master/4258-pkgutil: (29 commits)
  (#4258) Fix pkgutil spec test to have the correct provider
  (#4258) Remove superfluous command check that called pkgutil
  (#4258) Fix fd leak opening pkgutil config files
  (#4258) Permit variations of -nv in both pkgutil.conf files
  (#4258) Stop file and config checks from breaking spec
  (#4258) Check wgetopts in pkgutil.conf
  (#4258) Fix hash duplication affecting canonical provider instance
  (#4258) Use pkgutil -a to reliably determine package common names/aliases
  (#4258) Update pkgutil spec for recent impl changes
  (#4258) pkgutil: bug fix: if shortname is not equal to package name
  (#4258) pkgutil provider: better handling of short package names
  (#4258) pkgutil provider: misc enhancements
  Add spec tests for pkgutil package provider
  * Fix exception on parse failure of pkgutil output * Fix exception when querying latest version for unknown package
  Fixing indentation
  Removing blastwave references and unused PAGER
  Changing indentation to 2-spaces as per 2.6+ style
  Single package queries made more robust when dealing with pkgutil noise
  Fixing wget verbose regex
  These regular expressions will not match anything.  pkgutil doesn't output anything that can be matched.
  ...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* feature/master/4258-pkgutil: (29 commits)
  (#4258) Fix pkgutil spec test to have the correct provider
  (#4258) Remove superfluous command check that called pkgutil
  (#4258) Fix fd leak opening pkgutil config files
  (#4258) Permit variations of -nv in both pkgutil.conf files
  (#4258) Stop file and config checks from breaking spec
  (#4258) Check wgetopts in pkgutil.conf
  (#4258) Fix hash duplication affecting canonical provider instance
  (#4258) Use pkgutil -a to reliably determine package common names/aliases
  (#4258) Update pkgutil spec for recent impl changes
  (#4258) pkgutil: bug fix: if shortname is not equal to package name
  (#4258) pkgutil provider: better handling of short package names
  (#4258) pkgutil provider: misc enhancements
  Add spec tests for pkgutil package provider
  * Fix exception on parse failure of pkgutil output * Fix exception when querying latest version for unknown package
  Fixing indentation
  Removing blastwave references and unused PAGER
  Changing indentation to 2-spaces as per 2.6+ style
  Single package queries made more robust when dealing with pkgutil noise
  Fixing wget verbose regex
  These regular expressions will not match anything.  pkgutil doesn't output anything that can be matched.
  ...
</pre>
</div>
</content>
</entry>
<entry>
<title>(#4258) Fix pkgutil spec test to have the correct provider</title>
<updated>2011-04-14T18:51:06+00:00</updated>
<author>
<name>Matt Robinson</name>
<email>matt@puppetlabs.com</email>
</author>
<published>2011-04-14T18:33:03+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=174e87a9b150a06a4ff9d696a6008fc08b05568b'/>
<id>174e87a9b150a06a4ff9d696a6008fc08b05568b</id>
<content type='text'>
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 &lt;daniel@puppetlabs.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;daniel@puppetlabs.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
