Search in sources :

Example 1 with LegendDefaultDatabaseAuthenticationFlowProvider

use of org.finos.legend.engine.authentication.LegendDefaultDatabaseAuthenticationFlowProvider in project legend-engine by finos.

the class ExternalIntegration_TestConnectionAcquisitionWithFlowProvider_BigQuery method setup.

@Before
public void setup() {
    LegendDefaultDatabaseAuthenticationFlowProvider flowProvider = new LegendDefaultDatabaseAuthenticationFlowProvider();
    assertBigQueryFlowIsAvailable(flowProvider);
    this.connectionManagerSelector = new ConnectionManagerSelector(new TemporaryTestDbConfiguration(-1), Collections.emptyList(), Optional.of(flowProvider));
}
Also used : LegendDefaultDatabaseAuthenticationFlowProvider(org.finos.legend.engine.authentication.LegendDefaultDatabaseAuthenticationFlowProvider) TemporaryTestDbConfiguration(org.finos.legend.engine.plan.execution.stores.relational.config.TemporaryTestDbConfiguration) ConnectionManagerSelector(org.finos.legend.engine.plan.execution.stores.relational.connection.manager.ConnectionManagerSelector) Before(org.junit.Before)

Example 2 with LegendDefaultDatabaseAuthenticationFlowProvider

use of org.finos.legend.engine.authentication.LegendDefaultDatabaseAuthenticationFlowProvider in project legend-engine by finos.

the class ExternalIntegration_TestConnectionAcquisitionWithFlowProvider_SqlServer method setup.

@Before
public void setup() throws Exception {
    startMSSQLServerContainer();
    LegendDefaultDatabaseAuthenticationFlowProvider flowProvider = new LegendDefaultDatabaseAuthenticationFlowProvider();
    assertStaticSQLServerFlowProviderIsAvailable(flowProvider);
    this.connectionManagerSelector = new ConnectionManagerSelector(new TemporaryTestDbConfiguration(-1), Collections.emptyList(), Optional.of(flowProvider));
    Properties properties = new Properties();
    properties.put("sqlServerAccount.user", "SA");
    properties.put("sqlServerAccount.password", "A_Str0ng_Required_Password");
    this.vaultImplementation = new PropertiesVaultImplementation(properties);
    Vault.INSTANCE.registerImplementation(this.vaultImplementation);
}
Also used : LegendDefaultDatabaseAuthenticationFlowProvider(org.finos.legend.engine.authentication.LegendDefaultDatabaseAuthenticationFlowProvider) TemporaryTestDbConfiguration(org.finos.legend.engine.plan.execution.stores.relational.config.TemporaryTestDbConfiguration) Properties(java.util.Properties) ConnectionManagerSelector(org.finos.legend.engine.plan.execution.stores.relational.connection.manager.ConnectionManagerSelector) PropertiesVaultImplementation(org.finos.legend.engine.shared.core.vault.PropertiesVaultImplementation)

Example 3 with LegendDefaultDatabaseAuthenticationFlowProvider

use of org.finos.legend.engine.authentication.LegendDefaultDatabaseAuthenticationFlowProvider in project legend-engine by finos.

the class TestConnectionAcquisitionWithFlowProvider_H2 method setup.

@Before
public void setup() {
    LegendDefaultDatabaseAuthenticationFlowProvider flowProvider = new LegendDefaultDatabaseAuthenticationFlowProvider();
    assertStaticH2FlowIsAvailable(flowProvider);
    this.connectionManagerSelector = new ConnectionManagerSelector(new TemporaryTestDbConfiguration(-1), Collections.emptyList(), Optional.of(flowProvider));
}
Also used : LegendDefaultDatabaseAuthenticationFlowProvider(org.finos.legend.engine.authentication.LegendDefaultDatabaseAuthenticationFlowProvider) TemporaryTestDbConfiguration(org.finos.legend.engine.plan.execution.stores.relational.config.TemporaryTestDbConfiguration) ConnectionManagerSelector(org.finos.legend.engine.plan.execution.stores.relational.connection.manager.ConnectionManagerSelector) Before(org.junit.Before)

Example 4 with LegendDefaultDatabaseAuthenticationFlowProvider

use of org.finos.legend.engine.authentication.LegendDefaultDatabaseAuthenticationFlowProvider in project legend-engine by finos.

the class ExternalIntegration_TestConnectionAcquisitionWithFlowProvider_Databricks method setup.

@Before
public void setup() {
    LegendDefaultDatabaseAuthenticationFlowProvider flowProvider = new LegendDefaultDatabaseAuthenticationFlowProvider();
    assertDatabricksApiTokenFlowIsAvailable(flowProvider);
    this.connectionManagerSelector = new ConnectionManagerSelector(new TemporaryTestDbConfiguration(-1), Collections.emptyList());
}
Also used : LegendDefaultDatabaseAuthenticationFlowProvider(org.finos.legend.engine.authentication.LegendDefaultDatabaseAuthenticationFlowProvider) TemporaryTestDbConfiguration(org.finos.legend.engine.plan.execution.stores.relational.config.TemporaryTestDbConfiguration) ConnectionManagerSelector(org.finos.legend.engine.plan.execution.stores.relational.connection.manager.ConnectionManagerSelector) Before(org.junit.Before)

Example 5 with LegendDefaultDatabaseAuthenticationFlowProvider

use of org.finos.legend.engine.authentication.LegendDefaultDatabaseAuthenticationFlowProvider in project legend-engine by finos.

the class ExternalIntegration_TestConnectionAcquisitionWithFlowProvider_Snowflake method setup.

@Before
public void setup() {
    LegendDefaultDatabaseAuthenticationFlowProvider flowProvider = new LegendDefaultDatabaseAuthenticationFlowProvider();
    assertSnowflakeKeyPairFlowIsAvailable(flowProvider);
    this.connectionManagerSelector = new ConnectionManagerSelector(new TemporaryTestDbConfiguration(-1), Collections.emptyList(), Optional.of(flowProvider));
}
Also used : LegendDefaultDatabaseAuthenticationFlowProvider(org.finos.legend.engine.authentication.LegendDefaultDatabaseAuthenticationFlowProvider) TemporaryTestDbConfiguration(org.finos.legend.engine.plan.execution.stores.relational.config.TemporaryTestDbConfiguration) ConnectionManagerSelector(org.finos.legend.engine.plan.execution.stores.relational.connection.manager.ConnectionManagerSelector) Before(org.junit.Before)

Aggregations

LegendDefaultDatabaseAuthenticationFlowProvider (org.finos.legend.engine.authentication.LegendDefaultDatabaseAuthenticationFlowProvider)5 TemporaryTestDbConfiguration (org.finos.legend.engine.plan.execution.stores.relational.config.TemporaryTestDbConfiguration)5 ConnectionManagerSelector (org.finos.legend.engine.plan.execution.stores.relational.connection.manager.ConnectionManagerSelector)5 Before (org.junit.Before)4 Properties (java.util.Properties)1 PropertiesVaultImplementation (org.finos.legend.engine.shared.core.vault.PropertiesVaultImplementation)1