From 0e877f06d21b3e8846d8c1bf1f60ffa692bcbd39 Mon Sep 17 00:00:00 2001 From: JLBuenoLopez-eProsima Date: Thu, 17 Mar 2022 15:09:19 +0100 Subject: [PATCH 01/11] Refs #13945: fix test number Signed-off-by: JLBuenoLopez-eProsima --- .../test_cases/test_50_environment_modification.xml | 10 +++++----- .../test_50_environment_modification.snapshot | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/configuration/test_cases/test_50_environment_modification.xml b/test/configuration/test_cases/test_50_environment_modification.xml index 7d236e8c..b3be9b72 100644 --- a/test/configuration/test_cases/test_50_environment_modification.xml +++ b/test/configuration/test_cases/test_50_environment_modification.xml @@ -37,11 +37,11 @@ - - test_39_environment_modification_initial - test_39_environment_modification_add_server2 - test_39_environment_modification_add_server1 - test_39_environment_modification_final + + test_50_environment_modification_initial + test_50_environment_modification_add_server2 + test_50_environment_modification_add_server1 + test_50_environment_modification_final diff --git a/test/configuration/test_solutions/test_50_environment_modification.snapshot b/test/configuration/test_solutions/test_50_environment_modification.snapshot index 713727ae..5799dde0 100644 --- a/test/configuration/test_solutions/test_50_environment_modification.snapshot +++ b/test/configuration/test_solutions/test_50_environment_modification.snapshot @@ -1,7 +1,7 @@ - test_39_environment_modification_initial + test_50_environment_modification_initial @@ -20,7 +20,7 @@ - test_39_environment_modification_add_server2 + test_50_environment_modification_add_server2 @@ -39,7 +39,7 @@ - test_39_environment_modification_add_server1 + test_50_environment_modification_add_server1 @@ -68,7 +68,7 @@ - test_39_environment_modification_final + test_50_environment_modification_final From 92b1a80185ef98407af09f72031e0a156c0fa093 Mon Sep 17 00:00:00 2001 From: JLBuenoLopez-eProsima Date: Thu, 17 Mar 2022 15:15:02 +0100 Subject: [PATCH 02/11] Refs #13945: create folder with environment files Signed-off-by: JLBuenoLopez-eProsima --- test/configuration/{ => environment_files}/environment.json | 0 test/configuration/tests_params.json | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename test/configuration/{ => environment_files}/environment.json (100%) diff --git a/test/configuration/environment.json b/test/configuration/environment_files/environment.json similarity index 100% rename from test/configuration/environment.json rename to test/configuration/environment_files/environment.json diff --git a/test/configuration/tests_params.json b/test/configuration/tests_params.json index 9f7ba3b8..759cf443 100644 --- a/test/configuration/tests_params.json +++ b/test/configuration/tests_params.json @@ -2141,7 +2141,7 @@ [ { "name":"FASTDDS_ENVIRONMENT_FILE", - "value": "/environment.json" + "value": "/environment_files/environment.json" } ], "xml_config_file": "/test_cases/test_50_environment_modification.xml", From 6688ad938fd3b3ca4322c03abf99675c283bd868 Mon Sep 17 00:00:00 2001 From: JLBuenoLopez-eProsima Date: Mon, 21 Mar 2022 16:44:04 +0100 Subject: [PATCH 03/11] Refs #13945: add test modifying the clients remote server locator Signed-off-by: JLBuenoLopez-eProsima --- test/CMakeLists.txt | 7 ++ .../environment_files/DS_client_1.json | 3 + ..._server_locator_client_modification_C1.xml | 49 ++++++++++++ ..._server_locator_client_modification_S1.xml | 43 ++++++++++ ..._server_locator_client_modification_S2.xml | 43 ++++++++++ ...er_locator_client_modification_C1.snapshot | 42 ++++++++++ test/configuration/tests_params.json | 79 +++++++++++++++++++ 7 files changed, 266 insertions(+) create mode 100644 test/configuration/environment_files/DS_client_1.json create mode 100644 test/configuration/test_cases/test_51_remote_server_locator_client_modification_C1.xml create mode 100644 test/configuration/test_cases/test_51_remote_server_locator_client_modification_S1.xml create mode 100644 test/configuration/test_cases/test_51_remote_server_locator_client_modification_S2.xml create mode 100644 test/configuration/test_solutions/test_51_remote_server_locator_client_modification_C1.snapshot diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 0fbdeb6b..7df4660a 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -124,6 +124,13 @@ if(fastrtps_VERSION VERSION_GREATER_EQUAL "2.4.0") ) endif() +# Modifying remote server locator list was introduced in Fast DDS v2.6.0 +if (fastrtps_VERSION VERSION_GREATER_EQUAL "2.6.0") + list(APPEND TEST_LIST + test_51_remote_server_locator_client_modification + ) +endif() + # The above TEST_LIST has tests that spawn multiple test cases, we need a new variable to enumerate them set(TEST_CASE_LIST) diff --git a/test/configuration/environment_files/DS_client_1.json b/test/configuration/environment_files/DS_client_1.json new file mode 100644 index 00000000..8a8bfa76 --- /dev/null +++ b/test/configuration/environment_files/DS_client_1.json @@ -0,0 +1,3 @@ +{ + "ROS_DISCOVERY_SERVER": "localhost:12811" +} diff --git a/test/configuration/test_cases/test_51_remote_server_locator_client_modification_C1.xml b/test/configuration/test_cases/test_51_remote_server_locator_client_modification_C1.xml new file mode 100644 index 00000000..6c028622 --- /dev/null +++ b/test/configuration/test_cases/test_51_remote_server_locator_client_modification_C1.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + Initial, C1 knows Server_1 (S1) + Remote server locator modified, C1 has dropped S1 + S1 has been shutdown + Reconnection, C1 knows Server_1 (S2) + + + + + localhost:12811 + localhost:12812 + + + + + + 63.6c.69.65.6e.74.31.5f.73.31.5f.5f + + + + + topic_1 + sample_type_1 + + + + + + + + + + + + diff --git a/test/configuration/test_cases/test_51_remote_server_locator_client_modification_S1.xml b/test/configuration/test_cases/test_51_remote_server_locator_client_modification_S1.xml new file mode 100644 index 00000000..e27f13e1 --- /dev/null +++ b/test/configuration/test_cases/test_51_remote_server_locator_client_modification_S1.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + 44.53.00.5f.45.50.52.4f.53.49.4d.41 + + + SERVER + + + + +
127.0.0.1
+ 12811 +
+
+
+
+
+
+ + + topic_1 + sample_type_1 + + + + + + + + + + +
+
diff --git a/test/configuration/test_cases/test_51_remote_server_locator_client_modification_S2.xml b/test/configuration/test_cases/test_51_remote_server_locator_client_modification_S2.xml new file mode 100644 index 00000000..487a7f76 --- /dev/null +++ b/test/configuration/test_cases/test_51_remote_server_locator_client_modification_S2.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + 44.53.00.5f.45.50.52.4f.53.49.4d.41 + + + SERVER + + + + +
127.0.0.1
+ 12812 +
+
+
+
+
+
+ + + topic_1 + sample_type_1 + + + + + + + + + + +
+
diff --git a/test/configuration/test_solutions/test_51_remote_server_locator_client_modification_C1.snapshot b/test/configuration/test_solutions/test_51_remote_server_locator_client_modification_C1.snapshot new file mode 100644 index 00000000..2e24badf --- /dev/null +++ b/test/configuration/test_solutions/test_51_remote_server_locator_client_modification_C1.snapshot @@ -0,0 +1,42 @@ + + + + Initial, C1 knows Server_1 (S1) + + + + + + + + + + + Remote server locator modified, C1 has dropped S1 + + + + + + + + + S1 has been shutdown + + + + + + + + Reconnection, C1 knows Server_1 (S2) + + + + + + + + + + diff --git a/test/configuration/tests_params.json b/test/configuration/tests_params.json index 759cf443..61a60cdd 100644 --- a/test/configuration/tests_params.json +++ b/test/configuration/tests_params.json @@ -2173,6 +2173,85 @@ } }, + "test_51_remote_server_locator_client_modification": + { + "description": [ + "Check that CLIENTs may change its remote server locator and reconnect with the SERVER when it is", + "relaunched in that locator", + "t = 0 : Server_1 (S1) and Client_1 (C1) starts", + "t = 2 : C1 snapshot", + "t = 3 : C1 modifies its remote server locator", + "t = 10 : C1 snapshot", + "t = 12 : S1 is stopped", + "t = 14 : C1 snapshot", + "t = 17 : Server_1 is relaunched with the new locator (S2)", + "t = 19 : C1 snapshot" + ], + + "processes": + { + "client_1_C1": + { + "environment_variables": + [ + { + "name": "FASTDDS_ENVIRONMENT_FILE", + "value": "/environment_files/DS_client_1.json" + } + ], + "xml_config_file": "/test_cases/test_51_remote_server_locator_client_modification_C1.xml", + "validation": + { + "count_lines_validation": + { + "file_path": "/test_solutions/test_51_remote_server_locator_client_modification_C1.snapshot" + }, + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + } + } + }, + + "server_1_S1": + { + "xml_config_file": "/test_cases/test_51_remote_server_locator_client_modification_S1.xml", + "validation": + { + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + } + } + }, + + "server_1_S2": + { + "creation_time": 17, + "xml_config_file": "/test_cases/test_51_remote_server_locator_client_modification_S2.xml", + "validation": + { + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + } + } + } + } + }, + "test_60_disconnection": { "description": [ From 5263cb54bdf142c559157ebe972b697a2f537ca4 Mon Sep 17 00:00:00 2001 From: JLBuenoLopez-eProsima Date: Tue, 22 Mar 2022 09:16:04 +0100 Subject: [PATCH 04/11] Refs #13945: complete test to check server side Signed-off-by: JLBuenoLopez-eProsima --- ..._server_locator_client_modification_C1.xml | 10 ++++- ..._server_locator_client_modification_S1.xml | 13 ++++++- ..._server_locator_client_modification_S2.xml | 6 +++ ...er_locator_client_modification_C1.snapshot | 38 +++++++++++-------- ...er_locator_client_modification_S1.snapshot | 29 ++++++++++++++ test/configuration/tests_params.json | 26 +++++++++---- 6 files changed, 96 insertions(+), 26 deletions(-) create mode 100644 test/configuration/test_solutions/test_51_remote_server_locator_client_modification_S1.snapshot diff --git a/test/configuration/test_cases/test_51_remote_server_locator_client_modification_C1.xml b/test/configuration/test_cases/test_51_remote_server_locator_client_modification_C1.xml index 6c028622..b5ddefce 100644 --- a/test/configuration/test_cases/test_51_remote_server_locator_client_modification_C1.xml +++ b/test/configuration/test_cases/test_51_remote_server_locator_client_modification_C1.xml @@ -5,6 +5,7 @@ --> + @@ -12,8 +13,8 @@ Initial, C1 knows Server_1 (S1) Remote server locator modified, C1 has dropped S1 - S1 has been shutdown - Reconnection, C1 knows Server_1 (S2) + S1 has been shutdown + Reconnection, C1 knows Server_1 (S2) - localhost:12811 - localhost:12812 + localhost:11811 + localhost:11812 From 800cdbdcf007493c0fafa09883172e4d46d4b8aa Mon Sep 17 00:00:00 2001 From: JLBuenoLopez-eProsima Date: Tue, 22 Mar 2022 12:17:50 +0100 Subject: [PATCH 06/11] Refs #13945: add complex test modifying client's remote locators Signed-off-by: JLBuenoLopez-eProsima --- test/CMakeLists.txt | 1 + .../environment_files/DS_client_2.json | 3 + .../environment_files/DS_client_3.json | 3 + ...locator_client_modification_complex_C1.xml | 51 ++++++ ...locator_client_modification_complex_C2.xml | 51 ++++++ ...locator_client_modification_complex_C3.xml | 50 ++++++ ...or_client_modification_complex_C1.snapshot | 67 +++++++ ...or_client_modification_complex_C2.snapshot | 62 +++++++ ...or_client_modification_complex_C3.snapshot | 53 ++++++ test/configuration/tests_params.json | 166 +++++++++++++++++- 10 files changed, 506 insertions(+), 1 deletion(-) create mode 100644 test/configuration/environment_files/DS_client_2.json create mode 100644 test/configuration/environment_files/DS_client_3.json create mode 100644 test/configuration/test_cases/test_52_remote_server_locator_client_modification_complex_C1.xml create mode 100644 test/configuration/test_cases/test_52_remote_server_locator_client_modification_complex_C2.xml create mode 100644 test/configuration/test_cases/test_52_remote_server_locator_client_modification_complex_C3.xml create mode 100644 test/configuration/test_solutions/test_52_remote_server_locator_client_modification_complex_C1.snapshot create mode 100644 test/configuration/test_solutions/test_52_remote_server_locator_client_modification_complex_C2.snapshot create mode 100644 test/configuration/test_solutions/test_52_remote_server_locator_client_modification_complex_C3.snapshot diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 7df4660a..aa567e2d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -128,6 +128,7 @@ endif() if (fastrtps_VERSION VERSION_GREATER_EQUAL "2.6.0") list(APPEND TEST_LIST test_51_remote_server_locator_client_modification + test_52_remote_server_locator_client_modification_complex ) endif() diff --git a/test/configuration/environment_files/DS_client_2.json b/test/configuration/environment_files/DS_client_2.json new file mode 100644 index 00000000..5a783796 --- /dev/null +++ b/test/configuration/environment_files/DS_client_2.json @@ -0,0 +1,3 @@ +{ + "ROS_DISCOVERY_SERVER": "localhost:11811" +} diff --git a/test/configuration/environment_files/DS_client_3.json b/test/configuration/environment_files/DS_client_3.json new file mode 100644 index 00000000..67878ccd --- /dev/null +++ b/test/configuration/environment_files/DS_client_3.json @@ -0,0 +1,3 @@ +{ + "ROS_DISCOVERY_SERVER": "localhost:11812" +} diff --git a/test/configuration/test_cases/test_52_remote_server_locator_client_modification_complex_C1.xml b/test/configuration/test_cases/test_52_remote_server_locator_client_modification_complex_C1.xml new file mode 100644 index 00000000..ecd28145 --- /dev/null +++ b/test/configuration/test_cases/test_52_remote_server_locator_client_modification_complex_C1.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + Initial, C1 knows C2 through Server_1 (S1) + C1 has changes its remote locator but keeps knowing C2 + C1 knows C3 through Server_1 (S2) and still knows C2 + Nothing has changed with respect to the previous snapshot + + + + + localhost:11811 + localhost:11812 + + + + + + 63.6c.69.65.6e.74.31.5f.73.31.5f.5f + + + + + topic_1 + sample_type_1 + + + + + + + + + + + + diff --git a/test/configuration/test_cases/test_52_remote_server_locator_client_modification_complex_C2.xml b/test/configuration/test_cases/test_52_remote_server_locator_client_modification_complex_C2.xml new file mode 100644 index 00000000..d9f8bc9a --- /dev/null +++ b/test/configuration/test_cases/test_52_remote_server_locator_client_modification_complex_C2.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + Initial, C2 knows C1 through Server_1 (S1) + C2 keeps knowing C1 even though C1 has changed its locators + Same situation as the previous snapshot + C2 discovers C3 through S2 after modifying its remote server locator + + + + + localhost:11811 + localhost:11812 + + + + + + 63.6c.69.65.6e.74.32.5f.73.31.5f.5f + + + + + topic_1 + sample_type_1 + + + + + + + + + + + + diff --git a/test/configuration/test_cases/test_52_remote_server_locator_client_modification_complex_C3.xml b/test/configuration/test_cases/test_52_remote_server_locator_client_modification_complex_C3.xml new file mode 100644 index 00000000..49067129 --- /dev/null +++ b/test/configuration/test_cases/test_52_remote_server_locator_client_modification_complex_C3.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + C3 knows only itself + Same situation as the previous snapshot + C3 knows C1 thorugh S2 + C3 knows C2 through S2 + + + + + localhost:11812 + + + + + + 63.6c.69.65.6e.74.33.5f.73.31.5f.5f + + + + + topic_1 + sample_type_1 + + + + + + + + + + + + diff --git a/test/configuration/test_solutions/test_52_remote_server_locator_client_modification_complex_C1.snapshot b/test/configuration/test_solutions/test_52_remote_server_locator_client_modification_complex_C1.snapshot new file mode 100644 index 00000000..454bac9c --- /dev/null +++ b/test/configuration/test_solutions/test_52_remote_server_locator_client_modification_complex_C1.snapshot @@ -0,0 +1,67 @@ + + + + Initial, C1 knows C2 through Server_1 (S1) + + + + + + + + + + + + + + C1 has changes its remote locator but keeps knowing C2 + + + + + + + + + + + + + + C1 knows C3 through Server_1 (S2) and still knows C2 + + + + + + + + + + + + + + + + + + Nothing has changed with respect to the previous snapshot + + + + + + + + + + + + + + + + + diff --git a/test/configuration/test_solutions/test_52_remote_server_locator_client_modification_complex_C2.snapshot b/test/configuration/test_solutions/test_52_remote_server_locator_client_modification_complex_C2.snapshot new file mode 100644 index 00000000..67a85b96 --- /dev/null +++ b/test/configuration/test_solutions/test_52_remote_server_locator_client_modification_complex_C2.snapshot @@ -0,0 +1,62 @@ + + + + Initial, C2 knows C1 through Server_1 (S1) + + + + + + + + + + + + + + C2 keeps knowing C1 even though C1 has changed its locators + + + + + + + + + + + + + + Same situation as the previous snapshot + + + + + + + + + + + + + C2 discovers C3 through S2 after modifying its remote server locator + + + + + + + + + + + + + + + + + diff --git a/test/configuration/test_solutions/test_52_remote_server_locator_client_modification_complex_C3.snapshot b/test/configuration/test_solutions/test_52_remote_server_locator_client_modification_complex_C3.snapshot new file mode 100644 index 00000000..d04d4864 --- /dev/null +++ b/test/configuration/test_solutions/test_52_remote_server_locator_client_modification_complex_C3.snapshot @@ -0,0 +1,53 @@ + + + + C3 knows only itself + + + + + + + + + Same situation as the previous snapshot + + + + + + + + + C3 knows C1 thorugh S2 + + + + + + + + + + + + + + C3 knows C2 through S2 + + + + + + + + + + + + + + + + + diff --git a/test/configuration/tests_params.json b/test/configuration/tests_params.json index 3f5d4836..b67ffc51 100644 --- a/test/configuration/tests_params.json +++ b/test/configuration/tests_params.json @@ -2176,9 +2176,11 @@ "test_51_remote_server_locator_client_modification": { "description": [ + "This test is described with detail in Redmine task #13912", "Check that CLIENTs may change its remote server locator and reconnect with the SERVER when it is", "relaunched in that locator", - "t = 0 : Server_1 (S1) and Client_1 (C1) starts", + "t = 0 : Server_1 (S1)", + "t = 1 : Client_1 (C1) starts", "t = 2 : C1 and S1 snapshot", "t = 3 : C1 modifies its remote server locator", "t = 10 : C1 and S1 snapshots", @@ -2264,6 +2266,168 @@ } }, + "test_52_remote_server_locator_client_modification_complex": + { + "description": [ + "This test is described with detail in Redmine task #13912", + "Check that CLIENTs may change its remote server locator and reconnect with the SERVER when it is", + "relaunched in that locator", + "Both Client_1 and Client_2 are connected from the beginning to Server_1", + "Client_3 is pinging the locator where the Server_1 is going to be at the end", + "Server_1 is launched using the CLI", + "t = 1 : Server_1 (S1), Client_1 (C1), Client_2 (C2), and Client_3 (C3) are launched", + "t = 3 : C1, C2, C3 snapshots", + "t = 4 : C1 modifies its remote server locator", + "t = 11 : C1, C2, C3 snapshots", + "t = 12 : S1 is stopped", + "t = 14 : Server_1 is relaunched (S2) listening in the new locator", + "t = 16 : C1, C2, C3 snapshots", + "t = 17 : C2 modifies its remote server locator", + "t = 24 : C1, C2, C3 snapshots" + ], + + "processes": + { + "server_1_S1": + { + "kill_time": 12, + "tool_config": + { + "id": 0, + "address": "127.0.0.1", + "port": 11811 + }, + "validation": + { + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + } + } + }, + + "server_1_S2": + { + "creation_time": 14, + "kill_time": 11, + "tool_config": + { + "id": 0, + "address": "127.0.0.1", + "port": 11812 + }, + "validation": + { + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + } + } + }, + + "client_1_C1": + { + "environment_variables": + [ + { + "name": "FASTDDS_ENVIRONMENT_FILE", + "value": "/environment_files/DS_client_1.json" + } + ], + "xml_config_file": "/test_cases/test_52_remote_server_locator_client_modification_complex_C1.xml", + "validation": + { + "count_lines_validation": + { + "file_path": "/test_solutions/test_52_remote_server_locator_client_modification_complex_C1.snapshot" + }, + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + }, + "ground_truth_validation": + { + "file_path": "/test_solutions/test_52_remote_server_locator_client_modification_complex_C1.snapshot" + } + } + }, + + "client_2_C2": + { + "environment_variables": + [ + { + "name": "FASTDDS_ENVIRONMENT_FILE", + "value": "/environment_files/DS_client_2.json" + } + ], + "xml_config_file": "/test_cases/test_52_remote_server_locator_client_modification_complex_C2.xml", + "validation": + { + "count_lines_validation": + { + "file_path": "/test_solutions/test_52_remote_server_locator_client_modification_complex_C2.snapshot" + }, + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + }, + "ground_truth_validation": + { + "file_path": "/test_solutions/test_52_remote_server_locator_client_modification_complex_C2.snapshot" + } + } + }, + + "client_3_C3": + { + "environment_variables": + [ + { + "name": "FASTDDS_ENVIRONMENT_FILE", + "value": "/environment_files/DS_client_3.json" + } + ], + "xml_config_file": "/test_cases/test_52_remote_server_locator_client_modification_complex_C3.xml", + "validation": + { + "count_lines_validation": + { + "file_path": "/test_solutions/test_52_remote_server_locator_client_modification_complex_C3.snapshot" + }, + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + }, + "ground_truth_validation": + { + "file_path": "/test_solutions/test_52_remote_server_locator_client_modification_complex_C3.snapshot" + } + } + } + } + }, + "test_60_disconnection": { "description": [ From 3638bce725d7c8b4320ee3342909c4bbb091d0fc Mon Sep 17 00:00:00 2001 From: JLBuenoLopez-eProsima Date: Tue, 22 Mar 2022 14:23:48 +0100 Subject: [PATCH 07/11] Refs #13945: unify server nomenclature between remote server locator tests Signed-off-by: JLBuenoLopez-eProsima --- test/CMakeLists.txt | 1 + ..._server_locator_client_modification_C1.xml | 8 +-- ...rver_locator_client_modification_S1_1.xml} | 2 +- ...rver_locator_client_modification_S1_2.xml} | 2 +- ...locator_client_modification_complex_C1.xml | 4 +- ...locator_client_modification_complex_C2.xml | 4 +- ...locator_client_modification_complex_C3.xml | 4 +- ...er_locator_client_modification_C1.snapshot | 8 +-- ...or_client_modification_complex_C1.snapshot | 4 +- ...or_client_modification_complex_C2.snapshot | 4 +- ...or_client_modification_complex_C3.snapshot | 4 +- test/configuration/tests_params.json | 51 ++++++++++++++----- 12 files changed, 60 insertions(+), 36 deletions(-) rename test/configuration/test_cases/{test_51_remote_server_locator_client_modification_S1.xml => test_51_remote_server_locator_client_modification_S1_1.xml} (97%) rename test/configuration/test_cases/{test_51_remote_server_locator_client_modification_S2.xml => test_51_remote_server_locator_client_modification_S1_2.xml} (96%) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index aa567e2d..4290d2bd 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -129,6 +129,7 @@ if (fastrtps_VERSION VERSION_GREATER_EQUAL "2.6.0") list(APPEND TEST_LIST test_51_remote_server_locator_client_modification test_52_remote_server_locator_client_modification_complex + test_53_remote_server_locator_server_client_modification ) endif() diff --git a/test/configuration/test_cases/test_51_remote_server_locator_client_modification_C1.xml b/test/configuration/test_cases/test_51_remote_server_locator_client_modification_C1.xml index dab386b3..599d13d1 100644 --- a/test/configuration/test_cases/test_51_remote_server_locator_client_modification_C1.xml +++ b/test/configuration/test_cases/test_51_remote_server_locator_client_modification_C1.xml @@ -11,10 +11,10 @@ - Initial, C1 knows Server_1 (S1) - Remote server locator modified, C1 has dropped S1 - S1 has been shutdown - Reconnection, C1 knows Server_1 (S2) + Initial, C1 knows Server_1 (S1_1) + Remote server locator modified, C1 has dropped S1_1 + S1_1 has been shutdown + Reconnection, C1 knows Server_1 (S1_2) + + + + + + + + + Initial, C1 knows Server_1 (S1_1) + C1 knows C2 after S2 adds S1_1 as remote server + C1 does not know S1_1 after the Server_1 modifies its locators + C1 knows S1_2 and C3 through S1_2 after updating its remote server locator + Nothing has changed with respect to the previous snapshot + + + + + localhost:11811 + localhost:11813 + + + + + + 63.6c.69.65.6e.74.31.5f.73.31.5f.5f + + + + + topic_1 + sample_type_1 + + + + + + + + + + + + diff --git a/test/configuration/test_cases/test_53_remote_server_locator_server_client_modification_C2.xml b/test/configuration/test_cases/test_53_remote_server_locator_server_client_modification_C2.xml new file mode 100644 index 00000000..6498141d --- /dev/null +++ b/test/configuration/test_cases/test_53_remote_server_locator_server_client_modification_C2.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + Initial, C2 knows Server_2 (S2) + C2 knows C1 after S2 adds S1_1 as remote server + Nothing has changed with respect to the previous snapshot + Nothing has changed with respect to the previous snapshot + C2 knows C3 through S2 and S1_2 after updating S2 its remote server locator + + + + + ;localhost:11812 + + + + + + 63.6c.69.65.6e.74.32.5f.73.31.5f.5f + + + + + topic_1 + sample_type_1 + + + + + + + + + + + + diff --git a/test/configuration/test_cases/test_53_remote_server_locator_server_client_modification_C3.xml b/test/configuration/test_cases/test_53_remote_server_locator_server_client_modification_C3.xml new file mode 100644 index 00000000..f041e0e8 --- /dev/null +++ b/test/configuration/test_cases/test_53_remote_server_locator_server_client_modification_C3.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + C3 knows only itself + Nothing has changed with respect to the previous snapshot + C3 knows S1_2 + C3 knows C1 + C3 knows C2 + + + + + localhost:11813 + + + + + + 63.6c.69.65.6e.74.33.5f.73.31.5f.5f + + + + + topic_1 + sample_type_1 + + + + + + + + + + + + diff --git a/test/configuration/test_cases/test_53_remote_server_locator_server_client_modification_S2.xml b/test/configuration/test_cases/test_53_remote_server_locator_server_client_modification_S2.xml new file mode 100644 index 00000000..2ce7fdfb --- /dev/null +++ b/test/configuration/test_cases/test_53_remote_server_locator_server_client_modification_S2.xml @@ -0,0 +1,47 @@ + + + + + + + + + Initial, S2 knows C2 + S2 knows C1 because S2 adds S1_1 as remote server + S2 does not know S1_1 after the Server_1 modifies its locator + Nothing has changed with respect to the previous snapshot + S2 knows C3 because S2 updates its remote server locator + + + + + + localhost:11811 + localhost:11813 + + + + + + 44.53.01.5f.45.50.52.4f.53.49.4d.41 + + + SERVER + + + + +
127.0.0.1
+ 11812 +
+
+
+
+
+
+
+
diff --git a/test/configuration/test_solutions/test_53_remote_server_locator_server_client_modification_C1.snapshot b/test/configuration/test_solutions/test_53_remote_server_locator_server_client_modification_C1.snapshot new file mode 100644 index 00000000..585c3d79 --- /dev/null +++ b/test/configuration/test_solutions/test_53_remote_server_locator_server_client_modification_C1.snapshot @@ -0,0 +1,76 @@ + + + + Initial, C1 knows Server_1 (S1_1) + + + + + + + + + + C1 knows C2 after S2 adds S1_1 as remote server + + + + + + + + + + + + + + C1 does not know S1_1 after the Server_1 modifies its locators + + + + + + + + + + + + + C1 knows S1_2 and C3 through S1_2 after updating its remote server locator + + + + + + + + + + + + + + + + + + Nothing has changed with respect to the previous snapshot + + + + + + + + + + + + + + + + + diff --git a/test/configuration/test_solutions/test_53_remote_server_locator_server_client_modification_C2.snapshot b/test/configuration/test_solutions/test_53_remote_server_locator_server_client_modification_C2.snapshot new file mode 100644 index 00000000..ac949d19 --- /dev/null +++ b/test/configuration/test_solutions/test_53_remote_server_locator_server_client_modification_C2.snapshot @@ -0,0 +1,73 @@ + + + + Initial, C2 knows Server_2 (S2) + + + + + + + + + + C2 knows C1 after S2 adds S1_1 as remote server + + + + + + + + + + + + + + Nothing has changed with respect to the previous snapshot + + + + + + + + + + + + + + Nothing has changed with respect to the previous snapshot + + + + + + + + + + + + + + C2 knows C3 through S2 and S1_2 after updating S2 its remote server locator + + + + + + + + + + + + + + + + + diff --git a/test/configuration/test_solutions/test_53_remote_server_locator_server_client_modification_C3.snapshot b/test/configuration/test_solutions/test_53_remote_server_locator_server_client_modification_C3.snapshot new file mode 100644 index 00000000..2354e756 --- /dev/null +++ b/test/configuration/test_solutions/test_53_remote_server_locator_server_client_modification_C3.snapshot @@ -0,0 +1,63 @@ + + + + C3 knows only itself + + + + + + + + + Nothing has changed with respect to the previous snapshot + + + + + + + + + C3 knows S1_2 + + + + + + + + + + C3 knows C1 + + + + + + + + + + + + + + C3 knows C2 + + + + + + + + + + + + + + + + + diff --git a/test/configuration/test_solutions/test_53_remote_server_locator_server_client_modification_S2.snapshot b/test/configuration/test_solutions/test_53_remote_server_locator_server_client_modification_S2.snapshot new file mode 100644 index 00000000..f3edc7ea --- /dev/null +++ b/test/configuration/test_solutions/test_53_remote_server_locator_server_client_modification_S2.snapshot @@ -0,0 +1,70 @@ + + + + Initial, S2 knows C2 + + + + + + + + + S2 knows C1 because S2 adds S1_1 as remote server + + + + + + + + + + + + + + S2 does not know S1_1 after the Server_1 modifies its locator + + + + + + + + + + + + + Nothing has changed with respect to the previous snapshot + + + + + + + + + + + + + S2 knows C3 because S2 updates its remote server locator + + + + + + + + + + + + + + + + + diff --git a/test/configuration/tests_params.json b/test/configuration/tests_params.json index 264c7d2a..e44b38ac 100644 --- a/test/configuration/tests_params.json +++ b/test/configuration/tests_params.json @@ -2438,17 +2438,189 @@ "Client_2 is connected to Server_2", "Client_3 is pinging the locator where the Server_1 is going to be at the end", "t = 1 : Server_1 (S1), Server_2 (S2), Client_1 (C1), Client_2 (C2), and Client_3 (C3) starts", - "t = 3 : C1, C2, C3 snapshots", + "t = 3 : C1, C2, C3, and S2 snapshots", "t = 4 : S2 adds S1 as remote server", - "t = 11 : C1, C2, C3 snapshots", + "t = 11 : C1, C2, C3, and S2 snapshots", "t = 12 : S1_1 is stopped", "t = 14 : Server_1 is relaunched (S1_2) listening in the new locator", - "t = 16 : C1, C2, C3 snapshots", + "t = 16 : C1, C2, C3, and S2 snapshots", "t = 17 : C1 modifies its remote server locator", - "t = 24 : C1, C2, C3 snapshots", + "t = 24 : C1, C2, C3, and S2 snapshots", "t = 25 : S2 modifies its remote server locator", - "t = 32 : C1, C2, C3 snapshots" - ] + "t = 32 : C1, C2, C3, and S2 snapshots" + ], + + "processes": + { + "server_1_S1_1": + { + "kill_time": 12, + "tool_config": + { + "id": 0, + "address": "127.0.0.1", + "port": 11811 + }, + "validation": + { + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + } + } + }, + + "server_1_S1_2": + { + "creation_time": 14, + "kill_time": 18, + "tool_config": + { + "id": 0, + "address": "127.0.0.1", + "port": 11813 + }, + "validation": + { + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + } + } + }, + + "server_2_S2": + { + "environment_variables": + [ + { + "name": "FASTDDS_ENVIRONMENT_FILE", + "value":"/environment_files/DS_server_2.json" + } + ], + "xml_config_file": "/test_cases/test_53_remote_server_locator_server_client_modification_S2.xml", + "validation": + { + "count_lines_validation": + { + "file_path": "/test_solutions/test_53_remote_server_locator_server_client_modification_S2.snapshot" + }, + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + }, + "ground_truth_validation": + { + "file_path": "/test_solutions/test_53_remote_server_locator_server_client_modification_S2.snapshot" + } + } + }, + + "client_1_C1": + { + "environment_variables": + [ + { + "name": "FASTDDS_ENVIRONMENT_FILE", + "value": "/environment_files/DS_client_1.json" + } + ], + "xml_config_file": "/test_cases/test_53_remote_server_locator_server_client_modification_C1.xml", + "validation": + { + "count_lines_validation": + { + "file_path": "/test_solutions/test_53_remote_server_locator_server_client_modification_C1.snapshot" + }, + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + }, + "ground_truth_validation": + { + "file_path": "/test_solutions/test_53_remote_server_locator_server_client_modification_C1.snapshot" + } + } + }, + + "client_2_C2": + { + "environment_variables": + [ + { + "name": "FASTDDS_ENVIRONMENT_FILE", + "value": "/environment_files/DS_client_2.json" + } + ], + "xml_config_file": "/test_cases/test_53_remote_server_locator_server_client_modification_C2.xml", + "validation": + { + "count_lines_validation": + { + "file_path": "/test_solutions/test_53_remote_server_locator_server_client_modification_C2.snapshot" + }, + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + }, + "ground_truth_validation": + { + "file_path": "/test_solutions/test_53_remote_server_locator_server_client_modification_C2.snapshot" + } + } + }, + + "client_3_C3": + { + "environment_variables": + [ + { + "name": "FASTDDS_ENVIRONMENT_FILE", + "value": "/environment_files/DS_client_3.json" + } + ], + "xml_config_file": "/test_cases/test_53_remote_server_locator_server_client_modification_C3.xml", + "validation": + { + "count_lines_validation": + { + "file_path": "/test_solutions/test_53_remote_server_locator_server_client_modification_C3.snapshot" + }, + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + }, + "ground_truth_validation": + { + "file_path": "/test_solutions/test_53_remote_server_locator_server_client_modification_C3.snapshot" + } + } + } + } }, "test_60_disconnection": From aaaba18b337bd439a2720ba4e1fc38e93f5070ab Mon Sep 17 00:00:00 2001 From: JLBuenoLopez-eProsima Date: Thu, 24 Mar 2022 08:12:07 +0100 Subject: [PATCH 11/11] Refs #13945: add complex interconnected servers test for modifying the remote server locators Signed-off-by: JLBuenoLopez-eProsima --- test/CMakeLists.txt | 1 + ...modification_interconnected_servers_C1.xml | 40 +++ ...modification_interconnected_servers_C2.xml | 40 +++ ...modification_interconnected_servers_C3.xml | 40 +++ ...dification_interconnected_servers_S1_1.xml | 49 ++++ ...dification_interconnected_servers_S1_2.xml | 48 ++++ ...modification_interconnected_servers_S2.xml | 45 ++++ ...ication_interconnected_servers_C1.snapshot | 42 ++++ ...ication_interconnected_servers_C2.snapshot | 61 +++++ ...ication_interconnected_servers_C3.snapshot | 61 +++++ ...ation_interconnected_servers_S1_1.snapshot | 41 ++++ ...ation_interconnected_servers_S1_2.snapshot | 25 ++ ...ication_interconnected_servers_S2.snapshot | 61 +++++ test/configuration/tests_params.json | 228 +++++++++++++++++- 14 files changed, 781 insertions(+), 1 deletion(-) create mode 100644 test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_C1.xml create mode 100644 test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_C2.xml create mode 100644 test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_C3.xml create mode 100644 test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_S1_1.xml create mode 100644 test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_S1_2.xml create mode 100644 test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_S2.xml create mode 100644 test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_C1.snapshot create mode 100644 test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_C2.snapshot create mode 100644 test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_C3.snapshot create mode 100644 test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_S1_1.snapshot create mode 100644 test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_S1_2.snapshot create mode 100644 test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_S2.snapshot diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 4290d2bd..90a6ce27 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -130,6 +130,7 @@ if (fastrtps_VERSION VERSION_GREATER_EQUAL "2.6.0") test_51_remote_server_locator_client_modification test_52_remote_server_locator_client_modification_complex test_53_remote_server_locator_server_client_modification + test_54_remote_server_locator_modification_interconnected_servers ) endif() diff --git a/test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_C1.xml b/test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_C1.xml new file mode 100644 index 00000000..0dba6add --- /dev/null +++ b/test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_C1.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + Initial, C1 knows itself + Nothing has changed with respect to the previous snapshot + C1 dicovers all endpoints after Server_1 is relaunched listening to the new locator + + + + + + 63.6c.69.65.6e.74.31.5f.73.31.5f.5f + + + + + topic_1 + sample_type_1 + + + + + + + + + + + + diff --git a/test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_C2.xml b/test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_C2.xml new file mode 100644 index 00000000..24b1fad9 --- /dev/null +++ b/test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_C2.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + Initial, C2 knows C3 and S1 + Nothing has changed with respect to the previous snapshot + C2 discovers C1 + + + + + + 63.6c.69.65.6e.74.32.5f.73.31.5f.5f + + + + + topic_1 + sample_type_1 + + + + + + + + + + + + diff --git a/test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_C3.xml b/test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_C3.xml new file mode 100644 index 00000000..3d126a98 --- /dev/null +++ b/test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_C3.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + Initial, C3 knows C2 and S1 + Nothing has changed with respect to the previous snapshot + C3 discovers C1 + + + + + + 63.6c.69.65.6e.74.33.5f.73.31.5f.5f + + + + + topic_1 + sample_type_1 + + + + + + + + + + + + diff --git a/test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_S1_1.xml b/test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_S1_1.xml new file mode 100644 index 00000000..b4a6129a --- /dev/null +++ b/test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_S1_1.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + S1 knows C2 through S2 and C3 through S3 + Nothing has changed with respect to the previous snapshot + + + + + + 44.53.00.5f.45.50.52.4f.53.49.4d.41 + + + SERVER + + + + +
127.0.0.1
+ 11811 +
+
+
+
+
+
+ + + topic_1 + sample_type_1 + + + + + + + + + + +
+
diff --git a/test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_S1_2.xml b/test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_S1_2.xml new file mode 100644 index 00000000..3a743f9f --- /dev/null +++ b/test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_S1_2.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + S1 discovers C1 + + + + + + 44.53.00.5f.45.50.52.4f.53.49.4d.41 + + + SERVER + + + + +
127.0.0.1
+ 11814 +
+
+
+
+
+
+ + + topic_1 + sample_type_1 + + + + + + + + + + +
+
diff --git a/test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_S2.xml b/test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_S2.xml new file mode 100644 index 00000000..3e44a006 --- /dev/null +++ b/test/configuration/test_cases/test_54_remote_server_locator_modification_interconnected_servers_S2.xml @@ -0,0 +1,45 @@ + + + + + + + + + S2 discovers S1, C2 and C3 + Nothing has changed with respect to the previous snapshot + S2 discovers C1 + + + + + localhost:11811;;localhost:11813 + localhost:11814;;localhost:11813 + + + + + + + 44.53.01.5f.45.50.52.4f.53.49.4d.41 + + + SERVER + + + + +
127.0.0.1
+ 11812 +
+
+
+
+
+
+
+
diff --git a/test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_C1.snapshot b/test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_C1.snapshot new file mode 100644 index 00000000..0e914a0f --- /dev/null +++ b/test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_C1.snapshot @@ -0,0 +1,42 @@ + + + + Initial, C1 knows itself + + + + + + + + + Nothing has changed with respect to the previous snapshot + + + + + + + + + C1 dicovers all endpoints after Server_1 is relaunched listening to the new locator + + + + + + + + + + + + + + + + + + + + diff --git a/test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_C2.snapshot b/test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_C2.snapshot new file mode 100644 index 00000000..b85daace --- /dev/null +++ b/test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_C2.snapshot @@ -0,0 +1,61 @@ + + + + Initial, C2 knows C3 and S1 + + + + + + + + + + + + + + + + + + Nothing has changed with respect to the previous snapshot + + + + + + + + + + + + + + + + + + C2 discovers C1 + + + + + + + + + + + + + + + + + + + + + diff --git a/test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_C3.snapshot b/test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_C3.snapshot new file mode 100644 index 00000000..761eaa5a --- /dev/null +++ b/test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_C3.snapshot @@ -0,0 +1,61 @@ + + + + Initial, C3 knows C2 and S1 + + + + + + + + + + + + + + + + + + Nothing has changed with respect to the previous snapshot + + + + + + + + + + + + + + + + + + C3 discovers C1 + + + + + + + + + + + + + + + + + + + + + diff --git a/test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_S1_1.snapshot b/test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_S1_1.snapshot new file mode 100644 index 00000000..98177eaa --- /dev/null +++ b/test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_S1_1.snapshot @@ -0,0 +1,41 @@ + + + + S1 knows C2 through S2 and C3 through S3 + + + + + + + + + + + + + + + + + + + Nothing has changed with respect to the previous snapshot + + + + + + + + + + + + + + + + + + diff --git a/test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_S1_2.snapshot b/test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_S1_2.snapshot new file mode 100644 index 00000000..262b0fe4 --- /dev/null +++ b/test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_S1_2.snapshot @@ -0,0 +1,25 @@ + + + + S1 discovers C1 + + + + + + + + + + + + + + + + + + + + + diff --git a/test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_S2.snapshot b/test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_S2.snapshot new file mode 100644 index 00000000..39c57882 --- /dev/null +++ b/test/configuration/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_S2.snapshot @@ -0,0 +1,61 @@ + + + + S2 discovers S1, C2 and C3 + + + + + + + + + + + + + + + + + + Nothing has changed with respect to the previous snapshot + + + + + + + + + + + + + + + + + + S2 discovers C1 + + + + + + + + + + + + + + + + + + + + + diff --git a/test/configuration/tests_params.json b/test/configuration/tests_params.json index e44b38ac..f0078d43 100644 --- a/test/configuration/tests_params.json +++ b/test/configuration/tests_params.json @@ -2437,7 +2437,7 @@ "Client_1 is connected to Server_1", "Client_2 is connected to Server_2", "Client_3 is pinging the locator where the Server_1 is going to be at the end", - "t = 1 : Server_1 (S1), Server_2 (S2), Client_1 (C1), Client_2 (C2), and Client_3 (C3) starts", + "t = 1 : Server_1 (S1), Server_2 (S2), Client_1 (C1), Client_2 (C2), and Client_3 (C3) start", "t = 3 : C1, C2, C3, and S2 snapshots", "t = 4 : S2 adds S1 as remote server", "t = 11 : C1, C2, C3, and S2 snapshots", @@ -2623,6 +2623,232 @@ } }, + "test_54_remote_server_locator_modification_interconnected_servers": + { + "description": [ + "This test is described with detail in Redmine task #13912", + "Complex test that checks modify remote server locators feature with several servers and clients", + "Server_1 has endpoints", + "Client_1 is pinging the locator where the Server_1 is going to be at the end", + "Client_2 is connected to Server_2", + "Client_3 is connected to Server_3", + "Server_2 is connected to Server_1 and Server_3", + "Server_3 is connected to Server_1", + "t = 1 : Server_1 (S1_1), Server_2 (S2), Server_3 (S3), Client_1 (C1), Client_2 (C2), and Client_3 (C3) starts", + "t = 3 : S1, S2, C1, C2, and C3 snapshot", + "t = 4 : S2 modifies its remote Server_1 locator", + "t = 11 : S1, S2, C1, C2, and C3 snapshot", + "t = 12 : S1_1 is stopped", + "t = 14 : Server_1 is relaunched (S1_2) listening in the new locator", + "t = 16 : S1, S2, C1, C2, and C3 snapshot" + ], + + "processes": + { + "server_1_S1_1": + { + "xml_config_file": "/test_cases/test_54_remote_server_locator_modification_interconnected_servers_S1_1.xml", + "validation": + { + "count_lines_validation": + { + "file_path": "/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_S1_1.snapshot" + }, + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + }, + "ground_truth_validation": + { + "file_path": "/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_S1_1.snapshot" + } + } + }, + + "server_1_S1_2": + { + "creation_time": 14, + "xml_config_file": "/test_cases/test_54_remote_server_locator_modification_interconnected_servers_S1_2.xml", + "validation": + { + "count_lines_validation": + { + "file_path": "/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_S1_2.snapshot" + }, + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + }, + "ground_truth_validation": + { + "file_path": "/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_S1_2.snapshot" + } + } + }, + + "server_2_S2": + { + "environment_variables": + [ + { + "name": "FASTDDS_ENVIRONMENT_FILE", + "value": "/environment_files/DS_server_2.json" + } + ], + "xml_config_file": "/test_cases/test_54_remote_server_locator_modification_interconnected_servers_S2.xml", + "validation": + { + "count_lines_validation": + { + "file_path": "/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_S2.snapshot" + }, + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + }, + "ground_truth_validation": + { + "file_path": "/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_S2.snapshot" + } + } + }, + + "server_3_S3": + { + "kill_time": 17, + "environment_variables": + [ + { + "name": "ROS_DISCOVERY_SERVER", + "value": "localhost:11811" + } + ], + "tool_config": + { + "id": 2, + "address": "127.0.0.1", + "port": 11813 + }, + "validation": + { + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + } + } + }, + + "client_1_C1": + { + "environment_variables": + [ + { + "name": "ROS_DISCOVERY_SERVER", + "value": "localhost:11814" + } + ], + "xml_config_file": "/test_cases/test_54_remote_server_locator_modification_interconnected_servers_C1.xml", + "validation": + { + "count_lines_validation": + { + "file_path": "/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_C1.snapshot" + }, + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + }, + "ground_truth_validation": + { + "file_path": "/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_C1.snapshot" + } + } + }, + + "client_2_C2": + { + "environment_variables": + [ + { + "name": "ROS_DISCOVERY_SERVER", + "value": ";localhost:11812" + } + ], + "xml_config_file": "/test_cases/test_54_remote_server_locator_modification_interconnected_servers_C2.xml", + "validation": + { + "count_lines_validation": + { + "file_path": "/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_C2.snapshot" + }, + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + }, + "ground_truth_validation": + { + "file_path": "/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_C2.snapshot" + } + } + }, + + "client_3_C3": + { + "environment_variables": + [ + { + "name": "ROS_DISCOVERY_SERVER", + "value": ";;localhost:11813" + } + ], + "xml_config_file": "/test_cases/test_54_remote_server_locator_modification_interconnected_servers_C3.xml", + "validation": + { + "count_lines_validation": + { + "file_path": "/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_C3.snapshot" + }, + "exit_code_validation": + { + "expected_exit_code": 0 + }, + "stderr_validation": + { + "err_expected_lines": 0 + }, + "ground_truth_validation": + { + "file_path": "/test_solutions/test_54_remote_server_locator_modification_interconnected_servers_C3.snapshot" + } + } + } + } + }, + "test_60_disconnection": { "description": [