Search in sources :

Example 6 with TAzureStorageConnectionProperties

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

Example 7 with TAzureStorageConnectionProperties

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();
}
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)

Example 8 with TAzureStorageConnectionProperties

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

Example 9 with TAzureStorageConnectionProperties

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

Example 10 with TAzureStorageConnectionProperties

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

Aggregations

TAzureStorageConnectionProperties (org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties)27 RuntimeContainerMock (org.talend.components.azurestorage.RuntimeContainerMock)16 Before (org.junit.Before)14 Test (org.junit.Test)7 ValidationResult (org.talend.daikon.properties.ValidationResult)3 ArrayList (java.util.ArrayList)2 Matcher (java.util.regex.Matcher)2 ComponentWizard (org.talend.components.api.wizard.ComponentWizard)2 TAzureStorageQueueCreateProperties (org.talend.components.azurestorage.queue.tazurestoragequeuecreate.TAzureStorageQueueCreateProperties)2 TAzureStorageOutputTableProperties (org.talend.components.azurestorage.table.tazurestorageoutputtable.TAzureStorageOutputTableProperties)2 NamedThing (org.talend.daikon.NamedThing)2 Form (org.talend.daikon.properties.presentation.Form)2 ComponentWizardDefinition (org.talend.components.api.wizard.ComponentWizardDefinition)1 WizardNameComparator (org.talend.components.api.wizard.WizardNameComparator)1 AzureStorageProvideConnectionProperties (org.talend.components.azurestorage.AzureStorageProvideConnectionProperties)1 AzureStorageSourceOrSink (org.talend.components.azurestorage.blob.runtime.AzureStorageSourceOrSink)1 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