Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CON-214: Added test for creating Connector with participant_qos #47

Merged
merged 1 commit into from
Sep 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>