Skip to content
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

[OTPL-6466] Using PostgreSQLContainer as a back end with same API #164

Merged
merged 53 commits into from
Jan 31, 2022

Conversation

dkaukov
Copy link
Contributor

@dkaukov dkaukov commented Nov 1, 2021

No description provided.

@dkaukov dkaukov marked this pull request as draft November 1, 2021 07:02
@dkaukov dkaukov changed the title [DNM ]Using PostgreSQLContainer as a back end with same API Using PostgreSQLContainer as a back end with same API Dec 20, 2021
@dkaukov dkaukov marked this pull request as ready for review December 20, 2021 16:51
@dkaukov dkaukov changed the title Using PostgreSQLContainer as a back end with same API [OTPL-6466] Using PostgreSQLContainer as a back end with same API Dec 21, 2021
@mikebell90
Copy link
Contributor

Revise README, to acccount for the changes

@mikebell90
Copy link
Contributor

I believe EmbeddedUtil can be deleted and org tukaani xz can be removed from dependency?

mikebell90 and others added 3 commits January 10, 2022 12:26
Delete embedded util
Update to POM 308 (which pulls testcontainer update along)
README.md Outdated
@@ -48,31 +48,22 @@ independent databases gives you.

## Postgres version

The JAR file contains bundled version of Postgres. You can pass different Postgres version by implementing [`PgBinaryResolver`](src/main/java/com/opentable/db/postgres/embedded/PgBinaryResolver.java).
It is possible to change postgres version:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adapt some of my wording in CHANGELOG. In particular you should note what. no longer exists

  • Support for a local postgres (for now)
  • any other config options that changed.

pom.xml Outdated
@@ -31,7 +31,7 @@

<groupId>com.opentable.components</groupId>
<artifactId>otj-pg-embedded</artifactId>
<version>0.13.5-SNAPSHOT</version>
<version>1.01.1-SNAPSHOT</version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason this isn't 1.0.0?

pom.xml Outdated
<version>${dep.testcontainers.version}</version>
<exclusions>
<exclusion>
<groupId>junit</groupId>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dumb question, why did this need to be excluded? To make it optional which version I'm guessing?


lock();
startPostmaster(connectConfig);
private List<String> createInitOptions(final Map<String, String> localeConfig) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is confusing. Note under createConfigIOptions we have a hasmap called initOptions and under createInitOptions we have a localeOptions.

Also what is the distinction?

@mikebell90 mikebell90 merged commit d228aaf into master Jan 31, 2022
@mikebell90 mikebell90 deleted the testcontainers branch January 31, 2022 19:15
Copy link
Contributor Author

@dkaukov dkaukov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants