[master < ] Remove DbAccessor from non-transactional queries (#1201)
* Decouple non-transactional queries from DbAccessor * Invalidate auth cache after AuthQuery Co-authored-by: Gareth Lloyd <gareth.lloyd@memgraph.io>
This commit is contained in:
@@ -76,6 +76,8 @@ class TestAuthChecker : public memgraph::query::AuthChecker {
|
||||
const std::string & /*username*/, const memgraph::query::DbAccessor * /*db_accessor*/) const override {
|
||||
return {};
|
||||
}
|
||||
|
||||
void ClearCache() const override {}
|
||||
};
|
||||
|
||||
std::filesystem::path storage_directory{std::filesystem::temp_directory_path() / "MG_test_unit_dbms_interp"};
|
||||
|
||||
@@ -47,6 +47,7 @@ class MockAuthChecker : public memgraph::query::AuthChecker {
|
||||
MOCK_CONST_METHOD2(GetFineGrainedAuthChecker,
|
||||
std::unique_ptr<memgraph::query::FineGrainedAuthChecker>(
|
||||
const std::string &username, const memgraph::query::DbAccessor *db_accessor));
|
||||
MOCK_CONST_METHOD0(ClearCache, void());
|
||||
#endif
|
||||
};
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user