Skip to content

Commit

Permalink
Make ServerAttributes private (#147)
Browse files Browse the repository at this point in the history
Signed-off-by: cferreiragonz <[email protected]>
  • Loading branch information
cferreiragonz authored Jul 3, 2024
1 parent 3041463 commit 93c94a1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 55 deletions.
1 change: 0 additions & 1 deletion fastdds_python/src/swig/fastdds.i
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ namespace xtypes {
%include "fastdds/rtps/flowcontrol/FlowControllerDescriptor.i"
%include "fastdds/rtps/attributes/PropertyPolicy.i"
%include "fastdds/rtps/attributes/RTPSParticipantAttributes.i"
%include "fastdds/rtps/attributes/ServerAttributes.i"
%include "fastdds/rtps/attributes/ReaderAttributes.i"
%include "fastdds/rtps/attributes/WriterAttributes.i"
%include "fastdds/rtps/common/SequenceNumber.i"
Expand Down
27 changes: 0 additions & 27 deletions fastdds_python/src/swig/fastdds/rtps/attributes/ServerAttributes.i

This file was deleted.

34 changes: 7 additions & 27 deletions fastdds_python/test/api/test_qos.py
Original file line number Diff line number Diff line change
Expand Up @@ -1436,16 +1436,12 @@ def test_domain_participant_qos():
discoveryServer_client_syncperiod.nanosec = 10
participant_qos.wire_protocol().builtin.discovery_config. \
discoveryServer_client_syncperiod.nanosec = 10
server_info = fastdds.RemoteServerAttributes()
server_info.guidPrefix.value = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
locator = fastdds.Locator_t()
locator.address = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 168, 1, 1)
locator.port = 7400
locator.kind = fastdds.LOCATOR_KIND_UDPv4
server_info.metatrafficMulticastLocatorList.push_back(locator)
server_info.metatrafficUnicastLocatorList.push_back(locator)
participant_qos.wire_protocol().builtin.discovery_config. \
m_DiscoveryServers.push_back(server_info)
m_DiscoveryServers.push_back(locator)
participant_qos.wire_protocol().builtin.discovery_config. \
ignoreParticipantFlags = fastdds.FILTER_DIFFERENT_HOST
assert(not participant_qos.wire_protocol().builtin.discovery_config.
Expand Down Expand Up @@ -1485,18 +1481,10 @@ def test_domain_participant_qos():
discoveryServer_client_syncperiod.nanosec)
server_info = participant_qos.wire_protocol().builtin.discovery_config. \
m_DiscoveryServers[0]
assert((1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ==
server_info.guidPrefix.value)
locator = server_info.metatrafficMulticastLocatorList[0]
assert((0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 168, 1, 1) ==
locator.address)
assert(7400 == locator.port)
assert(fastdds.LOCATOR_KIND_UDPv4 == locator.kind)
locator = server_info.metatrafficUnicastLocatorList[0]
assert((0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 168, 1, 1) ==
locator.address)
assert(7400 == locator.port)
assert(fastdds.LOCATOR_KIND_UDPv4 == locator.kind)
server_info.address)
assert(7400 == server_info.port)
assert(fastdds.LOCATOR_KIND_UDPv4 == server_info.kind)
assert(fastdds.FILTER_DIFFERENT_HOST == participant_qos.
wire_protocol().builtin.discovery_config.ignoreParticipantFlags)
# ## .metatrafficUnicastLocatorList;
Expand Down Expand Up @@ -1734,18 +1722,10 @@ def test_domain_participant_qos():
discovery_config.discoveryServer_client_syncperiod.nanosec)
server_info = default_participant_qos.wire_protocol().builtin. \
discovery_config.m_DiscoveryServers[0]
assert((1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ==
server_info.guidPrefix.value)
locator = server_info.metatrafficMulticastLocatorList[0]
assert((0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 168, 1, 1) ==
locator.address)
assert(7400 == locator.port)
assert(fastdds.LOCATOR_KIND_UDPv4 == locator.kind)
locator = server_info.metatrafficUnicastLocatorList[0]
assert((0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 168, 1, 1) ==
locator.address)
assert(7400 == locator.port)
assert(fastdds.LOCATOR_KIND_UDPv4 == locator.kind)
server_info.address)
assert(7400 == server_info.port)
assert(fastdds.LOCATOR_KIND_UDPv4 == server_info.kind)
assert(fastdds.FILTER_DIFFERENT_HOST == default_participant_qos.
wire_protocol().builtin.discovery_config.ignoreParticipantFlags)
# ## .metatrafficUnicastLocatorList;
Expand Down

0 comments on commit 93c94a1

Please sign in to comment.