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

Add tests for options on delete #513

Merged
merged 8 commits into from
Jan 28, 2020

Conversation

iminoso
Copy link
Contributor

@iminoso iminoso commented Jan 13, 2020

https://datadoghq.atlassian.net/browse/MA-791

What does this PR do?

Add tests to confirm correct behavior of using options with the delete method in the client.

Review checklist (to be filled by reviewers)

  • Feature or bug fix MUST have appropriate tests (unit, integration, etc...)
  • 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 one changelog/ label attached. If applicable it should have the backward-incompatible label attached.
  • PR should not have do-not-merge/ label attached.
  • If Applicable, issue must have kind/ and severity/ labels attached at least.

@iminoso iminoso requested a review from a team as a code owner January 13, 2020 22:11
@iminoso
Copy link
Contributor Author

iminoso commented Jan 14, 2020

/azp run DataDog.datadogpy.integration

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@dabcoder dabcoder left a comment

Choose a reason for hiding this comment

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

Left a note re: the first test failure. The second test failure looks unrelated, we can look into it once the first one is fixed.

tests/integration/api/test_api.py Show resolved Hide resolved
@iminoso
Copy link
Contributor Author

iminoso commented Jan 14, 2020

/azp run DataDog.datadogpy.integration

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@iminoso iminoso force-pushed the ian.minoso/add-tests-for-delete-options branch from 93a4d5d to 7c5b7aa Compare January 14, 2020 16:24
@iminoso
Copy link
Contributor Author

iminoso commented Jan 14, 2020

/azp run DataDog.datadogpy.integration

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@iminoso iminoso force-pushed the ian.minoso/add-tests-for-delete-options branch from 7c5b7aa to e814e30 Compare January 14, 2020 16:45
@iminoso
Copy link
Contributor Author

iminoso commented Jan 14, 2020

/azp run DataDog.datadogpy.integration

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@iminoso iminoso force-pushed the ian.minoso/add-tests-for-delete-options branch from e814e30 to 1763466 Compare January 14, 2020 17:09
@iminoso iminoso requested a review from a team as a code owner January 14, 2020 17:09
@github-actions github-actions bot added the documentation Documentation related changes label Jan 14, 2020
@iminoso iminoso force-pushed the ian.minoso/add-tests-for-delete-options branch from 1763466 to 3621c7c Compare January 14, 2020 17:12
@iminoso iminoso removed the documentation Documentation related changes label Jan 14, 2020
@iminoso
Copy link
Contributor Author

iminoso commented Jan 14, 2020

/azp run DataDog.datadogpy.integration

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@github-actions github-actions bot added the documentation Documentation related changes label Jan 14, 2020
@iminoso iminoso force-pushed the ian.minoso/add-tests-for-delete-options branch from 94164de to dc6c69a Compare January 14, 2020 19:36
@iminoso
Copy link
Contributor Author

iminoso commented Jan 14, 2020

/azp run DataDog.datadogpy.integration

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

armcburney
armcburney previously approved these changes Jan 14, 2020
Copy link
Member

@armcburney armcburney left a comment

Choose a reason for hiding this comment

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

This LGTM! Nice work Ian!! ✅

DEVELOPMENT.md Outdated Show resolved Hide resolved
@iminoso iminoso requested a review from dabcoder January 14, 2020 19:39
dabcoder
dabcoder previously approved these changes Jan 15, 2020
Copy link
Contributor

@dabcoder dabcoder 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, once it's fully supported indeed. Left a quick docs note. Thanks!

)["data"][0]

# Check if you can delete the monitor with force option
options = {"force": True}
Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM. We'll also have to add a note about this options argument in the docs since it currently mentions it dors not take any JSON args: https://docs.datadoghq.com/api/?lang=python#delete-a-monitor once it's live.

@jirikuncar jirikuncar added changelog/no-changelog Changes don't appear in changelog dev/testing Tests related changes resource/api labels Jan 21, 2020
@jirikuncar
Copy link
Contributor

/azp run DataDog.datadogpy.integration

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link

@ruthnaebeck ruthnaebeck left a comment

Choose a reason for hiding this comment

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

No review needs from docs

@jirikuncar jirikuncar removed the documentation Documentation related changes label Jan 21, 2020
@zippolyte zippolyte dismissed stale reviews from dabcoder and armcburney via 952b298 January 28, 2020 10:55
@zippolyte
Copy link
Contributor

/azp run DataDog.datadogpy.integration

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@DataDog DataDog deleted a comment from iminoso Jan 28, 2020
@zippolyte zippolyte merged commit e945fc0 into master Jan 28, 2020
@zippolyte zippolyte deleted the ian.minoso/add-tests-for-delete-options branch January 28, 2020 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog Changes don't appear in changelog dev/testing Tests related changes resource/api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants