Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Test: bootstrap key is not allowed for scoped search.

Kishore Nallan4c2c11d495ae
diff --git a/test/auth_manager_test.cpp b/test/auth_manager_test.cpp
index 4b93e00a..31b2915a 100644
--- a/test/auth_manager_test.cpp
+++ b/test/auth_manager_test.cpp
@@ -337,6 +337,7 @@ TEST_F(AuthManagerTest, ScopedAPIKeys) {
"BXbsk+xLT1gxOjDyip6+PE4MtOzOm/H7kbkN1d/j/s4=Admi{\"filter_by\": \"user_id:1080\"}"
);
ASSERT_FALSE(auth_manager.authenticate("documents:search", {collection_key_t("coll2", scoped_key2)}, empty_params, embedded_params));
+ ASSERT_FALSE(auth_manager.authenticate("documents:search", {collection_key_t("coll2", "bootstrap-key")}, empty_params, embedded_params));
// expiration of scoped api key