From f20746a09f19fcf0546fb8a886c57bc341d3bd07 Mon Sep 17 00:00:00 2001 From: Twisha Bansal <58483338+twishabansal@users.noreply.github.com> Date: Tue, 25 Feb 2025 10:49:37 +0530 Subject: [PATCH 1/2] chore: update toolbox version --- .ci/integration.cloudbuild.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/integration.cloudbuild.yaml b/.ci/integration.cloudbuild.yaml index be02d2a1..13cfc58a 100644 --- a/.ci/integration.cloudbuild.yaml +++ b/.ci/integration.cloudbuild.yaml @@ -43,4 +43,4 @@ options: logging: CLOUD_LOGGING_ONLY substitutions: _VERSION: '3.13' - _TOOLBOX_VERSION: '0.0.5' + _TOOLBOX_VERSION: '0.1.0' From 58274bc508394e0e73cd49234508a2a3404a85b6 Mon Sep 17 00:00:00 2001 From: Twisha Bansal Date: Tue, 25 Feb 2025 10:58:28 +0530 Subject: [PATCH 2/2] fix tests --- tests/test_e2e.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_e2e.py b/tests/test_e2e.py index 75ff3de9..64c720b0 100644 --- a/tests/test_e2e.py +++ b/tests/test_e2e.py @@ -136,8 +136,7 @@ async def test_run_tool_wrong_auth(self, toolbox, auth_token2): "get-row-by-id-auth", ) auth_tool = tool.add_auth_token("my-test-auth", lambda: auth_token2) - # TODO: Fix error message (b/389577313) - with pytest.raises(ClientResponseError, match="400, message='Bad Request'"): + with pytest.raises(ClientResponseError, match="401, message='Unauthorized'"): await auth_tool.ainvoke({"id": "2"}) async def test_run_tool_auth(self, toolbox, auth_token1): @@ -272,8 +271,7 @@ def test_run_tool_wrong_auth(self, toolbox, auth_token2): "get-row-by-id-auth", ) auth_tool = tool.add_auth_token("my-test-auth", lambda: auth_token2) - # TODO: Fix error message (b/389577313) - with pytest.raises(ClientResponseError, match="400, message='Bad Request'"): + with pytest.raises(ClientResponseError, match="401, message='Unauthorized'"): auth_tool.invoke({"id": "2"}) def test_run_tool_auth(self, toolbox, auth_token1):