summaryrefslogtreecommitdiff
path: root/jstests/auth/auth_options.js
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:17:50 -0500
committerJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:18:14 -0500
commit4ae691e8edc87d0e3cfb633bb91c328426be007b (patch)
tree52079a593f54382ca13a2e741633eab1b6271893 /jstests/auth/auth_options.js
parenta025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff)
downloadmongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/auth/auth_options.js')
-rw-r--r--jstests/auth/auth_options.js48
1 files changed, 17 insertions, 31 deletions
diff --git a/jstests/auth/auth_options.js b/jstests/auth/auth_options.js
index 1a38821fa03..d2f89d12a0f 100644
--- a/jstests/auth/auth_options.js
+++ b/jstests/auth/auth_options.js
@@ -4,63 +4,49 @@ load('jstests/libs/command_line/test_parsed_options.js');
jsTest.log("Testing \"auth\" command line option");
var expectedResult = {
- "parsed" : {
- "security" : {
- "authorization" : "enabled"
- }
- }
+ "parsed": {"security": {"authorization": "enabled"}}
};
-testGetCmdLineOptsMongod({ auth : "" }, expectedResult);
+testGetCmdLineOptsMongod({auth: ""}, expectedResult);
jsTest.log("Testing \"noauth\" command line option");
expectedResult = {
- "parsed" : {
- "security" : {
- "authorization" : "disabled"
- }
- }
+ "parsed": {"security": {"authorization": "disabled"}}
};
-testGetCmdLineOptsMongod({ noauth : "" }, expectedResult);
+testGetCmdLineOptsMongod({noauth: ""}, expectedResult);
jsTest.log("Testing \"security.authorization\" config file option");
expectedResult = {
- "parsed" : {
- "config" : "jstests/libs/config_files/enable_auth.json",
- "security" : {
- "authorization" : "enabled"
- }
+ "parsed": {
+ "config": "jstests/libs/config_files/enable_auth.json",
+ "security": {"authorization": "enabled"}
}
};
-testGetCmdLineOptsMongod({ config : "jstests/libs/config_files/enable_auth.json" }, expectedResult);
+testGetCmdLineOptsMongod({config: "jstests/libs/config_files/enable_auth.json"}, expectedResult);
jsTest.log("Testing with no explicit object check setting");
expectedResult = {
- "parsed" : { }
+ "parsed": {}
};
testGetCmdLineOptsMongod({}, expectedResult);
// Test that we preserve switches explicitly set to false in config files. See SERVER-13439.
jsTest.log("Testing explicitly disabled \"auth\" config file option");
expectedResult = {
- "parsed" : {
- "config" : "jstests/libs/config_files/disable_auth.ini",
- "security" : {
- "authorization" : "disabled"
- }
+ "parsed": {
+ "config": "jstests/libs/config_files/disable_auth.ini",
+ "security": {"authorization": "disabled"}
}
};
-testGetCmdLineOptsMongod({ config : "jstests/libs/config_files/disable_auth.ini" }, expectedResult);
+testGetCmdLineOptsMongod({config: "jstests/libs/config_files/disable_auth.ini"}, expectedResult);
jsTest.log("Testing explicitly disabled \"noauth\" config file option");
expectedResult = {
- "parsed" : {
- "config" : "jstests/libs/config_files/disable_noauth.ini",
- "security" : {
- "authorization" : "enabled"
- }
+ "parsed": {
+ "config": "jstests/libs/config_files/disable_noauth.ini",
+ "security": {"authorization": "enabled"}
}
};
-testGetCmdLineOptsMongod({ config : "jstests/libs/config_files/disable_noauth.ini" }, expectedResult);
+testGetCmdLineOptsMongod({config: "jstests/libs/config_files/disable_noauth.ini"}, expectedResult);
print(baseName + " succeeded.");