Skip to content

Commit

Permalink
not all commands with read only users work correct SERVER-4156
Browse files Browse the repository at this point in the history
  • Loading branch information
erh committed Oct 29, 2011
1 parent 45b8c90 commit 50c851a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jstests/sharding/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,16 @@ assert( ! result.ok , tojson( result ) )
print( " testing read command (should succeed)" );
assert.commandWorked(readOnlyDB.runCommand({count : "foo"}));

/*
broken because of SERVER-4156
print( " testing write command (should fail)" );
assert.commandFailed(readOnlyDB.runCommand(
{mapreduce : "foo",
map : function() { emit(this.y, 1); },
reduce : function(key, values) { return values.length; },
out:"blarg"
}));

*/
print( " testing logout (should succeed)" );
assert.commandWorked(readOnlyDB.runCommand({logout : 1}));

Expand Down

0 comments on commit 50c851a

Please sign in to comment.