Implement rmw_test_fixture to start the Zenoh router#583
Merged
Conversation
Signed-off-by: Scott K Logan <logans@cottsay.net>
It's unfortunate that we need to take a dependency to parse the JSON string coming out of the session, but this strategy should reliably open start the router on an arbitrary unused port for the isolated tests to use.
Yadunund
requested changes
Mar 28, 2025
Member
Yadunund
left a comment
There was a problem hiding this comment.
This is great!
It would be great to also check the result of the get() call so i've suggestion some changes around that.
ahcorde
requested changes
Mar 31, 2025
If the Zenoh config specifies a connect/endpoints value, ignore it during isolated testing. The user can disable isolation if they actually want the tests to connect to a specific endpoint.
Signed-off-by: Scott K Logan <logans@cottsay.net>
Yadunund
approved these changes
Apr 1, 2025
Member
Yadunund
left a comment
There was a problem hiding this comment.
LGTM. Thanks for iterating on the PR so quickly!
Member
Author
Contributor
|
Pulls: #583 |
Member
Author
Member
Author
|
Ah, rats, I need to get the new dependency into the CI builds before this can be merged. |
Member
Author
mjcarroll
approved these changes
Apr 4, 2025
Yadunund
approved these changes
Apr 4, 2025
mjcarroll
pushed a commit
that referenced
this pull request
Apr 4, 2025
Since we have the dependency now via #583, this is a potential improvement to the current string concatenation. Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
Yadunund
pushed a commit
that referenced
this pull request
Apr 4, 2025
* Update policy_parser to use nlohmann_json.hpp Since we have the dependency now via #583, this is a potential improvement to the current string concatenation. Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai> * Further json changes Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai> --------- Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
This was referenced Apr 5, 2025
Yadunund
added a commit
that referenced
this pull request
Apr 7, 2025
* Added zenoh_security_configuration_tools package written in cpp Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> * Added domain id Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> * Update policy_parser to use nlohmann_json.hpp Since we have the dependency now via #583, this is a potential improvement to the current string concatenation. Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai> * Further json changes Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai> * Refactor package to zenoh_security_tools Signed-off-by: Yadunund <yadunund@gmail.com> * Inject certificates if enclaves provided Signed-off-by: Yadunund <yadunund@gmail.com> * Replace existing endpoints with tls instead of hardcoded changes Signed-off-by: Yadunund <yadunund@gmail.com> * Update README.md Signed-off-by: Yadunund <yadunund@gmail.com> * Also generate router config with security Signed-off-by: Yadunund <yadunund@gmail.com> * Drop CLI11 dependency Signed-off-by: Yadunund <yadunund@gmail.com> --------- Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai> Signed-off-by: Yadunund <yadunund@gmail.com> Co-authored-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> Co-authored-by: Michael Carroll <mjcarroll@intrinsic.ai>
mergify Bot
pushed a commit
that referenced
this pull request
Apr 20, 2025
* Added zenoh_security_configuration_tools package written in cpp Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> * Added domain id Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> * Update policy_parser to use nlohmann_json.hpp Since we have the dependency now via #583, this is a potential improvement to the current string concatenation. Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai> * Further json changes Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai> * Refactor package to zenoh_security_tools Signed-off-by: Yadunund <yadunund@gmail.com> * Inject certificates if enclaves provided Signed-off-by: Yadunund <yadunund@gmail.com> * Replace existing endpoints with tls instead of hardcoded changes Signed-off-by: Yadunund <yadunund@gmail.com> * Update README.md Signed-off-by: Yadunund <yadunund@gmail.com> * Also generate router config with security Signed-off-by: Yadunund <yadunund@gmail.com> * Drop CLI11 dependency Signed-off-by: Yadunund <yadunund@gmail.com> --------- Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai> Signed-off-by: Yadunund <yadunund@gmail.com> Co-authored-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> Co-authored-by: Michael Carroll <mjcarroll@intrinsic.ai> (cherry picked from commit 1dca3c3)
mergify Bot
pushed a commit
that referenced
this pull request
Apr 20, 2025
* Added zenoh_security_configuration_tools package written in cpp Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> * Added domain id Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> * Update policy_parser to use nlohmann_json.hpp Since we have the dependency now via #583, this is a potential improvement to the current string concatenation. Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai> * Further json changes Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai> * Refactor package to zenoh_security_tools Signed-off-by: Yadunund <yadunund@gmail.com> * Inject certificates if enclaves provided Signed-off-by: Yadunund <yadunund@gmail.com> * Replace existing endpoints with tls instead of hardcoded changes Signed-off-by: Yadunund <yadunund@gmail.com> * Update README.md Signed-off-by: Yadunund <yadunund@gmail.com> * Also generate router config with security Signed-off-by: Yadunund <yadunund@gmail.com> * Drop CLI11 dependency Signed-off-by: Yadunund <yadunund@gmail.com> --------- Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai> Signed-off-by: Yadunund <yadunund@gmail.com> Co-authored-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> Co-authored-by: Michael Carroll <mjcarroll@intrinsic.ai> (cherry picked from commit 1dca3c3)
Yadunund
added a commit
that referenced
this pull request
Apr 20, 2025
* Added zenoh_security_configuration_tools package written in cpp Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> * Added domain id Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> * Update policy_parser to use nlohmann_json.hpp Since we have the dependency now via #583, this is a potential improvement to the current string concatenation. Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai> * Further json changes Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai> * Refactor package to zenoh_security_tools Signed-off-by: Yadunund <yadunund@gmail.com> * Inject certificates if enclaves provided Signed-off-by: Yadunund <yadunund@gmail.com> * Replace existing endpoints with tls instead of hardcoded changes Signed-off-by: Yadunund <yadunund@gmail.com> * Update README.md Signed-off-by: Yadunund <yadunund@gmail.com> * Also generate router config with security Signed-off-by: Yadunund <yadunund@gmail.com> * Drop CLI11 dependency Signed-off-by: Yadunund <yadunund@gmail.com> --------- Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai> Signed-off-by: Yadunund <yadunund@gmail.com> Co-authored-by: Alejandro Hernandez Cordero <ahcorde@gmail.com> Co-authored-by: Michael Carroll <mjcarroll@intrinsic.ai> (cherry picked from commit 1dca3c3) Co-authored-by: yadunund <yadunund@gmail.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It would probably be a good idea to merge the changes to
ZENOH_CONFIG_OVERRIDEwith any existing values, and also to restore the original state when the fixture stops.Requires: