-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 initial acceptance test structure and first test #150
Conversation
dataline-acceptance-tests/src/accTest/java/io/dataline/tests/acceptance/AcceptanceTests.java
Outdated
Show resolved
Hide resolved
.workspaceId(defaultWorkspaceId) | ||
.connectionConfiguration(dbConfiguration); | ||
|
||
SourceImplementationRead createResponse = callApi("source_implementations/create", sourceImplementationCreate, SourceImplementationRead.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.
I wonder if we could generate a client from the oas definition. that will also help catch name changes if they happen
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.
Will look into this
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 hasn't been 100% straightforward, going to do this in a following PR so Jared can work off of this module
testImplementation "org.testcontainers:testcontainers:1.14.3" | ||
testImplementation "org.testcontainers:postgresql:1.14.3" | ||
testImplementation "org.postgresql:postgresql:42.2.16" |
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.
isn't it better when it is sorted?
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.
is there a plugin that will sort this?
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.
Found this. Might toy around with it but generally I don't find myself spending any meaningful time reorganizing deps
dataline-acceptance-tests/src/accTest/java/io/dataline/tests/acceptance/AcceptanceTests.java
Outdated
Show resolved
Hide resolved
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.
Looks good. I'd prefer for the module to be a more general name like dataline-tests
or something which includes integration-specific as well as end to end tests.
Co-authored-by: Michel Tricot <[email protected]>
What
How
dataline-acceptance-tests
gradle subproject. This module's tests are run only when explicitly requested, and not as part of the main build.Recommended reading order
dataline-acceptance-tests/build.gradle
tools/bin/build.sh
.gradle.yml
AcceptanceTests.java