-
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
Refactor MigrationAcceptanceTest to test for major version bumps #8154
Conversation
.thenReturn(false) | ||
.thenReturn(false) | ||
.thenReturn(true); |
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 wasn't aware this was a thing, cool
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.
A few small comments but overall LGTM
logsToExpect.add("Version: 0.17.0-alpha-db-patch"); | ||
private void runAirbyte(final File dockerComposeFile, | ||
final Properties env, | ||
final VoidCallable assertionExecutable, |
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.
nit: calling this an assertionExecutable
feels a little strange to me, because that makes me think that the function passed in should only be executing assertions. However in this PR you pass in the populateDataForFirstRun()
function which also loads data into the db. Maybe something like postStartupExecutable
would be better?
majorVersionBumpRun(); | ||
finalRun(targetVersion); | ||
// run "faux" major version bump version | ||
final File version32DockerComposeFile = MoreResources.readResourceAsFile("docker-compose.yaml"); |
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 the version 0.32.0 docker-compose file also need to be preserved, similar to the docker-compose-migration-test-0-17-0-alpha.yaml
file used above?
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.
good call. i had added the file to source but wasn't referencing it here. will fix.
...cceptanceTest/java/io/airbyte/test/automaticMigrationAcceptance/MigrationAcceptanceTest.java
Show resolved
Hide resolved
2bc7fc2
to
0f43bf6
Compare
What