-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #12522: Add test for tool reconnection
Signed-off-by: jparisu <[email protected]>
- Loading branch information
jparisu
committed
Oct 26, 2021
1 parent
ba1f0da
commit 9e65831
Showing
4 changed files
with
326 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
139 changes: 139 additions & 0 deletions
139
test/configuration/test_cases/test_44_fast_discovery_server_tool_reconnect.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<DS xmlns="http://www.eprosima.com/XMLSchemas/discovery-server" user_shutdown="false"> | ||
|
||
<!-- This test checks the clients can use a default server generated by a fastrtps external tool --> | ||
|
||
<clients> | ||
<client name="client1" profile_name="UDP_client1_server1" removal_time="13"> | ||
<publisher topic="topic1"/> | ||
</client> | ||
<client name="client2" profile_name="UDP_client2_server1" removal_time="6"> | ||
<subscriber topic="topic1"/> | ||
</client> | ||
<client name="client3" profile_name="UDP_client3_server1" creation_time="16"> | ||
<publisher topic="topic1"/> | ||
</client> | ||
<client name="client4" profile_name="UDP_client4_server1" creation_time="7"> | ||
<subscriber topic="topic1"/> | ||
</client> | ||
</clients> | ||
|
||
<snapshots file="./test_44_fast_discovery_server_tool_reconnect.snapshot~"> | ||
<snapshot time="3">C1 and C2 know each other and Server</snapshot> | ||
<snapshot time="5">C1 and C2 know only each other</snapshot> | ||
<snapshot time="8">C1 and C4 do not know each other</snapshot> | ||
<snapshot time="12">C1 and C4 know each other and Server</snapshot> | ||
<snapshot time="15">C4 only knows Server</snapshot> | ||
<snapshot time="18">C3 and C4 know each other and Server</snapshot>+ | ||
</snapshots> | ||
|
||
<profiles> | ||
<participant profile_name="UDP_client1_server1" > | ||
<rtps> | ||
<prefix>63.6c.69.65.6e.74.31.5f.73.31.5f.5f</prefix> | ||
<builtin> | ||
<discovery_config> | ||
<discoveryProtocol>CLIENT</discoveryProtocol> | ||
<discoveryServersList> | ||
<RemoteServer prefix="44.53.00.5f.45.50.52.4f.53.49.4d.41"> | ||
<metatrafficUnicastLocatorList> | ||
<locator> | ||
<udpv4> | ||
<address>127.0.0.1</address> | ||
<port>44811</port> | ||
</udpv4> | ||
</locator> | ||
</metatrafficUnicastLocatorList> | ||
</RemoteServer> | ||
</discoveryServersList> | ||
</discovery_config> | ||
</builtin> | ||
</rtps> | ||
</participant> | ||
|
||
<participant profile_name="UDP_client2_server1" > | ||
<rtps> | ||
<prefix>63.6c.69.65.6e.74.32.5f.73.31.5f.5f</prefix> | ||
<builtin> | ||
<discovery_config> | ||
<discoveryProtocol>CLIENT</discoveryProtocol> | ||
<discoveryServersList> | ||
<RemoteServer prefix="44.53.00.5f.45.50.52.4f.53.49.4d.41"> | ||
<metatrafficUnicastLocatorList> | ||
<locator> | ||
<udpv4> | ||
<address>127.0.0.1</address> | ||
<port>44811</port> | ||
</udpv4> | ||
</locator> | ||
</metatrafficUnicastLocatorList> | ||
</RemoteServer> | ||
</discoveryServersList> | ||
</discovery_config> | ||
</builtin> | ||
</rtps> | ||
</participant> | ||
|
||
<participant profile_name="UDP_client3_server1" > | ||
<rtps> | ||
<prefix>63.6c.69.65.6e.74.33.5f.73.31.5f.5f</prefix> | ||
<builtin> | ||
<discovery_config> | ||
<discoveryProtocol>CLIENT</discoveryProtocol> | ||
<discoveryServersList> | ||
<RemoteServer prefix="44.53.00.5f.45.50.52.4f.53.49.4d.41"> | ||
<metatrafficUnicastLocatorList> | ||
<locator> | ||
<udpv4> | ||
<address>127.0.0.1</address> | ||
<port>44811</port> | ||
</udpv4> | ||
</locator> | ||
</metatrafficUnicastLocatorList> | ||
</RemoteServer> | ||
</discoveryServersList> | ||
</discovery_config> | ||
</builtin> | ||
</rtps> | ||
</participant> | ||
|
||
<participant profile_name="UDP_client4_server1" > | ||
<rtps> | ||
<prefix>63.6c.69.65.6e.74.34.5f.73.31.5f.5f</prefix> | ||
<builtin> | ||
<discovery_config> | ||
<discoveryProtocol>CLIENT</discoveryProtocol> | ||
<discoveryServersList> | ||
<RemoteServer prefix="44.53.00.5f.45.50.52.4f.53.49.4d.41"> | ||
<metatrafficUnicastLocatorList> | ||
<locator> | ||
<udpv4> | ||
<address>127.0.0.1</address> | ||
<port>44811</port> | ||
</udpv4> | ||
</locator> | ||
</metatrafficUnicastLocatorList> | ||
</RemoteServer> | ||
</discoveryServersList> | ||
</discovery_config> | ||
</builtin> | ||
</rtps> | ||
</participant> | ||
|
||
<topic profile_name="topic1"> | ||
<name>topic_1</name> | ||
<dataType>sample_type_1</dataType> | ||
</topic> | ||
|
||
<types> | ||
<type> | ||
<struct name="sample_type_1"> | ||
<member name="index" type="uint32" /> | ||
<member name="message" type="string" /> | ||
</struct> | ||
</type> | ||
</types> | ||
|
||
</profiles> | ||
|
||
</DS> |
113 changes: 113 additions & 0 deletions
113
test/configuration/test_solutions/test_44_fast_discovery_server_tool_reconnect.snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<DS_Snapshots xmlns="http://www.eprosima.com/XMLSchemas/ds-snapshot"> | ||
<DS_Snapshot timestamp="1635235945060" process_time="3000" last_pdp_callback_time="469" last_edp_callback_time="920" someone="true"> | ||
<description>C1 and C2 know each other and Server</description> | ||
<ptdb guid_prefix="63.6c.69.65.6e.74.31.5f.73.31.5f.5f" guid_entity="0.0.1.c1"> | ||
<ptdi guid_prefix="44.53.00.5f.45.50.52.4f.53.49.4d.41" guid_entity="0.0.1.c1" server="false" alive="true" name="eProsima Default Server number 0" discovered_timestamp="111"/> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.31.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="" discovered_timestamp="14"> | ||
<publisher type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.31.5f.73.31.5f.5f" guid_entity="0.0.1.3" discovered_timestamp="14"/> | ||
</ptdi> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.32.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="client2" discovered_timestamp="469"> | ||
<subscriber type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.32.5f.73.31.5f.5f" guid_entity="0.0.1.4" discovered_timestamp="920"/> | ||
</ptdi> | ||
</ptdb> | ||
<ptdb guid_prefix="63.6c.69.65.6e.74.32.5f.73.31.5f.5f" guid_entity="0.0.1.c1"> | ||
<ptdi guid_prefix="44.53.00.5f.45.50.52.4f.53.49.4d.41" guid_entity="0.0.1.c1" server="false" alive="true" name="eProsima Default Server number 0" discovered_timestamp="111"/> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.31.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="client1" discovered_timestamp="469"> | ||
<publisher type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.31.5f.73.31.5f.5f" guid_entity="0.0.1.3" discovered_timestamp="920"/> | ||
</ptdi> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.32.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="" discovered_timestamp="18"> | ||
<subscriber type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.32.5f.73.31.5f.5f" guid_entity="0.0.1.4" discovered_timestamp="18"/> | ||
</ptdi> | ||
</ptdb> | ||
</DS_Snapshot> | ||
<DS_Snapshot timestamp="1635235947060" process_time="5000" last_pdp_callback_time="4003" last_edp_callback_time="920" someone="true"> | ||
<description>C1 and C2 know only each other</description> | ||
<ptdb guid_prefix="63.6c.69.65.6e.74.31.5f.73.31.5f.5f" guid_entity="0.0.1.c1"> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.31.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="" discovered_timestamp="14"> | ||
<publisher type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.31.5f.73.31.5f.5f" guid_entity="0.0.1.3" discovered_timestamp="14"/> | ||
</ptdi> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.32.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="client2" discovered_timestamp="469"> | ||
<subscriber type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.32.5f.73.31.5f.5f" guid_entity="0.0.1.4" discovered_timestamp="920"/> | ||
</ptdi> | ||
</ptdb> | ||
<ptdb guid_prefix="63.6c.69.65.6e.74.32.5f.73.31.5f.5f" guid_entity="0.0.1.c1"> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.31.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="client1" discovered_timestamp="469"> | ||
<publisher type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.31.5f.73.31.5f.5f" guid_entity="0.0.1.3" discovered_timestamp="920"/> | ||
</ptdi> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.32.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="" discovered_timestamp="18"> | ||
<subscriber type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.32.5f.73.31.5f.5f" guid_entity="0.0.1.4" discovered_timestamp="18"/> | ||
</ptdi> | ||
</ptdb> | ||
</DS_Snapshot> | ||
<DS_Snapshot timestamp="1635235950060" process_time="8000" last_pdp_callback_time="4003" last_edp_callback_time="7008" someone="true"> | ||
<description>C1 and C4 do not know each other</description> | ||
<ptdb guid_prefix="63.6c.69.65.6e.74.31.5f.73.31.5f.5f" guid_entity="0.0.1.c1"> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.31.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="" discovered_timestamp="14"> | ||
<publisher type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.31.5f.73.31.5f.5f" guid_entity="0.0.1.3" discovered_timestamp="14"/> | ||
</ptdi> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.32.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="client2" discovered_timestamp="469"> | ||
<subscriber type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.32.5f.73.31.5f.5f" guid_entity="0.0.1.4" discovered_timestamp="920"/> | ||
</ptdi> | ||
</ptdb> | ||
<ptdb guid_prefix="63.6c.69.65.6e.74.34.5f.73.31.5f.5f" guid_entity="0.0.1.c1"> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.34.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="" discovered_timestamp="7008"> | ||
<subscriber type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.34.5f.73.31.5f.5f" guid_entity="0.0.1.4" discovered_timestamp="7008"/> | ||
</ptdi> | ||
</ptdb> | ||
</DS_Snapshot> | ||
<DS_Snapshot timestamp="1635235954060" process_time="12000" last_pdp_callback_time="9594" last_edp_callback_time="7008" someone="true"> | ||
<description>C1 and C4 know each other and Server</description> | ||
<ptdb guid_prefix="63.6c.69.65.6e.74.31.5f.73.31.5f.5f" guid_entity="0.0.1.c1"> | ||
<ptdi guid_prefix="44.53.00.5f.45.50.52.4f.53.49.4d.41" guid_entity="0.0.1.c1" server="false" alive="true" name="eProsima Default Server number 0" discovered_timestamp="9594"/> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.31.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="" discovered_timestamp="14"> | ||
<publisher type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.31.5f.73.31.5f.5f" guid_entity="0.0.1.3" discovered_timestamp="14"/> | ||
</ptdi> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.32.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="client2" discovered_timestamp="469"> | ||
<subscriber type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.32.5f.73.31.5f.5f" guid_entity="0.0.1.4" discovered_timestamp="920"/> | ||
</ptdi> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.34.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="" discovered_timestamp="7008"> | ||
<subscriber type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.34.5f.73.31.5f.5f" guid_entity="0.0.1.4" discovered_timestamp="7008"/> | ||
</ptdi> | ||
</ptdb> | ||
<ptdb guid_prefix="63.6c.69.65.6e.74.34.5f.73.31.5f.5f" guid_entity="0.0.1.c1"> | ||
<ptdi guid_prefix="44.53.00.5f.45.50.52.4f.53.49.4d.41" guid_entity="0.0.1.c1" server="false" alive="true" name="eProsima Default Server number 0" discovered_timestamp="9594"/> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.34.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="" discovered_timestamp="7008"> | ||
<subscriber type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.34.5f.73.31.5f.5f" guid_entity="0.0.1.4" discovered_timestamp="7008"/> | ||
</ptdi> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.31.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="" discovered_timestamp="14"> | ||
<publisher type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.31.5f.73.31.5f.5f" guid_entity="0.0.1.3" discovered_timestamp="14"/> | ||
</ptdi> | ||
</ptdb> | ||
</DS_Snapshot> | ||
<DS_Snapshot timestamp="1635235957060" process_time="15000" last_pdp_callback_time="9594" last_edp_callback_time="7008" someone="true"> | ||
<description>C4 only knows Server</description> | ||
<ptdb guid_prefix="63.6c.69.65.6e.74.34.5f.73.31.5f.5f" guid_entity="0.0.1.c1"> | ||
<ptdi guid_prefix="44.53.00.5f.45.50.52.4f.53.49.4d.41" guid_entity="0.0.1.c1" server="false" alive="true" name="eProsima Default Server number 0" discovered_timestamp="9594"/> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.34.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="" discovered_timestamp="7008"> | ||
<subscriber type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.34.5f.73.31.5f.5f" guid_entity="0.0.1.4" discovered_timestamp="7008"/> | ||
</ptdi> | ||
</ptdb> | ||
</DS_Snapshot> | ||
<DS_Snapshot timestamp="1635235960060" process_time="18000" last_pdp_callback_time="16463" last_edp_callback_time="16914" someone="true"> | ||
<description>C3 and C4 know each other and Server</description> | ||
<ptdb guid_prefix="63.6c.69.65.6e.74.33.5f.73.31.5f.5f" guid_entity="0.0.1.c1"> | ||
<ptdi guid_prefix="44.53.00.5f.45.50.52.4f.53.49.4d.41" guid_entity="0.0.1.c1" server="false" alive="true" name="eProsima Default Server number 0" discovered_timestamp="16124"/> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.33.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="" discovered_timestamp="16010"> | ||
<publisher type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.33.5f.73.31.5f.5f" guid_entity="0.0.1.3" discovered_timestamp="16010"/> | ||
</ptdi> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.34.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="client4" discovered_timestamp="16463"> | ||
<subscriber type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.34.5f.73.31.5f.5f" guid_entity="0.0.1.4" discovered_timestamp="16914"/> | ||
</ptdi> | ||
</ptdb> | ||
<ptdb guid_prefix="63.6c.69.65.6e.74.34.5f.73.31.5f.5f" guid_entity="0.0.1.c1"> | ||
<ptdi guid_prefix="44.53.00.5f.45.50.52.4f.53.49.4d.41" guid_entity="0.0.1.c1" server="false" alive="true" name="eProsima Default Server number 0" discovered_timestamp="9594"/> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.33.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="client3" discovered_timestamp="16463"> | ||
<publisher type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.33.5f.73.31.5f.5f" guid_entity="0.0.1.3" discovered_timestamp="16913"/> | ||
</ptdi> | ||
<ptdi guid_prefix="63.6c.69.65.6e.74.34.5f.73.31.5f.5f" guid_entity="0.0.1.c1" server="false" alive="true" name="" discovered_timestamp="7008"> | ||
<subscriber type="sample_type_1" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.34.5f.73.31.5f.5f" guid_entity="0.0.1.4" discovered_timestamp="7008"/> | ||
</ptdi> | ||
</ptdb> | ||
</DS_Snapshot> | ||
</DS_Snapshots> |
Oops, something went wrong.