Skip to content

Commit ff2c3c5

Browse files
committed
MB-70631: Accept 404 for POST /admin/config in write_unauthorized test
Change-Id: Ia45011fe6d50e4714b6a33cd12b6fbd9b7e83a36 Reviewed-on: https://review.couchbase.org/c/testrunner/+/244540 Reviewed-by: Ajay Bhullar <ajay.bhullar@couchbase.com> Tested-by: <veena.k@couchbase.com>
1 parent f3d6aa3 commit ff2c3c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pytests/tuqquery/tuq_ddl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ def test_admin_endpoints_write_unauthorized(self):
248248
status = self._curl_admin_endpoint(endpoint, user="readonly_user",
249249
password="ropass", method="POST")
250250
self.log.info(f"Write unauthorized POST {endpoint} (ro_admin) => HTTP {status}")
251-
self.assertIn(status, [401, 403, 405],
252-
f"POST {endpoint} should return 401/403/405 with ro_admin, got {status}")
251+
self.assertIn(status, [401, 403, 404, 405],
252+
f"POST {endpoint} should return 401/403/404/405 with ro_admin, got {status}")
253253
finally:
254254
rest.delete_user_roles("readonly_user")
255255

0 commit comments

Comments
 (0)