]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tests: rgw crypto tests with partlen vector
authorAbhishek Lekshmanan <abhishek@suse.com>
Tue, 26 Mar 2019 18:12:15 +0000 (19:12 +0100)
committerAbhishek Lekshmanan <abhishek@suse.com>
Mon, 1 Apr 2019 15:48:13 +0000 (17:48 +0200)
commit6f64c31fb6e17ca1b4955389b6ebe31516c736b1
tree3f50a465ab2c35e3620a75c3ebf849882ee72a02
parente012c9abe4c3616bb7f50eac9f536d27c66b0afe
tests: rgw crypto tests with partlen vector

4 tests are added when either obj_size for an aligned object, and when an object
is not aligned to a boundary (1 B last part), or part_size is not aligned to a
boundary. Comments on boundary case explains the logic on choosing whether to
align to a 4095B boundary or not

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 1bf59f68db608084a1e7a05aca4cca8a8ab76062)
luminous changes: std::make_unique -> ceph::make_unique
src/test/rgw/test_rgw_crypto.cc