[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
This commit is contained in:
Artur Mukhamadiev 2026-03-19 23:08:16 +03:00
parent 4343dd13e7
commit d2146279c4

View File

@ -95,3 +95,11 @@ TEST_F(IntegrationTest, ClientCanConnectAndRetrieveValues) {
TEST_F(IntegrationTest, ClientHandlesConnectionError) { TEST_F(IntegrationTest, ClientHandlesConnectionError) {
EXPECT_THROW(TCPConnector connector("127.0.0.1", 9999), std::runtime_error); 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<std::vector<std::string>>("get-available-methods");
EXPECT_EQ(res.size(), 2);
}