-
Notifications
You must be signed in to change notification settings - Fork 45
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
Follow up 126: factor out hardcoded common name #134
Conversation
Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, this is a welcome refactor. Curious to get your thoughts regarding the public/private API.
Is there a reason not to do that here? |
There were (still are?) ongoing PRs adding tests or touching tests using of the hard-coded common name when I wrote these commits. So I'd figure we'll let things settle a bit to then do a full search replace. |
Fair point, as long as we don't forget! 👍 |
a2f4b0f
to
0f7cdbb
Compare
This reverts commit 3a45a75. Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
0f7cdbb
to
fdc0826
Compare
Opened #137 so that we don't 👍 |
Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
* use upper case names for constants Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com> * factor out hardcoded common name Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com> * avoid using python builtins as argument names Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com> * Revert "use upper case names for constants" This reverts commit 3a45a75. Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com> * format cnf string to be more readable Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com> * make DEFAULT_COMMON_NAME private Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com> Signed-off-by: ruffsl <roxfoxpox@gmail.com>
Factors out the hardcoded
sros2testCA
into a constantDEFAULT_COMMON_NAME
.Once this is merged, the tests checking for the common name can be updated to leverage this new constant as well.
Long term, this should likely be exposed to users so that they can pick the name used instead of this hardcoded one