Skip to content

Fix replset and sharding integration tests #555

Fix replset and sharding integration tests

Fix replset and sharding integration tests #555

Triggered via pull request April 15, 2024 23:29
Status Failure
Total duration 7m 23s
Artifacts

ci.yml

on: pull_request
Puppet  /  Static validations
18s
Puppet / Static validations
Matrix: Puppet / acceptance
Matrix: Puppet / unit
Puppet  /  Test suite
0s
Puppet / Test suite
Fit to window
Zoom out
Zoom in

Annotations

6 errors
Puppet / 8 (Ruby 3.2): spec/unit/puppet/provider/mongodb_database/mongodb_spec.rb#L46
Puppet::Type::Mongodb_database::ProviderMongodb self.instances returns an array of dbs Failure/Error: dbs = JSON.parse mongo_eval('EJSON.stringify(db.getMongo().getDBs())') #<Puppet::Type::Mongodb_database::ProviderMongodb (class)> received :mongo_eval with unexpected arguments expected: ("db.getMongo().setReadPref(\"primaryPreferred\");EJSON.stringify(db.getMongo().getDBs())") got: ("EJSON.stringify(db.getMongo().getDBs())") Please stub a default value first if message might be received with other args as well.
Puppet / 8 (Ruby 3.2): spec/unit/puppet/provider/mongodb_database/mongodb_spec.rb#L68
Puppet::Type::Mongodb_database::ProviderMongodb exists? checks if database exists Failure/Error: dbs = JSON.parse mongo_eval('EJSON.stringify(db.getMongo().getDBs())') #<Puppet::Type::Mongodb_database::ProviderMongodb (class)> received :mongo_eval with unexpected arguments expected: ("db.getMongo().setReadPref(\"primaryPreferred\");EJSON.stringify(db.getMongo().getDBs())") got: ("EJSON.stringify(db.getMongo().getDBs())") Please stub a default value first if message might be received with other args as well.
Puppet / 8 (Ruby 3.2)
Process completed with exit code 1.
Puppet / 7 (Ruby 2.7): spec/unit/puppet/provider/mongodb_database/mongodb_spec.rb#L46
Puppet::Type::Mongodb_database::ProviderMongodb self.instances returns an array of dbs Failure/Error: dbs = JSON.parse mongo_eval('EJSON.stringify(db.getMongo().getDBs())') #<Puppet::Type::Mongodb_database::ProviderMongodb (class)> received :mongo_eval with unexpected arguments expected: ("db.getMongo().setReadPref(\"primaryPreferred\");EJSON.stringify(db.getMongo().getDBs())") got: ("EJSON.stringify(db.getMongo().getDBs())") Please stub a default value first if message might be received with other args as well.
Puppet / 7 (Ruby 2.7): spec/unit/puppet/provider/mongodb_database/mongodb_spec.rb#L68
Puppet::Type::Mongodb_database::ProviderMongodb exists? checks if database exists Failure/Error: dbs = JSON.parse mongo_eval('EJSON.stringify(db.getMongo().getDBs())') #<Puppet::Type::Mongodb_database::ProviderMongodb (class)> received :mongo_eval with unexpected arguments expected: ("db.getMongo().setReadPref(\"primaryPreferred\");EJSON.stringify(db.getMongo().getDBs())") got: ("EJSON.stringify(db.getMongo().getDBs())") Please stub a default value first if message might be received with other args as well.
Puppet / 7 (Ruby 2.7)
Process completed with exit code 1.