Search in sources :

Example 6 with RdsDetails

use of com.sequenceiq.cloudbreak.structuredevent.event.RdsDetails in project cloudbreak by hortonworks.

the class RdsConfigToRdsDetailsConverterTest method testWhenSslModeInternal.

private void testWhenSslModeInternal(DatabaseType databaseType, DatabaseVendor vendor, RdsSslMode sslMode, String sslModeStringExpected) {
    RDSConfig source = TestUtil.rdsConfig(databaseType, vendor);
    source.setSslMode(sslMode);
    RdsDetails result = underTest.convert(source);
    assertThat(result).isNotNull();
    assertThat(result.getSslMode()).isEqualTo(sslModeStringExpected);
}
Also used : RDSConfig(com.sequenceiq.cloudbreak.domain.RDSConfig) RdsDetails(com.sequenceiq.cloudbreak.structuredevent.event.RdsDetails)

Aggregations

RdsDetails (com.sequenceiq.cloudbreak.structuredevent.event.RdsDetails)6 RDSConfig (com.sequenceiq.cloudbreak.domain.RDSConfig)5 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)4 MethodSource (org.junit.jupiter.params.provider.MethodSource)4 Workspace (com.sequenceiq.cloudbreak.workspace.model.Workspace)1