Closed shantanoo-desai closed 3 months ago
/cc @rndmh3ro
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 65.18%. Comparing base (
4d0af1a
) to head (fefb2e6
).:exclamation: Current head fefb2e6 differs from pull request most recent head 2fcf0c2. Consider uploading reports for the commit 2fcf0c2 to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@Nemental One of the CI Sanity check for development fails for a test file which doesn't belong to my PR. The other Lint problem will be solved by me now. I am not sure why the particular test file for Sanity Develop Job fails?
Edit: also I used the wrong number for the fragments file (used issue number instead of PR number)
black
Hey @shantanoo-desai Thanks for your PR! I'll do a final review of the changes tomorrow, but so far it looks pretty good. The remaining sanity failings have already been fixed in another PR.
the two Integration Tests seem to fail with HTTP 429 Too Many Requests on the Grafana Endpoint when trying to retrieve some dashboards. I am assuming the tests would just need to be re-run and nothing from my patch should actually break the tests.
@Nemental and @rndmh3ro The PR is rebased to main branch and the changes have been made. The Sanity tests still seem to fail however. Because of the failure strategy in the CI system, I am not sure why some Sanity Checks fail on some branches and some don't.
The remaining sanity workflow failures are not related with your changes and have already been fixed in #354 :)
SUMMARY
This fix adds the
validate_certs
,ca_path
options to the lookup plugin. Both parameters comply with theget_url
functionality of ansible-core and provides additional utility to perform lookup of dashboards from Grafana instances that are configured with Self-Signed Certificates.validate_certs
option value defaults totrue
- following the pattern ofurl
lookup plugin from the Core.ca_path
option value is set explicitly when using the plugin else defaults toNone
.Fixes #346
ISSUE TYPE
COMPONENT NAME
Lookup Plugin for Grafana Dashboards
ADDITIONAL INFORMATION
Tested with a Grafana Docker image with Self-Signed Certificates as well as a local Certificate Authority. The Local CA along with a self-signed certificate is used to form a
chain.crt
and validated asca_path
option for the plugin.