throw new ConfigurationException("must specify endpoints, uid and secret key"); if (config.isRetentionEnabled() && config.getWsChecksumType() == null) log.warn("Retention requires wschecksum. If source objects do not have wschecksum enabled, you may get an error during write");
if (config.getWsChecksumType() != null) { targetOid = createChecksummedObject(targetId, object, config.getWsChecksumType()); } else if (sourceAtmosMeta != null && sourceAtmosMeta.getWsChecksum() != null) { AtmosConfig.Hash checksumType = AtmosConfig.Hash.valueOf(sourceAtmosMeta.getWsChecksum().getAlgorithm().toString().toLowerCase());
if (config.getWsChecksumType() != null || (sourceAtmosMeta != null && sourceAtmosMeta.getWsChecksum() != null)) { AtmosConfig.Hash checksumType = config.getWsChecksumType(); if (checksumType == null) checksumType = AtmosConfig.Hash.valueOf(sourceAtmosMeta.getWsChecksum().getAlgorithm().toString().toLowerCase());
Assert.assertEquals("target path mismatch", targetPath, atmosTarget.getPath()); Assert.assertEquals("target accessType mismatch", targetAccessType, atmosTarget.getAccessType()); Assert.assertEquals("target wsChecksumType mismatch", targetChecksum, atmosTarget.getWsChecksumType()); Assert.assertTrue("target replaceMetadata should be enabled", atmosTarget.isReplaceMetadata()); Assert.assertTrue("target preserveObjectId should be enabled", atmosTarget.isPreserveObjectId());