-
Notifications
You must be signed in to change notification settings - Fork 791
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow participant profiles with no rtps tag (#3771)
* Refs #19315: Allow participant profiles with no rtps tag Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com> * Refs #19315: Apply suggestions Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com> * Refs #19315: Apply suggestions 2 Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com> --------- Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com> (cherry picked from commit 9bcd313) # Conflicts: # src/cpp/rtps/xmlparser/XMLParser.cpp
- Loading branch information
1 parent
0731042
commit 96ff66b
Showing
4 changed files
with
99 additions
and
17 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
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
14 changes: 14 additions & 0 deletions
14
test/unittest/xmlparser/regressions/simple_participant_profiles_nok.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,14 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<dds xmlns="http://www.eprosima.com/XMLSchemas/fastRTPS_Profiles"> | ||
<profiles> | ||
<participant profile_name="duplicated_domainid_participant"> | ||
<domainId>1</domainId> | ||
<domainId>2</domainId> | ||
</participant> | ||
|
||
<participant profile_name="duplicated_rtps_participant"> | ||
<rtps></rtps> | ||
<rtps></rtps> | ||
</participant> | ||
</profiles> | ||
</dds> |
24 changes: 24 additions & 0 deletions
24
test/unittest/xmlparser/regressions/simple_participant_profiles_ok.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,24 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<dds xmlns="http://www.eprosima.com/XMLSchemas/fastRTPS_Profiles"> | ||
<profiles> | ||
<participant profile_name="empty_participant"> | ||
</participant> | ||
|
||
<participant profile_name="only_rtps_participant"> | ||
<rtps></rtps> | ||
</participant> | ||
|
||
<participant profile_name="only_rtps_participant"> | ||
<rtps/> | ||
</participant> | ||
|
||
<participant profile_name="only_domainid_participant"> | ||
<domainId>1</domainId> | ||
</participant> | ||
|
||
<participant profile_name="complete_participant"> | ||
<domainId>1</domainId> | ||
<rtps></rtps> | ||
</participant> | ||
</profiles> | ||
</dds> |