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

Add unit tests for the LVM cache support #199

Merged
merged 5 commits into from
Aug 14, 2015

Conversation

vpodzime
Copy link
Contributor

So that we can catch possible regressions easily in the future.

@dwlehman
Copy link
Contributor

Please also add assert statements to some of the other lvm tests to ensure they correctly report themselves as not being cached -- maybe device_properties_test is a good place for that.

@vpodzime
Copy link
Contributor Author

That's a good point, will do.

So that we can catch possible regressions easily in the future.
If there are no such internal LVs as some properties check, the result is
sum([]), which is 0. However, these properties are supposed to return size, thus
a Size instance.
We need to make sure these are all available and have proper values.
It should report it is cached with some other values reflecting the fact too.
@vpodzime
Copy link
Contributor Author

Added one more check to the LVM cache support unit test (vgSpaceUsed), one fix and tests that make sure both cached and not-cached LVs report expected values of required properties.

@vojtechtrefny
Copy link
Member

Looks good to me.

vpodzime added a commit that referenced this pull request Aug 14, 2015
Add unit tests for the LVM cache support
@vpodzime vpodzime merged commit 21030ec into storaged-project:master Aug 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants