Search in sources :

Example 1 with RuntimeContainerMock

use of org.talend.components.azurestorage.RuntimeContainerMock in project components by Talend.

the class AzureStorageContainerExistRuntimeTest method setup.

@Before
public void setup() {
    properties = new TAzureStorageContainerExistProperties(PROP_ + "ExistContainer");
    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.existContainer = new AzureStorageContainerExistRuntime();
}
Also used : RuntimeContainerMock(org.talend.components.azurestorage.RuntimeContainerMock) TAzureStorageContainerExistProperties(org.talend.components.azurestorage.blob.tazurestoragecontainerexist.TAzureStorageContainerExistProperties) TAzureStorageConnectionProperties(org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties) Before(org.junit.Before)

Example 2 with RuntimeContainerMock

use of org.talend.components.azurestorage.RuntimeContainerMock in project components by Talend.

the class AzureStorageDeleteRuntimeTest method setup.

@Before
public void setup() {
    properties = new TAzureStorageDeleteProperties(PROP_ + "DeleteBlock");
    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("valide-container-name-1");
    runtimeContainer = new RuntimeContainerMock();
    this.deleteBlock = new AzureStorageDeleteRuntime();
}
Also used : RuntimeContainerMock(org.talend.components.azurestorage.RuntimeContainerMock) TAzureStorageConnectionProperties(org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties) TAzureStorageDeleteProperties(org.talend.components.azurestorage.blob.tazurestoragedelete.TAzureStorageDeleteProperties) Before(org.junit.Before)

Example 3 with RuntimeContainerMock

use of org.talend.components.azurestorage.RuntimeContainerMock in project components by Talend.

the class AzureStorageQueuePurgeRuntimeTest method setup.

@Before
public void setup() throws IOException {
    properties = new TAzureStorageQueuePurgeProperties(PROP_ + "Purge");
    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.azureStorageQueuePurge = new AzureStorageQueuePurgeRuntime();
}
Also used : RuntimeContainerMock(org.talend.components.azurestorage.RuntimeContainerMock) TAzureStorageQueuePurgeProperties(org.talend.components.azurestorage.queue.tazurestoragequeuepurge.TAzureStorageQueuePurgeProperties) TAzureStorageConnectionProperties(org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties) Before(org.junit.Before)

Example 4 with RuntimeContainerMock

use of org.talend.components.azurestorage.RuntimeContainerMock 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();
}
Also used : RuntimeContainerMock(org.talend.components.azurestorage.RuntimeContainerMock) TAzureStorageConnectionProperties(org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties) Before(org.junit.Before)

Example 5 with RuntimeContainerMock

use of org.talend.components.azurestorage.RuntimeContainerMock 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();
}
Also used : TAzureStorageContainerDeleteProperties(org.talend.components.azurestorage.blob.tazurestoragecontainerdelete.TAzureStorageContainerDeleteProperties) RuntimeContainerMock(org.talend.components.azurestorage.RuntimeContainerMock) TAzureStorageConnectionProperties(org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties) Before(org.junit.Before)

Aggregations

RuntimeContainerMock (org.talend.components.azurestorage.RuntimeContainerMock)17 TAzureStorageConnectionProperties (org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties)16 Before (org.junit.Before)15 TAzureStorageQueueCreateProperties (org.talend.components.azurestorage.queue.tazurestoragequeuecreate.TAzureStorageQueueCreateProperties)2 TAzureStorageOutputTableProperties (org.talend.components.azurestorage.table.tazurestorageoutputtable.TAzureStorageOutputTableProperties)2 TAzureStorageContainerCreateProperties (org.talend.components.azurestorage.blob.tazurestoragecontainercreate.TAzureStorageContainerCreateProperties)1 TAzureStorageContainerDeleteProperties (org.talend.components.azurestorage.blob.tazurestoragecontainerdelete.TAzureStorageContainerDeleteProperties)1 TAzureStorageContainerExistProperties (org.talend.components.azurestorage.blob.tazurestoragecontainerexist.TAzureStorageContainerExistProperties)1 TAzureStorageContainerListProperties (org.talend.components.azurestorage.blob.tazurestoragecontainerlist.TAzureStorageContainerListProperties)1 TAzureStorageDeleteProperties (org.talend.components.azurestorage.blob.tazurestoragedelete.TAzureStorageDeleteProperties)1 TAzureStorageGetProperties (org.talend.components.azurestorage.blob.tazurestorageget.TAzureStorageGetProperties)1 TAzureStorageListProperties (org.talend.components.azurestorage.blob.tazurestoragelist.TAzureStorageListProperties)1 TAzureStoragePutProperties (org.talend.components.azurestorage.blob.tazurestorageput.TAzureStoragePutProperties)1 TAzureStorageQueueDeleteProperties (org.talend.components.azurestorage.queue.tazurestoragequeuedelete.TAzureStorageQueueDeleteProperties)1 TAzureStorageQueueInputProperties (org.talend.components.azurestorage.queue.tazurestoragequeueinput.TAzureStorageQueueInputProperties)1 TAzureStorageQueueListProperties (org.talend.components.azurestorage.queue.tazurestoragequeuelist.TAzureStorageQueueListProperties)1 TAzureStorageQueuePurgeProperties (org.talend.components.azurestorage.queue.tazurestoragequeuepurge.TAzureStorageQueuePurgeProperties)1 TAzureStorageInputTableProperties (org.talend.components.azurestorage.table.tazurestorageinputtable.TAzureStorageInputTableProperties)1