use of org.talend.components.azurestorage.RuntimeContainerMock 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.RuntimeContainerMock 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.RuntimeContainerMock 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();
}
use of org.talend.components.azurestorage.RuntimeContainerMock in project components by Talend.
the class AzureStorageQueueRuntimeTest 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.azureStorageQueue = new AzureStorageQueueRuntime() {
};
}
use of org.talend.components.azurestorage.RuntimeContainerMock in project components by Talend.
the class AzureStorageTableReaderTest method setUp.
@Before
public void setUp() throws Exception {
container = new RuntimeContainerMock();
properties = new TAzureStorageInputTableProperties(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.tableName.setValue("testTable");
properties.filterExpression.column.setValue(new ArrayList<String>());
properties.filterExpression.fieldType.setValue(new ArrayList<String>());
properties.filterExpression.function.setValue(new ArrayList<String>());
properties.filterExpression.operand.setValue(new ArrayList<String>());
properties.filterExpression.predicate.setValue(new ArrayList<String>());
properties.filterExpression.column.getValue().add("PartitionKey");
properties.filterExpression.fieldType.getValue().add(SupportedFieldType.STRING.name());
properties.filterExpression.function.getValue().add(Comparison.EQUAL.name());
properties.filterExpression.operand.getValue().add("Departement");
properties.filterExpression.predicate.getValue().add(Predicate.AND.name());
source = new AzureStorageTableSource();
}
Aggregations