Skip to content

Commit

Permalink
CON-214: Added test for creating Connector with participant_qos (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelraeburn authored Sep 7, 2020
1 parent 9abd009 commit 4b53f4e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/python/test_rticonnextdds_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,17 @@ def test_load_multiple_files(self):
assert connector is not None
output = connector.get_output("MyPublisher2::MySquareWriter2")
assert output is not None

def test_connector_creation_with_participant_qos(self):
"""
Tests that a domain_participant defined in XML alonside participant_qos
can be used to create a Connector object.
"""
participant_profile = "MyParticipantLibrary::ConnectorWithParticipantQos"
xml_path = os.path.join(os.path.dirname(
os.path.realpath(__file__)),
"../xml/TestConnector.xml")
with rti.open_connector(
config_name=participant_profile,
url=xml_path) as connector:
assert connector is not None
6 changes: 6 additions & 0 deletions test/xml/TestConnector.xml
Original file line number Diff line number Diff line change
Expand Up @@ -394,5 +394,11 @@ This code contains trade secrets of Real-Time Innovations, Inc.
</data_writer>
</publisher>
</domain_participant>

<!-- Test for CON-214 -->
<domain_participant name="ConnectorWithParticipantQos"
domain_ref="MyDomainLibrary::MyDomain">
<participant_qos/>
</domain_participant>
</domain_participant_library>
</dds>

0 comments on commit 4b53f4e

Please sign in to comment.