use of org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties in project components by Talend.
the class AzureStorageComponentListPropertiesTest method afterFormFinishTable2.
@Test(expected = NoSuchElementException.class)
public void afterFormFinishTable2() throws Exception {
TAzureStorageConnectionProperties connection = new TAzureStorageConnectionProperties("test");
connection.setupProperties();
connection.setupLayout();
connection.useSharedAccessSignature.setValue(true);
connection.sharedAccessSignature.setValue("https://talendrd.blob.core.windows.net/?sv=2016-05-31&ss=f&srt=sco&sp=rwdlacup&se=2017-06-07T23:50:05Z&st=2017-05-24T15:50:05Z&spr=https&sig=fakeSASfakeSASfakeSASfakeSASfakeSASfakeSASfakeSASfakeSAS");
properties.setConnection(connection);
List<NamedThing> nameWithNumeric = new ArrayList<NamedThing>();
nameWithNumeric.add(new SimpleNamedThing("2Name_with_numeric2", "2Name_with_numeric2"));
properties.selectedTableNames.setStoredValue(nameWithNumeric);
@SuppressWarnings("unused") ValidationResult result = properties.afterFormFinishTable(repo);
}
use of org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties in project components by Talend.
the class AzureStorageSourceOrSinkTestIT method testInvalidConnection.
@Test(expected = Exception.class)
public void testInvalidConnection() throws Throwable {
// fail("Not yet implemented");
AzureStorageSourceOrSink sos = new AzureStorageSourceOrSink();
TAzureStorageConnectionProperties properties = new TAzureStorageConnectionProperties("tests");
properties.setupProperties();
sos.initialize(runtime, properties);
}
use of org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties in project components by Talend.
the class AzureStorageQueueCreateRuntimeTest method setup.
@Before
public void setup() throws IOException {
properties = new TAzureStorageQueueCreateProperties(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");
runtimeContainer = new RuntimeContainerMock();
this.azureStorageQueueCreate = new AzureStorageQueueCreateRuntime();
}
use of org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties in project components by Talend.
the class AzureStorageTableWriteOperationTest method setUp.
@Before
public void setUp() throws Exception {
container = new RuntimeContainerMock();
sink = new AzureStorageTableSink();
properties = new TAzureStorageOutputTableProperties(PROP_ + "InputTable");
properties.setupProperties();
// valid fake 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.dieOnError.setValue(false);
properties.tableName.setValue("testtable");
properties.actionOnTable.setValue(ActionOnTable.Create_table_if_does_not_exist);
properties.actionOnData.setValue(ActionOnData.Insert);
properties.schema.schema.setValue(TableHelper.getWriteSchema());
properties.schemaReject.schema.setValue(TableHelper.getRejectSchema());
properties.partitionKey.setStoredValue("PartitionKey");
properties.rowKey.setStoredValue("RowKey");
}
use of org.talend.components.azurestorage.tazurestorageconnection.TAzureStorageConnectionProperties in project components by Talend.
the class AzureStorageQueueDeleteRuntimeTest method setup.
@Before
public void setup() throws IOException {
properties = new TAzureStorageQueueDeleteProperties(PROP_ + "Delete");
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.queueDelete = new AzureStorageQueueDeleteRuntime();
}
Aggregations