]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_file unit tests: validate Unix owners in DIRS1
authorMatt Benjamin <mbenjamin@redhat.com>
Mon, 28 Mar 2016 20:36:57 +0000 (16:36 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Tue, 5 Apr 2016 22:30:14 +0000 (18:30 -0400)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/test/librgw_file_nfsns.cc

index b838cb16f7ab7b2697a22cf428b273ed153fbaab..1cc6a66532a89d686aee45cd13de80e32bc9e88d 100644 (file)
@@ -523,6 +523,9 @@ TEST(LibRGW, GETATTR_DIRS1)
          ASSERT_TRUE(sobj.rgw_fh->is_dir());
          ASSERT_TRUE(S_ISDIR(st.st_mode));
        }
+       /* validate Unix owners */
+       ASSERT_EQ(st.st_uid, owner_uid);
+       ASSERT_EQ(st.st_gid, owner_gid);
        if (verbose) {
          obj_rec_st rec_st{sobj, st};
          std::cout << "\t"