-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add InfluxDB support #686
Add InfluxDB support #686
Conversation
public void getUrl() { | ||
String actual = influxDBContainer.getUrl(); | ||
|
||
assertThat(actual, startsWith("http://localhost:")); |
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.
this is not always true :)
modules/spock/build.gradle
Outdated
@@ -9,9 +9,10 @@ dependencies { | |||
compile 'org.spockframework:spock-core:1.0-groovy-2.4' | |||
|
|||
testCompile project(':mysql') | |||
testCompile project(':influxdb') |
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 don't think spock testing of it is needed
public class InfluxDBContainer<SELF extends InfluxDBContainer<SELF>> extends GenericContainer<SELF> | ||
implements LinkableContainer { | ||
|
||
public static final String VERSION = "latest"; |
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.
could you please fix the version? We're trying to not use latest
anymore to avoid unexpected test failures when new image is released (like it happened with MySQL 8 :D )
|
||
private boolean authEnabled = true; | ||
private String admin = "admin"; | ||
private String adminPassword = UUID.randomUUID().toString(); |
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.
does it really make sense to randomize it?
* @param hostPort a port on the docker host, which must be available | ||
* @return a reference to this container instance | ||
*/ | ||
public SELF withFixedExposedPort(int hostPort) { |
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.
why this method?
modules/influxdb/build.gradle
Outdated
|
||
compile "org.influxdb:influxdb-java:${influxdbJavaClientVersion}" | ||
|
||
testCompile "junit:junit:$junitVersion" |
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.
junit should be on classpath already
modules/influxdb/build.gradle
Outdated
dependencies { | ||
compile project(':testcontainers') | ||
|
||
compile "org.influxdb:influxdb-java:${influxdbJavaClientVersion}" |
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.
compileOnly
, users should bring their own drivers- could you please specify the version here?
ext
doesn't make a lot of sense unless shared between the modules (not the case)
|
||
## Dependency information | ||
|
||
Replace `VERSION` with the [latest version available on Maven Central](https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.testcontainers%22). |
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.
You could also use the latest version badge:
[![](https://api.bintray.com/packages/testcontainers/releases/testcontainers/images/download.svg)](https://bintray.com/testcontainers/releases/testcontainers/_latestVersion)
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.
added
Hi @banadiga, any progress? :) |
dd8b953
to
2fc40d1
Compare
Hi @bsideup all comments fixed |
@banadiga cool! Almost there, just forgot to ask you to add a line to CHANGELOG.md, sorry about that :) |
Hi @bsideup, no problem ) CHANGELOG updated |
@banadiga merged, thanks! 🎉 |
Add support for InfluxDB