Skip to content

Commit

Permalink
Make huge hash readable by splitting over multiple lines
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenpost committed Mar 18, 2024
1 parent 80c92af commit a5e70cf
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion spec/unit/puppet/provider/mongodb_user/mongodb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,34 @@
describe Puppet::Type.type(:mongodb_user).provider(:mongodb) do
let(:raw_users) do
[
{ '_id' => 'admin.root', 'user' => 'root', 'db' => 'admin', 'credentials' => { 'MONGODB-CR' => 'pass', 'SCRAM-SHA-1' => { 'iterationCount' => 10_000, 'salt' => 'salt', 'storedKey' => 'storedKey', 'serverKey' => 'serverKey' } }, 'roles' => [{ 'role' => 'role2', 'db' => 'admin' }, { 'role' => 'role3', 'db' => 'user_database' }, { 'role' => 'role1', 'db' => 'admin' }] }
{
'_id' => 'admin.root',
'user' => 'root',
'db' => 'admin',
'credentials' => {
'MONGODB-CR' => 'pass',
'SCRAM-SHA-1' => {
'iterationCount' => 10_000,
'salt' => 'salt',
'storedKey' => 'storedKey',
'serverKey' => 'serverKey'
}
},
'roles' => [
{
'role' => 'role2',
'db' => 'admin'
},
{
'role' => 'role3',
'db' => 'user_database'
},
{
'role' => 'role1',
'db' => 'admin'
}
]
}
].to_json
end

Expand Down

0 comments on commit a5e70cf

Please sign in to comment.