-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[exporter/instana] Add tests for explicit CA file #14750
[exporter/instana] Add tests for explicit CA file #14750
Conversation
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.
@willianpc thank you for pushing this enablement. I have some feedback inline.
Just for asking, if you don’t mind, we’d like to use the latest build to test new features. @hickeyma |
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.
LGTM, thanks @willianpc.
@sweetxiaodai If you can that would be great. It would help verify your issue. When I use it that way, I'd fetch the branch and reference the exporter dependency from the filesystem. |
@hickeyma may I have the branch name? |
@sweetxiaodai You would need to fetch the PR into a branch similar to the following: |
/cc @jpkrohling for review |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Hi @jpkrohling just a friendly reminder to review the PR with the requested changes :) TIA, |
Sorry for taking so long to review this, I had several events one after the other. I should be more responsive going forward (until the next wave of events). |
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.
Removing the changelog would make this complete. Note that there are no code changes as part of this PR, only new tests (which is a good thing).
@@ -0,0 +1,11 @@ | |||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' |
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.
There are no user-visible changes now, only new tests. Therefore, we don't need a changelog entry.
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.
Thanks, @jpkrohling . I removed the changelog file
Looks like there's a linting failure:
|
Now there seems to be some merge conflicts. |
oh, that makes sense, because the other PR was merged into main :D |
CI seems to be failing:
|
@willianpc Remove this empty line in the import in This should pass listing then. |
* Added new config option ca_file * added extra tests * added chloggen file * updated README.md * provided right config name for the test * applied requested changes * using the collector CA utilities instead of our own * Updated README.md * removed unnecessary tls config * removed changelog * fixed deprecated method call * removed line between imported packages
Description: Added a new exporter option
ca_file
which expects a certificate file.Link to tracking Issue: #14602
Testing: We tested the new option in a compiled collector against a self CA signed server. Unit tests to check the exporter configurations were also added, eg: if the file is found, a mocked self signed server to confirm that the new option works as intended.