summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/configExpand_rest_noexpand.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/configExpand_rest_noexpand.js')
-rw-r--r--jstests/noPassthrough/configExpand_rest_noexpand.js48
1 files changed, 23 insertions, 25 deletions
diff --git a/jstests/noPassthrough/configExpand_rest_noexpand.js b/jstests/noPassthrough/configExpand_rest_noexpand.js
index d80f4c33ae6..28200e032dd 100644
--- a/jstests/noPassthrough/configExpand_rest_noexpand.js
+++ b/jstests/noPassthrough/configExpand_rest_noexpand.js
@@ -2,37 +2,35 @@
// @tags: [requires_http_client]
(function() {
- 'use strict';
+'use strict';
- load('jstests/noPassthrough/libs/configExpand/lib.js');
+load('jstests/noPassthrough/libs/configExpand/lib.js');
- const web = new ConfigExpandRestServer();
- web.start();
+const web = new ConfigExpandRestServer();
+web.start();
- // Unexpected elements.
- configExpandFailure({
- setParameter: {
- scramIterationCount: {__rest: web.getStringReflectionURL('12345'), foo: 'bar'},
- }
- },
- /expansion block must contain only '__rest'/);
+// Unexpected elements.
+configExpandFailure({
+ setParameter: {
+ scramIterationCount: {__rest: web.getStringReflectionURL('12345'), foo: 'bar'},
+ }
+},
+ /expansion block must contain only '__rest'/);
- const sicReflect = {
- setParameter: {scramIterationCount: {__rest: web.getStringReflectionURL('12345')}}
- };
+const sicReflect = {
+ setParameter: {scramIterationCount: {__rest: web.getStringReflectionURL('12345')}}
+};
- // Positive test just to be sure this works in a basic case before testing negatives.
- configExpandSuccess(sicReflect);
+// Positive test just to be sure this works in a basic case before testing negatives.
+configExpandSuccess(sicReflect);
- // Expansion not enabled.
- configExpandFailure(sicReflect, /__rest support has not been enabled/, {configExpand: 'none'});
+// Expansion not enabled.
+configExpandFailure(sicReflect, /__rest support has not been enabled/, {configExpand: 'none'});
- // Expansion enabled, but not recursively.
- configExpandFailure({
- __rest: web.getURL() + '/reflect/yaml?yaml=' + encodeURI(jsToYaml(sicReflect)),
- type: 'yaml'
- },
- /__rest support has not been enabled/);
+// Expansion enabled, but not recursively.
+configExpandFailure(
+ {__rest: web.getURL() + '/reflect/yaml?yaml=' + encodeURI(jsToYaml(sicReflect)), type: 'yaml'},
+ /__rest support has not been enabled/);
- web.stop();
+web.stop();
})();