Class MongoShardedUtil
java.lang.Object
io.debezium.testing.system.tools.databases.mongodb.sharded.MongoShardedUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddKeyFileToDeployment(io.fabric8.kubernetes.api.model.apps.Deployment deployment) static StringcreateDebeziumUserCommand(String userName, String password) static StringcreateRootUserCommand(String userName, String password) executeMongoShOnPod(OpenShiftUtils ocpUtils, String project, io.fabric8.kubernetes.api.model.apps.Deployment deployment, String connectionString, String command, boolean debugLogs) static List<MongoShardKey>intRange(int count)
-
Constructor Details
-
MongoShardedUtil
public MongoShardedUtil()
-
-
Method Details
-
intRange
-
executeMongoShOnPod
public static OpenShiftUtils.CommandOutputs executeMongoShOnPod(OpenShiftUtils ocpUtils, String project, io.fabric8.kubernetes.api.model.apps.Deployment deployment, String connectionString, String command, boolean debugLogs) -
createDebeziumUserCommand
public static String createDebeziumUserCommand(String userName, String password) throws IOException, freemarker.template.TemplateException - Throws:
IOExceptionfreemarker.template.TemplateException
-
getTestShardKeys
-
createRootUserCommand
-
addKeyFileToDeployment
public static void addKeyFileToDeployment(io.fabric8.kubernetes.api.model.apps.Deployment deployment)
-