Created
December 23, 2013 15:46
-
-
Save adrianlzt/8099272 to your computer and use it in GitHub Desktop.
Hiera test failed
This file contains 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
Failures: | |
1) Hiera::Backend::Json_backend#lookup should retain the data types found in data files | |
Failure/Error: @backend.lookup("numericval", {}, nil, :priority).should == 1 | |
Mocha::ExpectationError: | |
unexpected invocation: Hiera::Backend.datafile(:json, {}, 'one', 'json') | |
unsatisfied expectations: | |
- expected exactly 3 times, invoked 4 times: Hiera::Backend.datafile(:json, {}, 'one', 'json') | |
- expected exactly 3 times, invoked 4 times: Hiera::Backend.datasources(any_parameters) | |
satisfied expectations: | |
- allowed any number of times, invoked 3 times: Hiera.warn(any_parameters) | |
- allowed any number of times, invoked 13 times: Hiera.debug(any_parameters) | |
- allowed any number of times, not yet invoked: Hiera::Backend.empty_answer(any_parameters) | |
- expected exactly 3 times, invoked 3 times: #<Mock:0xeb9a60>.read_file('/nonexisting/one.json', Hash) | |
- allowed any number of times, not yet invoked: File.exist?('/nonexisting/one.json') | |
# ./lib/hiera/backend/json_backend.rb:22:in `block in lookup' | |
# ./lib/hiera/backend/json_backend.rb:19:in `lookup' | |
# ./spec/unit/backend/json_backend_spec.rb:41:in `block (3 levels) in <module:Backend>' | |
2) Hiera::Backend::Json_backend#lookup should pick data earliest source that has it for priority searches | |
Failure/Error: @backend.lookup("key", scope, nil, :priority).should == "test_test" | |
Mocha::ExpectationError: | |
unexpected invocation: Hiera::Backend.datafile(:json, {'rspec' => 'test'}, 'two', 'json') | |
unsatisfied expectations: | |
- expected never, invoked once: Hiera::Backend.datafile(:json, {'rspec' => 'test'}, 'two', 'json') | |
satisfied expectations: | |
- allowed any number of times, invoked once: Hiera.warn(any_parameters) | |
- allowed any number of times, invoked 5 times: Hiera.debug(any_parameters) | |
- expected exactly once, invoked once: Hiera::Backend.datafile(:json, {'rspec' => 'test'}, 'one', 'json') | |
- expected exactly once, invoked once: Hiera::Backend.datasources(any_parameters) | |
- allowed any number of times, not yet invoked: Hiera::Backend.empty_answer(any_parameters) | |
- expected exactly once, invoked once: #<Mock:0xf28b68>.read_file('/nonexisting/one.json', Hash) | |
- allowed any number of times, not yet invoked: File.exist?('/nonexisting/one.json') | |
# ./lib/hiera/backend/json_backend.rb:22:in `block in lookup' | |
# ./lib/hiera/backend/json_backend.rb:19:in `lookup' | |
# ./spec/unit/backend/json_backend_spec.rb:53:in `block (3 levels) in <module:Backend>' | |
3) Hiera::Backend::Json_backend#lookup should build an array of all data sources for array searches | |
Failure/Error: File.expects(:exist?).with("/nonexisting/two.json").returns(true) | |
Mocha::ExpectationError: | |
not all expectations were satisfied | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: File.exist?('/nonexisting/two.json') | |
- expected exactly once, not yet invoked: File.exist?('/nonexisting/one.json') | |
satisfied expectations: | |
- allowed any number of times, invoked twice: Hiera.warn(any_parameters) | |
- allowed any number of times, invoked 5 times: Hiera.debug(any_parameters) | |
- expected exactly once, invoked once: Hiera::Backend.datasources(any_parameters) | |
- expected exactly once, invoked once: Hiera::Backend.datafile(:json, {}, 'two', 'json') | |
- expected exactly once, invoked once: Hiera::Backend.datafile(:json, {}, 'one', 'json') | |
- allowed any number of times, invoked twice: Hiera::Backend.parse_answer('answer', {}) | |
- allowed any number of times, not yet invoked: Hiera::Backend.empty_answer(any_parameters) | |
- allowed any number of times, not yet invoked: Hiera::Backend.empty_answer(any_parameters) | |
- expected exactly once, invoked once: #<Mock:0x1090118>.read_file('/nonexisting/two.json', Hash) | |
- expected exactly once, invoked once: #<Mock:0x1090118>.read_file('/nonexisting/one.json', Hash) | |
# ./spec/unit/backend/json_backend_spec.rb:65:in `block (3 levels) in <module:Backend>' | |
4) Hiera::Backend::Json_backend#lookup should parse the answer for scope variables | |
Failure/Error: File.expects(:exist?).with("/nonexisting/one.json").returns(true) | |
Mocha::ExpectationError: | |
not all expectations were satisfied | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: File.exist?('/nonexisting/one.json') | |
satisfied expectations: | |
- allowed any number of times, invoked once: Hiera.warn(any_parameters) | |
- allowed any number of times, invoked 4 times: Hiera.debug(any_parameters) | |
- expected exactly once, invoked once: Hiera::Backend.datafile(:json, {'rspec' => 'test'}, 'one', 'json') | |
- expected exactly once, invoked once: Hiera::Backend.datasources(any_parameters) | |
- allowed any number of times, invoked once: Hiera::Backend.parse_answer('test_%{rspec}', {'rspec' => 'test'}) | |
- allowed any number of times, not yet invoked: Hiera::Backend.empty_answer(any_parameters) | |
- expected exactly once, invoked once: #<Mock:0x111a890>.read_file('/nonexisting/one.json', Hash) | |
# ./spec/unit/backend/json_backend_spec.rb:78:in `block (3 levels) in <module:Backend>' | |
Finished in 0.02271 seconds | |
6 examples, 4 failures | |
Failed examples: | |
rspec ./spec/unit/backend/json_backend_spec.rb:31 # Hiera::Backend::Json_backend#lookup should retain the data types found in data files | |
rspec ./spec/unit/backend/json_backend_spec.rb:44 # Hiera::Backend::Json_backend#lookup should pick data earliest source that has it for priority searches | |
rspec ./spec/unit/backend/json_backend_spec.rb:56 # Hiera::Backend::Json_backend#lookup should build an array of all data sources for array searches | |
rspec ./spec/unit/backend/json_backend_spec.rb:73 # Hiera::Backend::Json_backend#lookup should parse the answer for scope variables |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment