-
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 client reconnect test
Signed-off-by: jparisu <javierparis@eprosima.com>
- Loading branch information
jparisu
committed
Oct 28, 2021
1 parent
65298f7
commit 242f4b7
Showing
6 changed files
with
213 additions
and
29 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
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
60 changes: 60 additions & 0 deletions
60
test/configuration/test_cases/test_45_trivial_client_reconnect_client.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,60 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<DS xmlns="http://www.eprosima.com/XMLSchemas/discovery-server" user_shutdown="false"> | ||
|
||
<clients> | ||
<client name="client1" profile_name="UDP_client1_server1"> | ||
<publisher topic="topic1"/> | ||
</client> | ||
</clients> | ||
|
||
<snapshots file="./test_45_trivial_client_reconnect_client.snapshot~"> | ||
<snapshot time="2">Knows server B</snapshot> | ||
<snapshot time="6">Do not know server B</snapshot> | ||
<snapshot time="11">Knows server B</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.49.53.43.53.45.52.56.45.52.5F.31"> | ||
<metatrafficUnicastLocatorList> | ||
<locator> | ||
<udpv4> | ||
<address>127.0.0.1</address> | ||
<port>45811</port> | ||
</udpv4> | ||
</locator> | ||
</metatrafficUnicastLocatorList> | ||
</RemoteServer> | ||
</discoveryServersList> | ||
<initialAnnouncements> | ||
<count>0</count> | ||
</initialAnnouncements> | ||
<leaseAnnouncement>DURATION_INFINITY</leaseAnnouncement> | ||
<leaseDuration>DURATION_INFINITY</leaseDuration> | ||
</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> |
38 changes: 38 additions & 0 deletions
38
test/configuration/test_cases/test_45_trivial_client_reconnect_server.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,38 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<DS xmlns="http://www.eprosima.com/XMLSchemas/discovery-server" user_shutdown="false"> | ||
|
||
<servers> | ||
<server name="server" profile_name="UDP server" /> | ||
</servers> | ||
|
||
<snapshots file="./test_45_trivial_client_reconnect_server.snapshot~"> | ||
<snapshot time="4">Do know the client</snapshot> | ||
</snapshots> | ||
|
||
<profiles> | ||
<participant profile_name="UDP server"> | ||
<rtps> | ||
<prefix>44.49.53.43.53.45.52.56.45.52.5F.31</prefix> | ||
<builtin> | ||
<discovery_config> | ||
<discoveryProtocol>SERVER</discoveryProtocol> | ||
<initialAnnouncements> | ||
<count>0</count> | ||
</initialAnnouncements> | ||
<leaseAnnouncement>DURATION_INFINITY</leaseAnnouncement> | ||
<leaseDuration>DURATION_INFINITY</leaseDuration> | ||
</discovery_config> | ||
<metatrafficUnicastLocatorList> | ||
<locator> | ||
<udpv4> | ||
<address>127.0.0.1</address> | ||
<port>45811</port> | ||
</udpv4> | ||
</locator> | ||
</metatrafficUnicastLocatorList> | ||
</builtin> | ||
</rtps> | ||
</participant> | ||
|
||
</profiles> | ||
</DS> |
29 changes: 29 additions & 0 deletions
29
test/configuration/test_solutions/test_45_trivial_client_reconnect_client.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,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<DS_Snapshots xmlns="http://www.eprosima.com/XMLSchemas/ds-snapshot"> | ||
<DS_Snapshot timestamp="1635259147427" process_time="2000" last_pdp_callback_time="126" last_edp_callback_time="12" someone="true"> | ||
<description>Knows server B</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.49.53.43.53.45.52.56.45.52.5f.31" guid_entity="0.0.1.c1" server="false" alive="true" name="server" discovered_timestamp="126"/> | ||
<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="12"> | ||
<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="12"/> | ||
</ptdi> | ||
</ptdb> | ||
</DS_Snapshot> | ||
<DS_Snapshot timestamp="1635259150427" process_time="5000" last_pdp_callback_time="126" last_edp_callback_time="12" someone="true"> | ||
<description>Do not know server B</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="12"> | ||
<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="12"/> | ||
</ptdi> | ||
</ptdb> | ||
</DS_Snapshot> | ||
<DS_Snapshot timestamp="1635259155427" process_time="10000" last_pdp_callback_time="5004" last_edp_callback_time="12" someone="true"> | ||
<description>Knows server B</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.49.53.43.53.45.52.56.45.52.5f.31" guid_entity="0.0.1.c1" server="false" alive="true" name="server" discovered_timestamp="126"/> | ||
<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="12"> | ||
<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="12"/> | ||
</ptdi> | ||
</ptdb> | ||
</DS_Snapshot> | ||
</DS_Snapshots> |
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