message: run R.test as running R.match can fail
diff: @@ -6,6 +6,12 @@ const S3 = require('aws-sdk/clients/s3');
  const makeS3TempLink = async (restore /* : Object */) => {
  const restoreLocation = R.prop('restoreLocation', restore);
  + // https://{endpoint}/{bucket}/{key}
  + const s3LinkMatch = /([^/]+)\/([^/]+)\/([^/]+)/;
  +
  + if (R.test(s3LinkMatch, restoreLocation)) {
  + const s3Parts = R.match(s3LinkMatch, restoreLocation);
  +
  const accessKeyId = R.propOr(
  'XXXXXXXXXXXXXXXXXXXX',
  'S3_BAAS_ACCESS_KEY_ID',
  @@ -17,11 +23,6 @@ const makeS3TempLink = async (restore /* : Object */) => {
  process.env,
  );
  - // https://{endpoint}/{bucket}/{key}
  - const s3LinkMatch = /([^/]+)\/([^/]+)\/([^/]+)/;
  -
  - const s3Parts = R.match(s3LinkMatch, restoreLocation);
  -
  // We have to generate a new client every time because the endpoint is parsed
  // from the s3 url.
  const s3Client = new S3({
  @@ -42,6 +43,9 @@ const makeS3TempLink = async (restore /* : Object */) => {
  ...restore,
  restoreLocation: tempUrl,
  };
  + }
  +
  + return restore;
  };
  const Helpers = {
  