From: Daniel Gryniewicz Date: Tue, 2 Mar 2021 15:51:12 +0000 (-0500) Subject: RGW - Fix mock User class in Lua test X-Git-Tag: v17.1.0~2768^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c107f970cad449af89f469f76810b178d02e9c48;p=ceph.git RGW - Fix mock User class in Lua test Signed-off-by: Daniel Gryniewicz --- diff --git a/src/test/rgw/test_rgw_lua.cc b/src/test/rgw/test_rgw_lua.cc index 7d7af6d786f3d..6959a38139cbe 100644 --- a/src/test/rgw/test_rgw_lua.cc +++ b/src/test/rgw/test_rgw_lua.cc @@ -22,6 +22,10 @@ public: class TestRGWUser : public sal::RGWUser { public: + virtual std::unique_ptr clone() override { + return std::unique_ptr(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& 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; };