0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-18103 Fix copyauth.js to run all permutations except skip one that is currently broken

This commit is contained in:
Spencer T Brody 2015-04-17 13:35:09 -04:00
parent b085e20c6b
commit 32be1f0679

View File

@ -185,6 +185,9 @@ function copydbBetweenClustersTest(configObj) {
target.stop();
}
(function() {
"use strict"
var sourceClusterTypeValues = [ "single", "repl", "sharded" ]
var isSourceUsingAuthValues = [ true, false ]
var targetClusterTypeValues = [ "single", "repl", "sharded" ]
@ -208,6 +211,13 @@ for (var i = 0; i < sourceClusterTypeValues.length; i++) {
// SERVER-6427
continue;
}
if (sourceClusterTypeValues[i] === "repl" &&
isSourceUsingAuthValues[j] === false &&
targetClusterTypeValues[k] === "sharded" &&
isTargetUsingAuthValues[l] == true) {
// SERVER-18103
continue;
}
var testCase = {
'sourceClusterType' : sourceClusterTypeValues[i],
'isSourceUsingAuth' : isSourceUsingAuthValues[j],
@ -221,5 +231,5 @@ for (var i = 0; i < sourceClusterTypeValues.length; i++) {
}
}
}
}());
print(baseName + " success!");