#ifdef WITH_RADOSGW_LUA_PACKAGES
#include "rgw_lua.h"
#endif
+#ifdef WITH_RADOSGW_DBSTORE
+#include "rgw_sal_dbstore.h"
+#endif
#include "services/svc_zone.h"
/* Initialize the dbstore with cct & dpp */
DB *db = static_cast<rgw::sal::DBStore *>(store)->getDB();
db->set_context(cct);
+
+ /* XXX: temporary - create testid user */
+ rgw_user testid_user("", "testid", "");
+ std::unique_ptr<rgw::sal::User> user = store->get_user(testid_user);
+ user->get_info().display_name = "M. Tester";
+ user->get_info().user_email = "tester@ceph.com";
+ RGWAccessKey k1("0555b35654ad1656d804", "h7GhxuBLTrlhVUyxSPUKUV8r/2EI4ngqJxD7iBdBYLhwluN30JaT3Q==");
+ user->get_info().access_keys["0555b35654ad1656d804"] = k1;
+
+ int r = user->store_user(dpp, null_yield, true);
+ if (r < 0) {
+ ldpp_dout(dpp, 0) << "ERROR: failed inserting testid user in dbstore error r=" << r << dendl;
+ }
return store;
#endif
}