Skip to content

Tests: extract common blob store tests for reuse in plugins#14050

Merged
imotov merged 1 commit intoelastic:masterfrom
imotov:extract-snapshot-restore-test-cases
Jan 28, 2016
Merged

Tests: extract common blob store tests for reuse in plugins#14050
imotov merged 1 commit intoelastic:masterfrom
imotov:extract-snapshot-restore-test-cases

Conversation

@imotov
Copy link
Copy Markdown
Contributor

@imotov imotov commented Oct 9, 2015

Extracts basic tests that can be shared with snapshot/restore plugins to test their basic functionality.

@imotov imotov added >test Issues or PRs that are addressing/adding tests review :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs labels Oct 9, 2015
@imotov
Copy link
Copy Markdown
Contributor Author

imotov commented Oct 9, 2015

@tlrx that's what I had in mind. Could you take a look to see if it will help with GCS repo?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe can we rename this class to FsBlobStoreTests ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch. Renaming.

@tlrx
Copy link
Copy Markdown
Member

tlrx commented Oct 14, 2015

@imotov thanks for taking care of this, it looks great. I made few comments, mostly on the form and what we'd like to have in testing classes.

@imotov
Copy link
Copy Markdown
Contributor Author

imotov commented Oct 14, 2015

@tlrx pushed some changes. when you have a moment, I would like to discuss your suggestion about the content of ESBlobStoreRepositoryIntegTestCase

@imotov imotov force-pushed the extract-snapshot-restore-test-cases branch from cb5a7d6 to 7378183 Compare December 21, 2015 19:53
@imotov
Copy link
Copy Markdown
Contributor Author

imotov commented Dec 21, 2015

@tlrx I have rebased on the latest master and significantly simplify the common set of tests. Could you take another look and let me know if that makes more sense?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could this be renamed to assertSuccessfulRestore?

@tlrx
Copy link
Copy Markdown
Member

tlrx commented Jan 15, 2016

@imotov I left some minor comments but nothing really important.

I really like the latest changes, it's simpler and more meaningful so thanks a lot!

@imotov imotov force-pushed the extract-snapshot-restore-test-cases branch from 7378183 to 1f07629 Compare January 19, 2016 20:25
@imotov
Copy link
Copy Markdown
Contributor Author

imotov commented Jan 19, 2016

@tlrx great catch! Thanks! I have pushed the latest changes after your review.

@tlrx
Copy link
Copy Markdown
Member

tlrx commented Jan 20, 2016

LGTM

@tlrx tlrx removed the review label Jan 20, 2016
Adds unit tests for blob operations and integration tests for repository operations. These tests can be used by repository plugins to verify that repository operations were implemented as expected by BlobStoreRepository.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >test Issues or PRs that are addressing/adding tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants