Skip to content

Fix logic when other params are passed into instances - #13409

Merged
steveny91 merged 1 commit into
masterfrom
sy/argocd-patch
Nov 30, 2022
Merged

Fix logic when other params are passed into instances#13409
steveny91 merged 1 commit into
masterfrom
sy/argocd-patch

Conversation

@steveny91

@steveny91 steveny91 commented Nov 28, 2022

Copy link
Copy Markdown
Contributor

What does this PR do?

Fix an issue in which when other params are being passed into the instance, the check would throw an error. I originally iterated over the instances expecting there to be endpoints only when setting up custom transformers. Also added a more robust test instance that would reflect what people would use if they would use this check to the tests.

@steveny91
steveny91 requested a review from a team as a code owner November 28, 2022 18:15
@ghost ghost added the integration/argocd label Nov 28, 2022
@steveny91 steveny91 changed the title fix edge case where other params are passed Fix logic to throw error if other params are passed into instances Nov 28, 2022
@steveny91 steveny91 changed the title Fix logic to throw error if other params are passed into instances Fix logic when other params are passed into instances Nov 28, 2022
@codecov

codecov Bot commented Nov 28, 2022

Copy link
Copy Markdown

Codecov Report

Merging #13409 (190963b) into master (91d092e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Flag Coverage Δ
argocd 88.13% <100.00%> (+0.13%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Comment thread argocd/datadog_checks/argocd/check.py
@steveny91
steveny91 merged commit afe0258 into master Nov 30, 2022
@steveny91
steveny91 deleted the sy/argocd-patch branch November 30, 2022 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants