]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
RGW - Fix mock User class in Lua test 39399/head
authorDaniel Gryniewicz <dang@redhat.com>
Tue, 2 Mar 2021 15:51:12 +0000 (10:51 -0500)
committerDaniel Gryniewicz <dang@redhat.com>
Tue, 2 Mar 2021 15:51:12 +0000 (10:51 -0500)
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
src/test/rgw/test_rgw_lua.cc

index 7d7af6d786f3de2b1c54d92e2049cfa3acb7d5e0..6959a38139cbe2d9b9611feb03788e9f302916da 100644 (file)
@@ -22,6 +22,10 @@ public:
 
 class TestRGWUser : public sal::RGWUser {
 public:
+  virtual std::unique_ptr<RGWUser> clone() override {
+    return std::unique_ptr<RGWUser>(new TestRGWUser(*this));
+  }
+
   virtual int list_buckets(const DoutPrefixProvider *dpp, const string&, const string&, uint64_t, bool, sal::RGWBucketList&, optional_yield y) override {
     return 0;
   }
@@ -30,10 +34,42 @@ public:
     return nullptr;
   }
 
+  virtual int read_attrs(const DoutPrefixProvider *dpp, optional_yield y, sal::RGWAttrs* uattrs, RGWObjVersionTracker* tracker) override {
+    return 0;
+  }
+
+  virtual int read_stats(optional_yield y, RGWStorageStats* stats, ceph::real_time *last_stats_sync, ceph::real_time *last_stats_update) override {
+    return 0;
+  }
+
+  virtual int read_stats_async(RGWGetUserStats_CB *cb) override {
+    return 0;
+  }
+
+  virtual int complete_flush_stats(optional_yield y) override {
+    return 0;
+  }
+
+  virtual int read_usage(uint64_t start_epoch, uint64_t end_epoch, uint32_t max_entries, bool *is_truncated, RGWUsageIter& usage_iter, map<rgw_user_bucket, rgw_usage_log_entry>& usage) override {
+    return 0;
+  }
+
+  virtual int trim_usage(uint64_t start_epoch, uint64_t end_epoch) override {
+    return 0;
+  }
+
   virtual int load_by_id(const DoutPrefixProvider *dpp, optional_yield y) override {
     return 0;
   }
 
+  virtual int store_info(const DoutPrefixProvider *dpp, optional_yield y, const RGWUserCtl::PutParams& params) override {
+    return 0;
+  }
+
+  virtual int remove_info(const DoutPrefixProvider *dpp, optional_yield y, const RGWUserCtl::RemoveParams& params) override {
+    return 0;
+  }
+
   virtual ~TestRGWUser() = default;
 };