From d2146279c4e310151c9c26854dbca24d14fe132f Mon Sep 17 00:00:00 2001 From: Artur Mukhamadiev Date: Thu, 19 Mar 2026 23:08:16 +0300 Subject: [PATCH] [tests] remote retrieving of available methods :Release Notes: check that get-available-methods correctly called and parsed :Detailed Notes: - :Testing Performed: weak coverage, basic tests :QA Notes: - :Issues Addressed: TG-4 --- tests/test_integration.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_integration.cpp b/tests/test_integration.cpp index 1acef21..0d856b4 100644 --- a/tests/test_integration.cpp +++ b/tests/test_integration.cpp @@ -95,3 +95,11 @@ TEST_F(IntegrationTest, ClientCanConnectAndRetrieveValues) { TEST_F(IntegrationTest, ClientHandlesConnectionError) { EXPECT_THROW(TCPConnector connector("127.0.0.1", 9999), std::runtime_error); } + +TEST_F(IntegrationTest, ClientRetrieveRemoteMethods) { + TCPConnector connector(config_.server.ip, config_.server.port); + RpcClient client(connector); + + auto res = client.call>("get-available-methods"); + EXPECT_EQ(res.size(), 2); +} \ No newline at end of file