-
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.
Signed-off-by: cferreiragonz <[email protected]>
- Loading branch information
1 parent
26d6a82
commit c2cfb0f
Showing
4 changed files
with
186 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
98 changes: 98 additions & 0 deletions
98
test/configuration/test_cases/test_94_tcpv4_custom_guid_transform_locators.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,98 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<DS xmlns="http://www.eprosima.com/XMLSchemas/discovery-server" user_shutdown="false"> | ||
|
||
<!-- When a DS with a custom GUID (-i param of CLI) listens on any (0.0.0.0) and the clients use | ||
localhost (127.0.0.1) to connect to the server, the GUID comparison is insufficient to | ||
correctly transform the server's locator when it is received by the client. If a local interface | ||
is received, a new entry to the channel_resources_ map will be created to redirect all TCP | ||
traffic in the same machine through the same channel. | ||
This test is a regression from #22006.--> | ||
|
||
<clients> | ||
<client name="client1" profile_name="TCPv4_client_1" listening_port="0"> | ||
<subscriber topic="topic1"/> | ||
</client> | ||
<client name="client2" profile_name="TCPv4_client_2" listening_port="0"> | ||
<publisher topic="topic1"/> | ||
</client> | ||
</clients> | ||
|
||
<snapshots file="./test_94_tcpv4_custom_guid_transform_locators.snapshot"> | ||
<snapshot time="5">Knows all</snapshot> | ||
</snapshots> | ||
|
||
<profiles> | ||
|
||
<transport_descriptors> | ||
<transport_descriptor> | ||
<transport_id>transport_client_1</transport_id> | ||
<type>TCPv4</type> | ||
<listening_ports> | ||
<port>0</port> | ||
</listening_ports> | ||
</transport_descriptor> | ||
<transport_descriptor> | ||
<transport_id>transport_client_2</transport_id> | ||
<type>TCPv4</type> | ||
<listening_ports> | ||
<port>0</port> | ||
</listening_ports> | ||
</transport_descriptor> | ||
</transport_descriptors> | ||
|
||
<participant profile_name="TCPv4_client_1" is_default_profile="true"> | ||
<rtps> | ||
<prefix>63.6c.69.65.6e.74.31.5f.73.31.5f.5f</prefix> | ||
<useBuiltinTransports>false</useBuiltinTransports> | ||
<userTransports> | ||
<transport_id>transport_client_1</transport_id> | ||
</userTransports> | ||
<builtin> | ||
<discovery_config> | ||
<discoveryProtocol>CLIENT</discoveryProtocol> | ||
<discoveryServersList> | ||
<locator> | ||
<tcpv4> | ||
<address>127.0.0.1</address> | ||
<physical_port>42200</physical_port> | ||
<port>42200</port> | ||
</tcpv4> | ||
</locator> | ||
</discoveryServersList> | ||
</discovery_config> | ||
</builtin> | ||
</rtps> | ||
</participant> | ||
|
||
<participant profile_name="TCPv4_client_2" is_default_profile="true"> | ||
<rtps> | ||
<prefix>63.6c.69.65.6e.74.32.5f.73.31.5f.5f</prefix> | ||
<useBuiltinTransports>false</useBuiltinTransports> | ||
<userTransports> | ||
<transport_id>transport_client_2</transport_id> | ||
</userTransports> | ||
<builtin> | ||
<discovery_config> | ||
<discoveryProtocol>CLIENT</discoveryProtocol> | ||
<discoveryServersList> | ||
<locator> | ||
<tcpv4> | ||
<address>127.0.0.1</address> | ||
<physical_port>42200</physical_port> | ||
<port>42200</port> | ||
</tcpv4> | ||
</locator> | ||
</discoveryServersList> | ||
</discovery_config> | ||
</builtin> | ||
</rtps> | ||
</participant> | ||
|
||
<topic profile_name="topic1"> | ||
<name>topic_1</name> | ||
<dataType>HelloWorld</dataType> | ||
</topic> | ||
|
||
</profiles> | ||
|
||
</DS> |
24 changes: 24 additions & 0 deletions
24
test/configuration/test_solutions/test_94_tcpv4_custom_guid_transform_locators.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,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<DS_Snapshots xmlns="http://www.eprosima.com/XMLSchemas/ds-snapshot"> | ||
<DS_Snapshot timestamp="1701424362042" process_time="5000" last_pdp_callback_time="620" last_edp_callback_time="1067" someone="true"> | ||
<description>Knows all</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="339"/> | ||
<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="125"> | ||
<subscriber type="HelloWorld" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.31.5f.73.31.5f.5f" guid_entity="0.0.1.4" discovered_timestamp="125"/> | ||
</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="620"> | ||
<publisher type="HelloWorld" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.32.5f.73.31.5f.5f" guid_entity="0.0.1.3" discovered_timestamp="1067"/> | ||
</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="489"/> | ||
<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="615"> | ||
<subscriber type="HelloWorld" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.31.5f.73.31.5f.5f" guid_entity="0.0.1.4" discovered_timestamp="1067"/> | ||
</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="233"> | ||
<publisher type="HelloWorld" topic="topic_1" guid_prefix="63.6c.69.65.6e.74.32.5f.73.31.5f.5f" guid_entity="0.0.1.3" discovered_timestamp="233"/> | ||
</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