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

e2e: add basic upgrade tests #5906

Merged
merged 2 commits into from
Jul 11, 2016
Merged

e2e: add basic upgrade tests #5906

merged 2 commits into from
Jul 11, 2016

Conversation

gyuho
Copy link
Contributor

@gyuho gyuho commented Jul 9, 2016

For coreos#5697.

@gyuho gyuho changed the title [WIP] e2e: add basic release migration test e2e: add basic release migration test Jul 9, 2016
@@ -58,6 +58,7 @@ function unit_tests {

function integration_tests {
echo "Running integration tests..."
MIGRATION_FROM=v3.0.2
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This might be better with environmental variable. I put this just for this PR to test it in the CI.

@gyuho gyuho force-pushed the release-test branch 6 times, most recently from 255aa7f to 4ead59a Compare July 9, 2016 07:40
@gyuho
Copy link
Contributor Author

gyuho commented Jul 11, 2016

@heyitsanthony @xiang90 Please review. This adds basic migration tests that I do manually for releases.

@@ -57,7 +57,16 @@ function unit_tests {
}

function integration_tests {
echo "Running integration tests..."
MIGRATION_TEST="v3.0.2"
Copy link
Contributor

Choose a reason for hiding this comment

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

this should probably get the last release version from git (grep for version: bump?)

@heyitsanthony
Copy link
Contributor

overall seems like the right direction

@gyuho
Copy link
Contributor Author

gyuho commented Jul 11, 2016

@heyitsanthony All addressed.

Test can now run with RELEASE_TEST=y, only in semaphore.

PTAL.

Thanks.


// TestReleaseMigrate ensures that changes to master branch does not affect the
// migration from latest etcd releases.
func TestReleaseMigrate(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

TestReleaseUpgrade? this is not migration, right?

@gyuho
Copy link
Contributor Author

gyuho commented Jul 11, 2016

@xiang90 Just added snap-count flag to the test. PTAL.

Thanks!

@gyuho gyuho changed the title e2e: add basic release migration test e2e: add basic upgrade tests Jul 11, 2016
@xiang90
Copy link
Contributor

xiang90 commented Jul 11, 2016

lgtm

@gyuho gyuho merged commit 2b6f04a into etcd-io:master Jul 11, 2016
@gyuho gyuho deleted the release-test branch July 11, 2016 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants