use of com.github.ambry.cloud.CloudRequestAgent in project ambry by linkedin.
the class AzureIntegrationTest method setup.
@Before
public void setup() {
testProperties = new Properties();
try (InputStream input = this.getClass().getClassLoader().getResourceAsStream(propFileName)) {
if (input == null) {
throw new IllegalStateException("Could not find resource: " + propFileName);
}
testProperties.load(input);
} catch (IOException ex) {
throw new IllegalStateException("Could not load properties from resource: " + propFileName);
}
testProperties.setProperty("clustermap.cluster.name", "Integration-Test");
testProperties.setProperty("clustermap.datacenter.name", "uswest");
testProperties.setProperty("clustermap.host.name", "localhost");
testProperties.setProperty(CloudConfig.CLOUD_DELETED_BLOB_RETENTION_DAYS, String.valueOf(retentionPeriodDays));
testProperties.setProperty(CloudConfig.CLOUD_COMPACTION_LOOKBACK_DAYS, "7");
testProperties.setProperty(AzureCloudConfig.AZURE_PURGE_BATCH_SIZE, "10");
testProperties.setProperty(AzureCloudConfig.AZURE_STORAGE_CLIENT_CLASS, azureStorageClientClass);
verifiableProperties = new VerifiableProperties(testProperties);
clusterMap = Mockito.mock(ClusterMap.class);
azureDest = getAzureDestination(verifiableProperties);
cloudRequestAgent = new CloudRequestAgent(new CloudConfig(verifiableProperties), new VcrMetrics(new MetricRegistry()));
}
Aggregations