java.lang.Object
io.debezium.testing.system.tools.databases.mongodb.sharded.MongoShardedUtil

public class MongoShardedUtil extends Object
  • Constructor Details

    • MongoShardedUtil

      public MongoShardedUtil()
  • Method Details

    • intRange

      public static List<Integer> intRange(int count)
    • 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:
      IOException
      freemarker.template.TemplateException
    • getTestShardKeys

      public static List<MongoShardKey> getTestShardKeys()
    • createRootUserCommand

      public static String createRootUserCommand(String userName, String password)
    • addKeyFileToDeployment

      public static void addKeyFileToDeployment(io.fabric8.kubernetes.api.model.apps.Deployment deployment)