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

cls/rbd: add snapshot limit UINT64_MAX test case #31350

Merged
merged 1 commit into from
Nov 6, 2019

Conversation

chenpan1012
Copy link

Signed-off-by: Chen Pan chenpan@cmss.chinamobile.com

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard backend
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@@ -723,6 +723,10 @@ TEST_F(TestClsRbd, snapshot_limits)

ASSERT_EQ(0, create_image(&ioctx, oid, 0, 22, RBD_FEATURE_LAYERING, oid, -1));

// if snapshot doesn't set limit, the limit is UINT64_MAX
ASSERT_EQ(0, snapshot_get_limit(&ioctx, oid, &limit));
ASSERT_EQ(limit, UINT64_MAX);
Copy link

Choose a reason for hiding this comment

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

Expectation should be listed first:

Suggested change
ASSERT_EQ(limit, UINT64_MAX);
ASSERT_EQ(UINT64_MAX, limit);

Copy link
Author

Choose a reason for hiding this comment

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

Thanks.
I will change later.

Signed-off-by: Chen Pan <chenpan@cmss.chinamobile.com>
Copy link

@dillaman dillaman left a comment

Choose a reason for hiding this comment

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

lgtm

@zhengchengyao
Copy link
Contributor

jenkins test make check arm64

@dillaman dillaman merged commit 8cb1f6b into ceph:master Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants