summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shell_options_test.cpp
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2013-11-08 10:46:16 -0500
committerRandolph Tan <randolph@10gen.com>2013-11-08 11:02:21 -0500
commitb6c8f3bc6bfb11c15d0b6708ca7bc0dfe584a39f (patch)
tree81c664e36b5bbfa18b44e02c92f3ce9a42f332cf /src/mongo/shell/shell_options_test.cpp
parentdd0857bd037487c65b12113f042510b88c08bea4 (diff)
downloadmongo-b6c8f3bc6bfb11c15d0b6708ca7bc0dfe584a39f.tar.gz
SERVER-11627 Make the shell use write commands by default
Added test for shell_options
Diffstat (limited to 'src/mongo/shell/shell_options_test.cpp')
-rw-r--r--src/mongo/shell/shell_options_test.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mongo/shell/shell_options_test.cpp b/src/mongo/shell/shell_options_test.cpp
index 8ceb6f6b08b..628fa5f5df6 100644
--- a/src/mongo/shell/shell_options_test.cpp
+++ b/src/mongo/shell/shell_options_test.cpp
@@ -267,6 +267,19 @@ namespace {
ASSERT_EQUALS(iterator->_positionalStart, -1);
ASSERT_EQUALS(iterator->_positionalEnd, -1);
}
+ else if (iterator->_dottedName == "useLegacyWriteOps") {
+ ASSERT_EQUALS(iterator->_singleName, "useLegacyWriteOps");
+ ASSERT_EQUALS(iterator->_type, moe::Switch);
+ ASSERT_EQUALS(iterator->_description,
+ "use legacy write ops instead of write commands");
+ ASSERT_EQUALS(iterator->_isVisible, false);
+ ASSERT_TRUE(iterator->_default.isEmpty());
+ ASSERT_TRUE(iterator->_implicit.isEmpty());
+ ASSERT_EQUALS(iterator->_isComposing, false);
+ ASSERT_EQUALS(iterator->_sources, moe::SourceAll);
+ ASSERT_EQUALS(iterator->_positionalStart, -1);
+ ASSERT_EQUALS(iterator->_positionalEnd, -1);
+ }
#ifdef MONGO_SSL
else if (iterator->_dottedName == "ssl") {
ASSERT_EQUALS(iterator->_singleName, "ssl");