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

Override the default test options for some integrations #15779

Merged
merged 1 commit into from
Sep 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/pr-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
paths:
- datadog_checks_base/datadog_checks/**
- datadog_checks_dev/datadog_checks/dev/*.py
- ddev/src/**
- "!datadog_checks_base/datadog_checks/base/data/agent_requirements.in"

concurrency:
Expand Down
1 change: 1 addition & 0 deletions datadog_checks_dev/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* Remove flup from the dependency bump exclusion list ([#15748](https://github.com/DataDog/integrations-core/pull/15748))
* Remove setuptools from the build-system for new integrations ([#15766](https://github.com/DataDog/integrations-core/pull/15766))
* Stop using the old GPG_COMMAND constant from securesystemslib ([#15776](https://github.com/DataDog/integrations-core/pull/15776))
* Override the default test options for some integrations ([#15779](https://github.com/DataDog/integrations-core/pull/15779))

## 24.1.0 / 2023-08-25

Expand Down
3 changes: 0 additions & 3 deletions datadog_checks_dev/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ python = ["2.7", "3.9"]
matrix.python.features = [
{ value = "cli", if = ["3.9"] },
]
matrix.python.scripts = [
{ key = "test", value = "_dd-test --ignore tests/tooling", if = ["2.7"] },
]
# TODO: remove this when the old CLI is gone
matrix.python.pre-install-commands = [
{ value = "python -m pip install --no-deps --disable-pip-version-check {verbosity:flag:-1} -e ../ddev", if = ["3.9"] },
Expand Down
3 changes: 3 additions & 0 deletions datadog_checks_dev/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,6 @@ include = [
dev-mode-dirs = [
".",
]

[tool.pytest.ini_options]
testpaths = "tests"
6 changes: 6 additions & 0 deletions datadog_checks_dev/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# (C) Datadog, Inc. 2023-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
[tool:pytest]
addopts = "--ignore=tests/tooling"
testpaths = tests
4 changes: 4 additions & 0 deletions datadog_checks_downloader/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

***Fixed***:

* Override the default test options for some integrations ([#15779](https://github.com/DataDog/integrations-core/pull/15779))

## 4.3.0 / 2023-08-25

***Security***:
Expand Down
5 changes: 0 additions & 5 deletions datadog_checks_downloader/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
[[envs.default.matrix]]
python = ["3.9"]

[envs.default.overrides]
matrix.python.scripts = [
{ key = "test", value = "_dd-test --capture=no --log-cli-level=debug" },
]

[envs.default]
e2e-env = false
dependencies = [
Expand Down
3 changes: 3 additions & 0 deletions datadog_checks_downloader/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ include = [
dev-mode-dirs = [
".",
]

[tool.pytest.ini_options]
addopts = "--capture=no --log-cli-level=debug"
4 changes: 4 additions & 0 deletions teamcity/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

***Fixed***:

* Override the default test options for some integrations ([#15779](https://github.com/DataDog/integrations-core/pull/15779))

## 4.0.0 / 2023-08-10

***Changed***:
Expand Down
3 changes: 0 additions & 3 deletions teamcity/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ impl = ["legacy", "openmetrics"]
matrix.impl.env-vars = [
{ key = "USE_OPENMETRICS", value = "true", if = ["openmetrics"] },
]
matrix.python.scripts = [
{ key = "test", value = "_dd-test --ignore=tests/docker" },
]

[envs.default.env-vars]
DDEV_SKIP_GENERIC_TAGS_CHECK = "true"
3 changes: 3 additions & 0 deletions teamcity/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,6 @@ include = [
dev-mode-dirs = [
".",
]

[tool.pytest.ini_options]
addopts = "--ignore=tests/docker"
5 changes: 5 additions & 0 deletions teamcity/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# (C) Datadog, Inc. 2023-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
[tool:pytest]
addopts = "--ignore=tests/docker"
5 changes: 0 additions & 5 deletions win32_event_log/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,3 @@ e2e-env = false
platforms = [
"windows",
]

[envs.default.overrides]
matrix.python.scripts = [
{ key = "test", value = "pytest -v --benchmark-skip tests/legacy", if = ["2.7"] },
]
5 changes: 5 additions & 0 deletions win32_event_log/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# (C) Datadog, Inc. 2023-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
[tool:pytest]
testpaths = "tests/legacy"