This is an automated email from the ASF dual-hosted git repository.

isapego pushed a commit to branch ignite-17607
in repository https://gitbox.apache.org/repos/asf/ignite-3.git

commit 9432ffe877f50d3ed5f548497082c95ca2935059
Author: Igor Sapego <[email protected]>
AuthorDate: Wed Mar 15 01:02:35 2023 +0300

    IGNITE-17607 Add args test
---
 modules/platforms/cpp/tests/client-test/compute_test.cpp      | 9 +++++++++
 modules/platforms/cpp/tests/client-test/ignite_runner_suite.h | 1 +
 2 files changed, 10 insertions(+)

diff --git a/modules/platforms/cpp/tests/client-test/compute_test.cpp 
b/modules/platforms/cpp/tests/client-test/compute_test.cpp
index 94f274f41e..c35feba204 100644
--- a/modules/platforms/cpp/tests/client-test/compute_test.cpp
+++ b/modules/platforms/cpp/tests/client-test/compute_test.cpp
@@ -130,6 +130,15 @@ TEST_F(compute_test, execute_broadcast_all_nodes) {
     EXPECT_EQ(res[get_node(1)].value(), get_node(1).get_name() + "42");
 }
 
+TEST_F(compute_test, execute_with_args) {
+    auto cluster_nodes = m_client.get_cluster_nodes();
+
+    auto result = m_client.get_compute().execute(cluster_nodes, CONCAT_JOB, 
{5.3, uuid(), "42", nullptr});
+
+    ASSERT_TRUE(result.has_value());
+    EXPECT_EQ(result.value().get<std::string>(), 
"5.3_00000000-0000-0000-0000-000000000000_42_null");
+}
+
 
 
 
diff --git a/modules/platforms/cpp/tests/client-test/ignite_runner_suite.h 
b/modules/platforms/cpp/tests/client-test/ignite_runner_suite.h
index 0766823eed..e45c04c56a 100644
--- a/modules/platforms/cpp/tests/client-test/ignite_runner_suite.h
+++ b/modules/platforms/cpp/tests/client-test/ignite_runner_suite.h
@@ -50,6 +50,7 @@ public:
         "org.apache.ignite.internal.runner.app.client.ItThinClientComputeTest";
 
     inline static const std::string NODE_NAME_JOB = 
IT_THIN_CLIENT_COMPUTE_TEST + "$NodeNameJob";
+    inline static const std::string CONCAT_JOB = IT_THIN_CLIENT_COMPUTE_TEST + 
"$ConcatJob";
 
     static constexpr const char *KEY_COLUMN = "key";
     static constexpr const char *VAL_COLUMN = "val";

Reply via email to