Configuration conf = createTestConfiguration(initialConfiguration); configurePageBlobDir(conf); configureAtomicRenameDir(conf); CloudStorageAccount account = createTestAccount(conf); if (account == null) {
Configuration conf = createTestConfiguration(initialConfiguration); configurePageBlobDir(conf); configureAtomicRenameDir(conf); CloudStorageAccount account = createTestAccount(conf); if (account == null) {
public static AzureBlobStorageTestAccount createMock(Configuration conf) throws Exception { saveMetricsConfigFile(); configurePageBlobDir(conf); configureAtomicRenameDir(conf); AzureNativeFileSystemStore store = new AzureNativeFileSystemStore(); MockStorageInterface mockStorage = new MockStorageInterface(); store.setAzureStorageInteractionLayer(mockStorage); NativeAzureFileSystem fs = new NativeAzureFileSystem(store); setMockAccountKey(conf); // register the fs provider. fs.initialize(new URI(MOCK_WASB_URI), conf); AzureBlobStorageTestAccount testAcct = new AzureBlobStorageTestAccount(fs, mockStorage); return testAcct; }
public static AzureBlobStorageTestAccount createMock(Configuration conf) throws Exception { saveMetricsConfigFile(); configurePageBlobDir(conf); configureAtomicRenameDir(conf); AzureNativeFileSystemStore store = new AzureNativeFileSystemStore(); MockStorageInterface mockStorage = new MockStorageInterface(); store.setAzureStorageInteractionLayer(mockStorage); NativeAzureFileSystem fs = new NativeAzureFileSystem(store); setMockAccountKey(conf); configureSecureModeTestSettings(conf); // register the fs provider. fs.initialize(new URI(MOCK_WASB_URI), conf); AzureBlobStorageTestAccount testAcct = new AzureBlobStorageTestAccount(fs, mockStorage); return testAcct; }