HomePhorge

Fix order dependent spec failure in exec specs
bc4051658bf6Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

Fix order dependent spec failure in exec specs

The provider/exec/windows_spec.rb spec was creating exec resources
explicitly using the Windows provider as the provider. The Windows
provider was being evaluated as suitable and thus the default provider
for the type. Then in future specs, it could be used since it was the
default, even though it wasn't necessarily suitable, causing failures.
Now, we just clear the defaultprovider on the exec type after all the
specs in the file have finished, ensuring it will be recalculated
appropriately when needed.

Reviewed-By: Matt Robinson <matt@puppetlabs.com>

Details

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPUbc4051658bf6: Fix order dependent spec failure in exec specs (authored by Nick Lewis <nick@puppetlabs.com>).Sep 16 2011, 2:04 AM