use of org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties in project components by Talend.
the class AzureStorageRuntimeTest method setup.
@Before
public void setup() {
runtimeContainer = new RuntimeContainerMock();
this.azureStorageRuntime = new AzureStorageRuntime();
properties = new TAzureStorageConnectionProperties(PROP_CONNECTION);
properties.setupProperties();
}
use of org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties in project components by Talend.
the class AzureStorageContainerDeleteRuntimeTest method setup.
@Before
public void setup() {
properties = new TAzureStorageContainerDeleteProperties(PROP_ + "DeleteContainer");
properties.setupProperties();
// valid connection
properties.connection = new TAzureStorageConnectionProperties(PROP_ + "Connection");
properties.connection.protocol.setValue(Protocol.HTTP);
properties.connection.accountName.setValue("fakeAccountName");
properties.connection.accountKey.setValue("fakeAccountKey=ANBHFYRJJFHRIKKJFU");
runtimeContainer = new RuntimeContainerMock();
this.deleteContainer = new AzureStorageContainerDeleteRuntime();
}
use of org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties in project components by Talend.
the class AzureStorageContainerListReaderTest method setUp.
@Before
public void setUp() throws Exception {
runtimeContainer = new RuntimeContainerMock();
AzureStorageSource source = new AzureStorageSource();
TAzureStorageContainerListProperties properties = new TAzureStorageContainerListProperties(PROP_ + "ContainerList");
properties.connection = new TAzureStorageConnectionProperties(PROP_ + "Connection");
properties.connection.protocol.setValue(Protocol.HTTP);
properties.connection.accountName.setValue("fakeAccountName");
properties.connection.accountKey.setValue("fakeAccountKey=ANBHFYRJJFHRIKKJFU");
properties.setupProperties();
source.initialize(runtimeContainer, properties);
reader = (AzureStorageContainerListReader) source.createReader(runtimeContainer);
reader.blobService = blobService;
}
use of org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties in project components by Talend.
the class AzureStorageGetRuntimeTest method setup.
@Before
public void setup() throws IOException {
properties = new TAzureStorageGetProperties(PROP_ + "Get");
properties.setupProperties();
// valid connection
properties.connection = new TAzureStorageConnectionProperties(PROP_ + "Connection");
properties.connection.protocol.setValue(Protocol.HTTP);
properties.connection.accountName.setValue("fakeAccountName");
properties.connection.accountKey.setValue("fakeAccountKey=ANBHFYRJJFHRIKKJFU");
properties.container.setValue("goog-container-name-1");
runtimeContainer = new RuntimeContainerMock();
this.storageGet = new AzureStorageGetRuntime();
localFolder = FileUtils.createTempDirectory();
}
use of org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties in project components by Talend.
the class AzureStoragePutRuntimeTest method setup.
@Before
public void setup() throws IOException {
properties = new TAzureStoragePutProperties(PROP_ + "Put");
properties.setupProperties();
// valid connection
properties.connection = new TAzureStorageConnectionProperties(PROP_ + "Connection");
properties.connection.protocol.setValue(Protocol.HTTP);
properties.connection.accountName.setValue("fakeAccountName");
properties.connection.accountKey.setValue("fakeAccountKey=ANBHFYRJJFHRIKKJFU");
properties.container.setValue("goog-container-name-1");
runtimeContainer = new RuntimeContainerMock();
this.storagePut = new AzureStoragePutRuntime();
localFolderPath = getClass().getClassLoader().getResource("azurestorage-put").getPath();
}
Aggregations