|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<DS xmlns="http://www.eprosima.com/XMLSchemas/discovery-server" user_shutdown="false"> |
| 3 | + |
| 4 | + <!-- When a DS with a custom GUID (-i param of CLI) listens on any (0.0.0.0) and the clients use |
| 5 | + localhost (127.0.0.1) to connect to the server, the GUID comparison is insufficient to |
| 6 | + correctly transform the server's locator when it is received by the client. A more reliable |
| 7 | + method is required to check if the server's locator is from the same host as the client. |
| 8 | + This test is a regression from #22006.--> |
| 9 | + |
| 10 | + <clients> |
| 11 | + <client name="client1" profile_name="TCPv4_client_1" listening_port="0"> |
| 12 | + <subscriber topic="topic1"/> |
| 13 | + </client> |
| 14 | + <client name="client2" profile_name="TCPv4_client_2" listening_port="0"> |
| 15 | + <publisher topic="topic1"/> |
| 16 | + </client> |
| 17 | + </clients> |
| 18 | + |
| 19 | + <snapshots file="./test_94_tcpv4_custom_guid_transform_locators.snapshot"> |
| 20 | + <snapshot time="5">Knows all</snapshot> |
| 21 | + </snapshots> |
| 22 | + |
| 23 | + <profiles> |
| 24 | + |
| 25 | + <transport_descriptors> |
| 26 | + <transport_descriptor> |
| 27 | + <transport_id>transport_client_1</transport_id> |
| 28 | + <type>TCPv4</type> |
| 29 | + <listening_ports> |
| 30 | + <port>0</port> |
| 31 | + </listening_ports> |
| 32 | + </transport_descriptor> |
| 33 | + <transport_descriptor> |
| 34 | + <transport_id>transport_client_2</transport_id> |
| 35 | + <type>TCPv4</type> |
| 36 | + <listening_ports> |
| 37 | + <port>0</port> |
| 38 | + </listening_ports> |
| 39 | + </transport_descriptor> |
| 40 | + </transport_descriptors> |
| 41 | + |
| 42 | + <participant profile_name="TCPv4_client_1" is_default_profile="true"> |
| 43 | + <rtps> |
| 44 | + <prefix>63.6c.69.65.6e.74.31.5f.73.31.5f.5f</prefix> |
| 45 | + <useBuiltinTransports>false</useBuiltinTransports> |
| 46 | + <userTransports> |
| 47 | + <transport_id>transport_client_1</transport_id> |
| 48 | + </userTransports> |
| 49 | + <builtin> |
| 50 | + <discovery_config> |
| 51 | + <discoveryProtocol>CLIENT</discoveryProtocol> |
| 52 | + <discoveryServersList> |
| 53 | + <locator> |
| 54 | + <tcpv4> |
| 55 | + <address>127.0.0.1</address> |
| 56 | + <physical_port>42200</physical_port> |
| 57 | + <port>42200</port> |
| 58 | + </tcpv4> |
| 59 | + </locator> |
| 60 | + </discoveryServersList> |
| 61 | + </discovery_config> |
| 62 | + </builtin> |
| 63 | + </rtps> |
| 64 | + </participant> |
| 65 | + |
| 66 | + <participant profile_name="TCPv4_client_2" is_default_profile="true"> |
| 67 | + <rtps> |
| 68 | + <prefix>63.6c.69.65.6e.74.32.5f.73.31.5f.5f</prefix> |
| 69 | + <useBuiltinTransports>false</useBuiltinTransports> |
| 70 | + <userTransports> |
| 71 | + <transport_id>transport_client_2</transport_id> |
| 72 | + </userTransports> |
| 73 | + <builtin> |
| 74 | + <discovery_config> |
| 75 | + <discoveryProtocol>CLIENT</discoveryProtocol> |
| 76 | + <discoveryServersList> |
| 77 | + <locator> |
| 78 | + <tcpv4> |
| 79 | + <address>127.0.0.1</address> |
| 80 | + <physical_port>42200</physical_port> |
| 81 | + <port>42200</port> |
| 82 | + </tcpv4> |
| 83 | + </locator> |
| 84 | + </discoveryServersList> |
| 85 | + </discovery_config> |
| 86 | + </builtin> |
| 87 | + </rtps> |
| 88 | + </participant> |
| 89 | + |
| 90 | + <topic profile_name="topic1"> |
| 91 | + <name>topic_1</name> |
| 92 | + <dataType>HelloWorld</dataType> |
| 93 | + </topic> |
| 94 | + |
| 95 | + </profiles> |
| 96 | + |
| 97 | +</DS> |
0 commit comments