"use strict";
const aim = require("arangodb-instance-manager");

exports.create = () => {
  let pathOrImage;
  let runner;
  if (process.env.RESILIENCE_ARANGO_BASEPATH) {
    pathOrImage = process.env.RESILIENCE_ARANGO_BASEPATH;
    runner = "local";
  } else if (process.env.RESILIENCE_DOCKER_IMAGE) {
    pathOrImage = process.env.RESILIENCE_DOCKER_IMAGE;
    runner = "docker";
  }
  if (!runner) {
    throw new Error(
      'Must specify RESILIENCE_ARANGO_BASEPATH (source root dir including a "build" folder containing compiled binaries or RESILIENCE_DOCKER_IMAGE to test a docker container'
    );
  }

  let storageEngine;
  if (process.env.ARANGO_STORAGE_ENGINE) {
    storageEngine = process.env.ARANGO_STORAGE_ENGINE;
    if (storageEngine !== "rocksdb") {
      storageEngine = "mmfiles";
    }
  } else {
    storageEngine = "mmfiles";
  }
  return new aim.InstanceManager(pathOrImage, runner, storageEngine);
};

exports.endpointToUrl = aim.endpointToUrl;
exports.FailoverError = aim.FailoverError;
exports.waitForInstance = aim.InstanceManager.waitForInstance;
exports.rpAgency = aim.InstanceManager.rpAgency;

@@ -626,231 +626,84 @@
 gine
-;%0A  if (process.env.ARANGO_STORAGE_ENGINE) %7B%0A    storageEngine = process.env.ARANGO_STORAGE_ENGINE;%0A    if (storageEngine !== %22rocksdb%22) %7B%0A      storageEngine = %22mmfiles%22;%0A    %7D%0A  %7D else %7B%0A    storageEngine = %22mmfiles%22;%0A  %7D
+ = process.env.ARANGO_STORAGE_ENGINE === %22mmfiles%22 ? %22mmfiles%22  : %22rocksdb%22;
 %0A  r

Set the Default Storage_Engine to RocksDB