Skip to content

Commit 32be1f0

Browse files
committed
SERVER-18103 Fix copyauth.js to run all permutations except skip one that is currently broken
1 parent b085e20 commit 32be1f0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

jstests/auth/copyauth.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ function copydbBetweenClustersTest(configObj) {
185185
target.stop();
186186
}
187187

188+
(function() {
189+
"use strict"
190+
188191
var sourceClusterTypeValues = [ "single", "repl", "sharded" ]
189192
var isSourceUsingAuthValues = [ true, false ]
190193
var targetClusterTypeValues = [ "single", "repl", "sharded" ]
@@ -208,6 +211,13 @@ for (var i = 0; i < sourceClusterTypeValues.length; i++) {
208211
// SERVER-6427
209212
continue;
210213
}
214+
if (sourceClusterTypeValues[i] === "repl" &&
215+
isSourceUsingAuthValues[j] === false &&
216+
targetClusterTypeValues[k] === "sharded" &&
217+
isTargetUsingAuthValues[l] == true) {
218+
// SERVER-18103
219+
continue;
220+
}
211221
var testCase = {
212222
'sourceClusterType' : sourceClusterTypeValues[i],
213223
'isSourceUsingAuth' : isSourceUsingAuthValues[j],
@@ -221,5 +231,5 @@ for (var i = 0; i < sourceClusterTypeValues.length; i++) {
221231
}
222232
}
223233
}
224-
234+
}());
225235
print(baseName + " success!");

0 commit comments

Comments
 (0)