Skip to content
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

ibm_i integration produces CRITICAL service check if it cannot connect #13114

Merged
merged 5 commits into from
Oct 26, 2022

Conversation

iliakur
Copy link
Contributor

@iliakur iliakur commented Oct 13, 2022

What does this PR do?

As part of adding e2e tests for the ibm_i integration, we change it to emit a CRITICAL service check in case we cannot connect to an IBM-I machine.

Motivation

Part of work on this:
https://datadoghq.atlassian.net/browse/AI-1760

Additional Notes

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have changelog/ and integration/ labels attached
  • If the PR doesn't need to be tested during QA, please add a qa/skip-qa label.

Copy link
Member

@FlorentClarret FlorentClarret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 👍 Left a nit comment

Also, this PR shoud have the no-changelog label because the tests are not shipped with the agent. The changelog only contains code modifications that are bundled with the agent.

Last thing, you can mention the link to the jira card you're working on (if any) in the description

ibm_i/tests/test_e2e.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Oct 13, 2022

Codecov Report

Merging #13114 (687223c) into master (7a98cac) will decrease coverage by 0.00%.
The diff coverage is 60.00%.

Flag Coverage Δ
ibm_i 81.95% <60.00%> (-0.33%) ⬇️

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

ibm_i/tests/test_e2e.py Outdated Show resolved Hide resolved
@github-actions
Copy link

The validations job has failed; please review the Files changed tab for possible suggestions to resolve.

@iliakur iliakur changed the title Add e2e test for ibm_i integration. ibm_i integration produces CRITICAL service check if it cannot connect Oct 24, 2022
ibm_i/datadog_checks/ibm_i/check.py Outdated Show resolved Hide resolved
ibm_i/tests/test_e2e.py Outdated Show resolved Hide resolved
Copy link
Contributor

@fanny-jiang fanny-jiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@iliakur iliakur merged commit 7bc04d4 into master Oct 26, 2022
@iliakur iliakur deleted the iliakurenkov/ibm_i-e2e-test branch October 26, 2022 14:29
github-actions bot pushed a commit that referenced this pull request Oct 26, 2022
#13114)

* Add e2e test for ibm_i integration.

Co-authored-by: Fanny Jiang <[email protected]>

Co-authored-by: Fanny Jiang <[email protected]> 7bc04d4
steveny91 pushed a commit that referenced this pull request Oct 27, 2022
#13114)

* Add e2e test for ibm_i integration.

Co-authored-by: Fanny Jiang <[email protected]>


Co-authored-by: Fanny Jiang <[email protected]>
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.

5 participants