@Override public DataStoreBlobStore init(TemporaryFolder folder) throws Exception { Properties props = AzureDataStoreUtils.getAzureConfig(); props.setProperty("cacheSize", "0"); container = props.getProperty(AzureConstants.AZURE_BLOB_CONTAINER_NAME); container = container + System.currentTimeMillis(); props.setProperty(AzureConstants.AZURE_BLOB_CONTAINER_NAME, container); DataStore ds = AzureDataStoreUtils.getAzureDataStore(props, folder.newFolder().getAbsolutePath()); blobStore = new DataStoreBlobStore(ds); cfgFilePath = createTempConfig( folder.newFile(getType().name() + String.valueOf(System.currentTimeMillis()) + ".config"), props); return blobStore; }
@Override public DataStoreBlobStore init(TemporaryFolder folder) throws Exception { Properties props = S3DataStoreUtils.getS3Config(); props.setProperty("cacheSize", "0"); container = props.getProperty(S3Constants.S3_BUCKET); container = container + System.currentTimeMillis(); props.setProperty(S3Constants.S3_BUCKET, container); DataStore ds = S3DataStoreUtils.getS3DataStore(S3DataStoreUtils.getFixtures().get(0), props, folder.newFolder().getAbsolutePath()); blobStore = new DataStoreBlobStore(ds); cfgFilePath = createTempConfig( folder.newFile(getType().name() + String.valueOf(System.currentTimeMillis()) + ".config"), props); return blobStore; }