<feed xmlns='http://www.w3.org/2005/Atom'>
<title>puppet.git/spec/unit/provider, 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>Merge branch '2.7.x'</title>
<updated>2011-08-24T22:42:03+00:00</updated>
<author>
<name>Nick Lewis</name>
<email>nick@puppetlabs.com</email>
</author>
<published>2011-08-24T22:42:03+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=da4a2def42639817c4522fc0162bd691956998da'/>
<id>da4a2def42639817c4522fc0162bd691956998da</id>
<content type='text'>
Conflicts:
	lib/puppet/feature/base.rb
	lib/puppet/file_serving/configuration.rb
	spec/unit/indirector/ssl_file_spec.rb
	spec/unit/parser/functions/extlookup_spec.rb
	spec/unit/resource/catalog_spec.rb
	test/language/ast/variable.rb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Conflicts:
	lib/puppet/feature/base.rb
	lib/puppet/file_serving/configuration.rb
	spec/unit/indirector/ssl_file_spec.rb
	spec/unit/parser/functions/extlookup_spec.rb
	spec/unit/resource/catalog_spec.rb
	test/language/ast/variable.rb
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix posix exec provider spec failures on Windows</title>
<updated>2011-08-19T20:52:59+00:00</updated>
<author>
<name>Nick Lewis</name>
<email>nick@puppetlabs.com</email>
</author>
<published>2011-08-16T19:40:06+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=2681ca5360428db071aaa66614c21f6be581c1cc'/>
<id>2681ca5360428db071aaa66614c21f6be581c1cc</id>
<content type='text'>
These specs were assuming that paths such as /foo were always absolute, which
is not the case on Windows. Thus, when run on Windows, the provider was
complaining about receiving relative paths when it expected absolute, rather
than succeeding or failing in the intended way. Now we expand all paths we want
to be absolute, to guarantee they will be absolute everywhere.

Also, some specs were failing because they were trying to test the case where a
file isn't executable. That's not something we can reliably check on Windows,
so instead just stub the appropriate executable? methods.

Reviewed-By: Matt Robinson &lt;matt@puppetlabs.com&gt;
(cherry picked from commit e9b558dd35eec6e221aef9de3f300a5843347454)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These specs were assuming that paths such as /foo were always absolute, which
is not the case on Windows. Thus, when run on Windows, the provider was
complaining about receiving relative paths when it expected absolute, rather
than succeeding or failing in the intended way. Now we expand all paths we want
to be absolute, to guarantee they will be absolute everywhere.

Also, some specs were failing because they were trying to test the case where a
file isn't executable. That's not something we can reliably check on Windows,
so instead just stub the appropriate executable? methods.

Reviewed-By: Matt Robinson &lt;matt@puppetlabs.com&gt;
(cherry picked from commit e9b558dd35eec6e221aef9de3f300a5843347454)
</pre>
</div>
</content>
</entry>
<entry>
<title>(#5495) Remove dead Windows-specific code from posix exec provider</title>
<updated>2011-08-19T20:52:59+00:00</updated>
<author>
<name>Nick Lewis</name>
<email>nick@puppetlabs.com</email>
</author>
<published>2011-08-15T22:51:37+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=3812fc35eae962938041256f8974bc94f41a3326'/>
<id>3812fc35eae962938041256f8974bc94f41a3326</id>
<content type='text'>
Because this provider only applies when the posix feature is present (and thus
not the windows feature), it can never be used on Windows. Thus, the
Windows-specific command handling is unnecessary and unused.

Also added more specific error messages for the cases where a command doesn't
exist, isn't a file, and isn't executable. These only apply when the command
path is absolute (otherwise the message is simply command not found).

Reviewed-By: Matt Robinson &lt;matt@puppetlabs.com&gt;
(cherry picked from commit b28bcb031346cfd2026361ec5ffb420c1dcf60d7)

Conflicts:

	spec/unit/provider/exec/posix_spec.rb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Because this provider only applies when the posix feature is present (and thus
not the windows feature), it can never be used on Windows. Thus, the
Windows-specific command handling is unnecessary and unused.

Also added more specific error messages for the cases where a command doesn't
exist, isn't a file, and isn't executable. These only apply when the command
path is absolute (otherwise the message is simply command not found).

Reviewed-By: Matt Robinson &lt;matt@puppetlabs.com&gt;
(cherry picked from commit b28bcb031346cfd2026361ec5ffb420c1dcf60d7)

Conflicts:

	spec/unit/provider/exec/posix_spec.rb
</pre>
</div>
</content>
</entry>
<entry>
<title>(#8272) Add missing tests for Windows service provider methods.</title>
<updated>2011-08-19T20:52:59+00:00</updated>
<author>
<name>Cameron Thomas</name>
<email>cameron@puppetlabs.com</email>
</author>
<published>2011-07-27T22:30:19+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=4237cb1b12851d42504c9829fc61fe31cb84866c'/>
<id>4237cb1b12851d42504c9829fc61fe31cb84866c</id>
<content type='text'>
Added missing spec tests for Windows service provider methods:
  :stop, :enable, :disable, and :manual_start
Refactored to match Nick's previous work.

Reviewed By: Nick Lewis [nick@puppetlabs.com]
(cherry picked from commit d08ae7fd2180c95d1fcafa149128d25cc4680c6c)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added missing spec tests for Windows service provider methods:
  :stop, :enable, :disable, and :manual_start
Refactored to match Nick's previous work.

Reviewed By: Nick Lewis [nick@puppetlabs.com]
(cherry picked from commit d08ae7fd2180c95d1fcafa149128d25cc4680c6c)
</pre>
</div>
</content>
</entry>
<entry>
<title>(#8409) Add a default group provider for Windows</title>
<updated>2011-08-19T20:52:59+00:00</updated>
<author>
<name>Nick Lewis</name>
<email>nick@puppetlabs.com</email>
</author>
<published>2011-08-09T20:04:37+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=a32c8be4b32cfbc0588648e56e9194f3a75bbaa6'/>
<id>a32c8be4b32cfbc0588648e56e9194f3a75bbaa6</id>
<content type='text'>
This provider, windows_adsi, uses the Puppet::Util::ADSI module to manage
groups. It can only manage group existence and memberships, but is fully
functional in those regards.

Based on work by: Joel Rosario &lt;joel.r@.internal.directi.com&gt;
Based on work by: Cameron Thomas &lt;cameron@puppetlabs.com&gt;
Reviewed-By: Matt Robinson &lt;matt@puppetlabs.com&gt;
(cherry picked from commit 01f09f5f395bab66b90a4e81e958aa89025977b4)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This provider, windows_adsi, uses the Puppet::Util::ADSI module to manage
groups. It can only manage group existence and memberships, but is fully
functional in those regards.

Based on work by: Joel Rosario &lt;joel.r@.internal.directi.com&gt;
Based on work by: Cameron Thomas &lt;cameron@puppetlabs.com&gt;
Reviewed-By: Matt Robinson &lt;matt@puppetlabs.com&gt;
(cherry picked from commit 01f09f5f395bab66b90a4e81e958aa89025977b4)
</pre>
</div>
</content>
</entry>
<entry>
<title>(#8408) Add a default user provider for Windows</title>
<updated>2011-08-19T20:52:59+00:00</updated>
<author>
<name>Nick Lewis</name>
<email>nick@puppetlabs.com</email>
</author>
<published>2011-08-09T20:04:25+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=4f7170a0fd7d77d7d9941001cdb7dbcb0662d6b4'/>
<id>4f7170a0fd7d77d7d9941001cdb7dbcb0662d6b4</id>
<content type='text'>
This provider, windows_adsi, uses the Puppet::Util::ADSI module to manage
users. It can currently only manage group memberships, comments, and home
directories, which are the only fields that can be managed via ADSI.

Based on work by: Joel Rosario &lt;joel.r@.internal.directi.com&gt;
Based on work by: Cameron Thomas &lt;cameron@puppetlabs.com&gt;
Reviewed-By: Matt Robinson &lt;matt@puppetlabs.com&gt;
(cherry picked from commit ac00e9e289f8fdc81f060e7dd289e1a8e0f133c0)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This provider, windows_adsi, uses the Puppet::Util::ADSI module to manage
users. It can currently only manage group memberships, comments, and home
directories, which are the only fields that can be managed via ADSI.

Based on work by: Joel Rosario &lt;joel.r@.internal.directi.com&gt;
Based on work by: Cameron Thomas &lt;cameron@puppetlabs.com&gt;
Reviewed-By: Matt Robinson &lt;matt@puppetlabs.com&gt;
(cherry picked from commit ac00e9e289f8fdc81f060e7dd289e1a8e0f133c0)
</pre>
</div>
</content>
</entry>
<entry>
<title>(#8644) Host provider on Windows</title>
<updated>2011-08-19T20:52:58+00:00</updated>
<author>
<name>Josh Cooper</name>
<email>josh@puppetlabs.com</email>
</author>
<published>2011-07-29T20:30:15+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=7259e1e5877b81dc5fd9b6ff090a4cccfc37c2f4'/>
<id>7259e1e5877b81dc5fd9b6ff090a4cccfc37c2f4</id>
<content type='text'>
The host provider did not work on Windows because it didn't know where
to find its hosts file. The provider now uses Win32::Resolv, which is
part of the standard ruby library, to find it.

Several host type/provider spec tests were marked as fails_on_windows,
but now that the provider is working, I removed the tag from those
tests, and verified that the tests now pass. There are two tests in
resources_spec that fail because the user and exec providers are not
supported on Windows yet, so those tests are marked as fails_on_windows.

Reviewed-by: Pieter van de Bruggen &lt;pieter@puppetlabs.com&gt;
(cherry picked from commit 82c6b3cb41397c989c011cf767066bcf1e403db2)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The host provider did not work on Windows because it didn't know where
to find its hosts file. The provider now uses Win32::Resolv, which is
part of the standard ruby library, to find it.

Several host type/provider spec tests were marked as fails_on_windows,
but now that the provider is working, I removed the tag from those
tests, and verified that the tests now pass. There are two tests in
resources_spec that fail because the user and exec providers are not
supported on Windows yet, so those tests are marked as fails_on_windows.

Reviewed-by: Pieter van de Bruggen &lt;pieter@puppetlabs.com&gt;
(cherry picked from commit 82c6b3cb41397c989c011cf767066bcf1e403db2)
</pre>
</div>
</content>
</entry>
<entry>
<title>(#8663) Disable spec tests for unsupported functionality on Windows</title>
<updated>2011-08-19T20:52:57+00:00</updated>
<author>
<name>Josh Cooper</name>
<email>josh@puppetlabs.com</email>
</author>
<published>2011-07-28T00:04:45+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=925af9586a0e209a031c46c81225c6925837a49a'/>
<id>925af9586a0e209a031c46c81225c6925837a49a</id>
<content type='text'>
The mount, shell, and ssh_authorized_key types are not supported on
Windows, so these spec tests have been disabled when running on
Windows.

One of the compiler spec tests fails on Windows because
Puppet::Util.execute attempts to execute a program named "git rev-parse
HEAD". This has different semantics than Unix, where the command is
splatted, Kernel.exec(*command). Since this truly is a Windows bug, I
removed the fails_on_windows tag and updated ticket #8410.

Reviewed-by: Jacob Helwig &lt;jacob@puppetlabs.com&gt;
(cherry picked from commit d9ce88d10707268fe41c8f3ad1166137fe8e202f)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The mount, shell, and ssh_authorized_key types are not supported on
Windows, so these spec tests have been disabled when running on
Windows.

One of the compiler spec tests fails on Windows because
Puppet::Util.execute attempts to execute a program named "git rev-parse
HEAD". This has different semantics than Unix, where the command is
splatted, Kernel.exec(*command). Since this truly is a Windows bug, I
removed the fails_on_windows tag and updated ticket #8410.

Reviewed-by: Jacob Helwig &lt;jacob@puppetlabs.com&gt;
(cherry picked from commit d9ce88d10707268fe41c8f3ad1166137fe8e202f)
</pre>
</div>
</content>
</entry>
<entry>
<title>(#8272) Allow disabled Windows services to be started</title>
<updated>2011-08-19T20:52:57+00:00</updated>
<author>
<name>Nick Lewis</name>
<email>nick@puppetlabs.com</email>
</author>
<published>2011-07-26T22:59:45+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=28b16584d13399f911577a47a355e866d8601085'/>
<id>28b16584d13399f911577a47a355e866d8601085</id>
<content type='text'>
Because Windows allows a service to be both running and disabled, we now
support that capability. If a service is explicitly requested to be running and
disabled, we will set it to manual start if necessary, start it, and then
disable it. If the service is requested to be running and enabled, we will now
enable it before attempting to start it (previously, this would simply try to
start it and fail).

The exception to this rule is a service which is disabled, and for which we are
not managing the enable property. In that case, we assume that some other
authority has disabled the service, and respect that, failing to start. Thus,
if the user actually wants a service to be running and disabled, they must
explicitly declare that intent.

Reviewed-By: Jacob Helwig &lt;jacob@puppetlabs.com&gt;
(cherry picked from commit 12d0018f93e5a72a728c6decffb351a693a86344)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Because Windows allows a service to be both running and disabled, we now
support that capability. If a service is explicitly requested to be running and
disabled, we will set it to manual start if necessary, start it, and then
disable it. If the service is requested to be running and enabled, we will now
enable it before attempting to start it (previously, this would simply try to
start it and fail).

The exception to this rule is a service which is disabled, and for which we are
not managing the enable property. In that case, we assume that some other
authority has disabled the service, and respect that, failing to start. Thus,
if the user actually wants a service to be running and disabled, they must
explicitly declare that intent.

Reviewed-By: Jacob Helwig &lt;jacob@puppetlabs.com&gt;
(cherry picked from commit 12d0018f93e5a72a728c6decffb351a693a86344)
</pre>
</div>
</content>
</entry>
<entry>
<title>(#8272) Refactor specs for Windows service provider</title>
<updated>2011-08-19T20:52:57+00:00</updated>
<author>
<name>Nick Lewis</name>
<email>nick@puppetlabs.com</email>
</author>
<published>2011-07-26T22:59:33+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=c69baf63bac4e7f6296b81fcb5278eaf95e7f74b'/>
<id>c69baf63bac4e7f6296b81fcb5278eaf95e7f74b</id>
<content type='text'>
These were using fake objects when that's not really necessary, so replace them
with real ones. Additionally, many of these specs were doing the same thing
(like creating a resource), so that has been extracted to the before block.

Reviewed-By: Jacob Helwig &lt;jacob@puppetlabs.com&gt;
(cherry picked from commit f5e8dbef9e16bf05e4c05a43407e94027faa2410)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These were using fake objects when that's not really necessary, so replace them
with real ones. Additionally, many of these specs were doing the same thing
(like creating a resource), so that has been extracted to the before block.

Reviewed-By: Jacob Helwig &lt;jacob@puppetlabs.com&gt;
(cherry picked from commit f5e8dbef9e16bf05e4c05a43407e94027faa2410)
</pre>
</div>
</content>
</entry>
</feed>
