-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integation tests for PgSQL connector #67
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't gone through all the code yet, but have some comments at this point already.
src/integration-test/java/io/aiven/connect/jdbc/pg/AbstractPgSqlAwareIT.java
Outdated
Show resolved
Hide resolved
src/integration-test/java/io/aiven/connect/jdbc/pg/AbstractPgSqlAwareIT.java
Outdated
Show resolved
Hide resolved
src/integration-test/java/io/aiven/connect/jdbc/AbstractIT.java
Outdated
Show resolved
Hide resolved
src/integration-test/java/io/aiven/connect/jdbc/pg/PgSqlSinkConnectorIT.java
Outdated
Show resolved
Hide resolved
src/integration-test/java/io/aiven/connect/jdbc/pg/PgSqlSinkConnectorIT.java
Outdated
Show resolved
Hide resolved
src/integration-test/java/io/aiven/connect/jdbc/pg/PgSqlSourceConnectorIT.java
Outdated
Show resolved
Hide resolved
4366738
to
5ea08e4
Compare
5ea08e4
to
0bf8ac8
Compare
Add Github Actions workflow for making releases
Release version 6.3.1
The default JDK version in workflow build is 8 while we use 11. This change set up JDK version to 11 for the build
Setup jdk version in workflow
if (project.hasProperty("tablePollIntervalMs")) { | ||
//pass table.poll.interval.ms | ||
systemProperty("integration-test.table.poll.interval.ms", project.hasProperty("tablePollIntervalMs")) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure it's a good idea to put the burden of choosing this value (or even knowing the value must be chosen) on whoever is going to run the tests. For example, I frankly have no idea what I should insert here without some research. We just need one good enough value set as a constant in tests somewhere.
|
||
public class AbstractPgSqlAwareIT extends AbstractIT { | ||
|
||
static final Logger LOGGER = LoggerFactory.getLogger(PostgreSQLContainer.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static final Logger LOGGER = LoggerFactory.getLogger(PostgreSQLContainer.class); | |
static final Logger LOGGER = LoggerFactory.getLogger(AbstractPgSqlAwareIT.class); |
return AdminClient.create(adminClientConfig); | ||
} | ||
|
||
private static Path setupPluginDir() throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically could be run in some @BeforeAll
instead of @BeforeEach
No description provided.