Created
August 24, 2015 15:55
-
-
Save fatmcgav/3eeeefa7d743d9a5b708 to your computer and use it in GitHub Desktop.
Beaker test failure on puppetlabs-mongodb
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
1) mongodb::server class behaves like auth tests default parameters with 10gen => true and auth => true Command "mongo admin --quiet --eval "load('/root/.mongorc.js');printjson(db.getUser('admin')['customData'])"" #stdout should contain "Puppet Mongodb_user['admin']" | |
Failure/Error: it { is_expected.to contain "Puppet Mongodb_user['admin']"} | |
expected "{ \"createdBy\" : \"Puppet Mongodb_user['admin']\" }" to contain "Puppet Mongodb_user['admin']" | |
Shared Example Group: "auth tests" called from ./spec/acceptance/server_spec.rb:234 | |
# ./spec/acceptance/server_spec.rb:203:in `block (6 levels) in <top (required)>' | |
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
... | |
admin_login = "mongo admin --quiet --eval \"load('/root/.mongorc.js');printjson(db.getUser('admin')['customData'])\"" | |
... | |
describe command(admin_login) do | |
describe '#stdout' do | |
subject { super().stdout.strip } | |
it { is_expected.to contain "Puppet Mongodb_user['admin']"} | |
end | |
end | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment