From 4c2c11d495aedce11776190e4cfc6053fe6b5b8c Mon Sep 17 00:00:00 2001 From: Kishore Nallan Date: Tue, 10 May 2022 18:51:32 +0530 Subject: [PATCH] Test: bootstrap key is not allowed for scoped search. --- test/auth_manager_test.cpp | 1 + 1 file changed, 1 insertion(+) 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