Example #1
0
 private void testBackupFromCluster(String askForCluster) throws Throwable {
   assertEquals(
       0,
       runBackupToolFromOtherJvmToGetExitCode(
           backupArguments("ha://localhost:5001", BACKUP_PATH.getPath(), askForCluster)));
   assertEquals(representation, DbRepresentation.of(BACKUP_PATH));
   ManagedCluster cluster =
       clusterManager.getCluster(askForCluster == null ? "neo4j.ha" : askForCluster);
   DbRepresentation newRepresentation = createSomeData(cluster.getAnySlave());
   assertEquals(
       0,
       runBackupToolFromOtherJvmToGetExitCode(
           backupArguments("ha://localhost:5002", BACKUP_PATH.getPath(), askForCluster)));
   assertEquals(newRepresentation, DbRepresentation.of(BACKUP_PATH));
 }