From 33706d0b50ade49b418ee2956027b6e8477049f8 Mon Sep 17 00:00:00 2001 From: netkas Date: Tue, 18 Mar 2025 15:14:42 -0400 Subject: [PATCH] Add logging volume mounts for coffee and teapot services; improve error message in RpcClient --- docker-compose.test.yml | 2 ++ src/Socialbox/Classes/RpcClient.php | 2 +- tests/Socialbox/SocialClientSessionTest.php | 9 --------- 3 files changed, 3 insertions(+), 10 deletions(-) delete mode 100644 tests/Socialbox/SocialClientSessionTest.php diff --git a/docker-compose.test.yml b/docker-compose.test.yml index a044305..c45cd1f 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -24,6 +24,7 @@ services: volumes: - ./tests/docker/coffee/config:/etc/config - ./tests/docker/coffee/data:/etc/socialbox + - ./tests/docker/coffee/logs:/var/log environment: # No need to change these values LOG_LEVEL: ${LOG_LEVEL:-debug} @@ -125,6 +126,7 @@ services: volumes: - ./tests/docker/teapot/config:/etc/config - ./tests/docker/teapot/data:/etc/socialbox + - ./tests/docker/teapot/logs:/var/log environment: # No need to change these values LOG_LEVEL: ${LOG_LEVEL:-debug} diff --git a/src/Socialbox/Classes/RpcClient.php b/src/Socialbox/Classes/RpcClient.php index f65c850..5892116 100644 --- a/src/Socialbox/Classes/RpcClient.php +++ b/src/Socialbox/Classes/RpcClient.php @@ -481,7 +481,7 @@ publicKey: $this->serverPublicSigningKey, )) { - throw new RpcException('Failed to verify the response signature'); + throw new RpcException('The response signature cannot be verified with the server\'s public signing key'); } } catch (CryptographyException $e) diff --git a/tests/Socialbox/SocialClientSessionTest.php b/tests/Socialbox/SocialClientSessionTest.php deleted file mode 100644 index 6afd378..0000000 --- a/tests/Socialbox/SocialClientSessionTest.php +++ /dev/null @@ -1,9 +0,0 @@ -