use of org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties 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();
}
use of org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties 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();
}
use of org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties in project components by Talend.
the class AzureStorageQueueComponentsTest method getConnectionProperties.
/**
* @see org.talend.components.azurestorage.queue.AzureStorageQueueProperties#getConnectionProperties()
*/
@Test
public void getConnectionProperties() {
TAzureStorageConnectionProperties connectionproperties = props.getConnectionProperties();
assertNotNull("connectionproperties cannot be null", connectionproperties);
}
use of org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties 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();
}
use of org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties in project components by Talend.
the class AzureStorageRuntimeTest method testInitializeValidReferencedConnection.
@Test
public void testInitializeValidReferencedConnection() {
// Init the referenced connection
TAzureStorageConnectionProperties referenced = new TAzureStorageConnectionProperties("sharedConnection");
referenced.setupProperties();
referenced.accountName.setValue("fakeAccountName");
referenced.accountKey.setValue("fakeAccountKey=ANBHFYRJJFHRIKKJFU");
// Add referenced connection to the runtime container
runtimeContainer.setComponentData("shared-connection", AzureStorageRuntime.KEY_CONNECTION_PROPERTIES, referenced);
// reference connection by id
properties.referencedComponent.componentInstanceId = new StringProperty("connection").setValue("shared-connection");
// init and test
ValidationResult validationResult = this.azureStorageRuntime.initialize(runtimeContainer, properties);
assertEquals(ValidationResult.OK.getStatus(), validationResult.getStatus());
assertNotNull(azureStorageRuntime.getConnectionProperties());
}
Aggregations