(#16239) mock of facter :operatingsystem pending#1072
Merged
slippycheeze merged 2 commits intopuppetlabs:3.xfrom Sep 7, 2012
vrthra:ticket/3.x/15547_fix_mock
Merged
(#16239) mock of facter :operatingsystem pending#1072slippycheeze merged 2 commits intopuppetlabs:3.xfrom vrthra:ticket/3.x/15547_fix_mock
slippycheeze merged 2 commits intopuppetlabs:3.xfrom
vrthra:ticket/3.x/15547_fix_mock
Conversation
Contributor
|
Since we stub 40) mount provider (integration) When initially mounted When there is an initial fstab entry When setting ensure => absent When setting options => journaled should leave the system in the unmounted state, without data in /etc/fstab
Failure/Error: catalog.apply
Mocha::ExpectationError:
unexpected invocation: Facter.value(:osfamily)
satisfied expectations:
- allowed any number of times, not yet invoked: Signal.trap(any_parameters)
- allowed any number of times, invoked 3 times: Puppet::Type::Mount::ProviderParsed.default_target(any_parameters)
- allowed any number of times, invoked once: Facter.value(:operatingsystem)
- allowed any number of times, not yet invoked: #.backup(any_parameters)
- expected never, not yet invoked: #.err(any_parameters)
# ./lib/puppet/provider/mount/parsed.rb:91:in `mountinstances'
# ./lib/puppet/provider/mount/parsed.rb:77:in `prefetch'
# ./lib/puppet/transaction.rb:284:in `prefetch'
# ./lib/puppet/transaction.rb:272:in `prefetch_if_necessary'
# ./lib/puppet/transaction.rb:376:in `traverse'
# ./lib/puppet/transaction.rb:99:in `evaluate'
# ./lib/puppet/resource/catalog.rb:144:in `apply'
# ./spec/integration/provider/mount_spec.rb:79:in `run_in_catalog'
# ./spec/integration/provider/mount_spec.rb:112
|
Contributor
Author
|
@joshcooper updated the check by saving family. |
Contributor
|
So, looking at the ticket I see that it is closed; @vrthra, is this still applicable? |
Contributor
Author
|
@daniel-pittman yes it is still applicable, this file was missed in the original checkin. Should I open another bug? or can I push it as maint? |
Contributor
|
You should probably open a new bug covering whatever part of the original issue is still unresolved, and link the two together. That way people don't lose track of all the parts of solving the problem. |
Previously, the pending for solaris was specified incorrectly resulting in the test being pending in all platforms. This checkin corrects this mistake. Since Facter[:osfamily] is stubbed before each tests, we save the family value before starting and use it to compare.
Previously presence of directories of names 'my test file' caused the test to fail This patch stubs the FileTest.directory? to ensure the tests pass.
Contributor
Author
|
@daniel-pittman updated with bug #16239 |
slippycheeze
added a commit
that referenced
this pull request
Sep 7, 2012
(#16239) mock of facter :operatingsystem pending
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously, the pending for solaris was specified incorrectly resulting in the test being pending in all platforms.
This checkin removes the pending state, and ensures that the test runs on all platforms.