Includes workloads for:
aggregation
mapReduce and group workloads
creating and dropping roles and users
update(...)
basic workloads for capped collections
findAndModify
remove(...)
dropping db/collection, renaming collections, and for server status
Updates blacklists to fsm_*js runners to work around MongoDB restrictions or known bugs.
Closes #902
Signed-off-by: Benety Goh <benety@mongodb.com>
38 lines
795 B
JavaScript
38 lines
795 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* server_status.js
|
|
*
|
|
* Simply checks that the serverStatus command works
|
|
*/
|
|
var $config = (function() {
|
|
|
|
var states = {
|
|
status: function status(db, collName) {
|
|
var opts = {
|
|
opcounterRepl: 1,
|
|
oplog: 1,
|
|
rangeDeleter: 1,
|
|
repl: 1,
|
|
security: 1,
|
|
tcmalloc: 1
|
|
};
|
|
var res = db.serverStatus();
|
|
assertAlways.commandWorked(res);
|
|
assertAlways(res.hasOwnProperty('version'));
|
|
}
|
|
};
|
|
|
|
var transitions = {
|
|
status: { status: 1 }
|
|
};
|
|
|
|
return {
|
|
threadCount: 10,
|
|
iterations: 20,
|
|
states: states,
|
|
startState: 'status',
|
|
transitions: transitions
|
|
};
|
|
})();
|