Skip to content

Maint/2.7.x/9186 fix shared examples#114

Merged
nicklewis merged 2 commits intopuppetlabs:2.7.xfrom
joshcooper:maint/2.7.x/9186-fix-shared-examples
Sep 14, 2011
Merged

Maint/2.7.x/9186 fix shared examples#114
nicklewis merged 2 commits intopuppetlabs:2.7.xfrom
joshcooper:maint/2.7.x/9186-fix-shared-examples

Conversation

@joshcooper
Copy link
Copy Markdown
Contributor

Fix failing tests due to older rspec and running under the SYSTEM account.

The build broke because I was using "shared_examples" which is not
available in older rspec versions, e.g. 2.3.0 (which is what our
windows jenkins nodes are configured with). Just changed the spec test
to use "shared_examples_for" instead.
The Sys::Admin.get_user method doesn't work when the username exists
in the WMI Win32_Account class, but not the Win32_UserAccount
class. For example, SYSTEM which is the user context under which the
jenkins agent runs under.

This commit modifies the spec test to query the more general
Win32_Account class. This code will be moved to a more generic
location in a future commit.
@nicklewis nicklewis merged commit 8e14de6 into puppetlabs:2.7.x Sep 14, 2011
hlindberg pushed a commit to hlindberg/puppet that referenced this pull request Oct 16, 2014
fixed unused variable in First Function example
melissa pushed a commit to melissa/puppet that referenced this pull request Mar 30, 2018
(maint) Fix results dir and modules config suffix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants