Skip to content

Commit

Permalink
old auth is not working
Browse files Browse the repository at this point in the history
  • Loading branch information
alexradzin committed Nov 14, 2023
1 parent 8d3f1ff commit 2cd29b4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
18 changes: 9 additions & 9 deletions src/integrationTest/java/integration/tests/StatementTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
@CustomLog
class StatementTest extends IntegrationTest {

// @BeforeEach
// void beforeEach() {
// executeStatementFromFile("/statements/statement/ddl.sql");
// }
//
// @AfterEach
// void afterEach() {
// executeStatementFromFile("/statements/statement/cleanup.sql");
// }
@BeforeEach
void beforeEach() {
executeStatementFromFile("/statements/statement/ddl.sql");
}

@AfterEach
void afterEach() {
executeStatementFromFile("/statements/statement/cleanup.sql");
}

@Test
void shouldSelect1() throws SQLException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class SystemEngineTest extends IntegrationTest {
@BeforeAll
void beforeAll() {
try {
executeStatementFromFile("/statements/system/ddl.sql", null);
executeStatementFromFile("/statements/system/ddl.sql", getSystemEngineName());
} catch (Exception e) {
log.warn("Could not execute statement", e);
}
Expand All @@ -42,7 +42,7 @@ void beforeAll() {
@AfterAll
void afterAll() {
try {
executeStatementFromFile("/statements/system/cleanup.sql", null);
executeStatementFromFile("/statements/system/cleanup.sql", getSystemEngineName());
} catch (Exception e) {
log.warn("Could not execute statement", e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ protected void authenticate() throws SQLException {
protected FireboltProperties extractFireboltProperties(String jdbcUri, Properties connectionProperties) {
FireboltProperties properties = super.extractFireboltProperties(jdbcUri, connectionProperties);
boolean systemEngine = "system".equals(properties.getEngine());
return properties.toBuilder().systemEngine(systemEngine).build();
boolean compressed = !systemEngine && properties.isCompress();
return properties.toBuilder().systemEngine(systemEngine).compress(compressed).build();
}

@Override
Expand Down

0 comments on commit 2cd29b4

Please sign in to comment.