From 4360e46112c15a819be701803b0e285a5b172afe Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 6 Jan 2022 16:56:41 +0100 Subject: [PATCH] Rename release deprecation field to agent version (#11040) --- datadog_checks_base/tests/models/data/spec.yaml | 4 ++-- .../configuration/consumers/model/test_deprecations.py | 8 ++++---- .../tests/tooling/configuration/consumers/test_example.py | 4 ++-- docs/developer/meta/config-specs.md | 2 +- mongo/assets/configuration/spec.yaml | 2 +- mongo/datadog_checks/mongo/config_models/deprecations.py | 2 +- mongo/datadog_checks/mongo/data/conf.yaml.example | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/datadog_checks_base/tests/models/data/spec.yaml b/datadog_checks_base/tests/models/data/spec.yaml index b871c06944eaf..b78f2531a3914 100644 --- a/datadog_checks_base/tests/models/data/spec.yaml +++ b/datadog_checks_base/tests/models/data/spec.yaml @@ -11,7 +11,7 @@ files: - name: deprecated description: words deprecation: - Release: 8.0.0 + Agent_Version: 8.0.0 Migration: | do this and that @@ -62,7 +62,7 @@ files: - name: deprecated description: words deprecation: - Release: 9.0.0 + Agent version: 9.0.0 Migration: | do this and that diff --git a/datadog_checks_dev/tests/tooling/configuration/consumers/model/test_deprecations.py b/datadog_checks_dev/tests/tooling/configuration/consumers/model/test_deprecations.py index 97e5616a758dc..1707a46f4a0ce 100644 --- a/datadog_checks_dev/tests/tooling/configuration/consumers/model/test_deprecations.py +++ b/datadog_checks_dev/tests/tooling/configuration/consumers/model/test_deprecations.py @@ -25,7 +25,7 @@ def test(): - name: deprecated description: words deprecation: - Release: 8.0.0 + Agent version: 8.0.0 Migration: do this and that value: type: string @@ -38,7 +38,7 @@ def test(): - name: deprecated description: words deprecation: - Release: 9.0.0 + Agent version: 9.0.0 Migration: do this and that value: type: string @@ -62,10 +62,10 @@ def test(): == """ def shared(): - return {'deprecated': {'Release': '8.0.0', 'Migration': 'do this and that'}} + return {'deprecated': {'Agent version': '8.0.0', 'Migration': 'do this and that'}} def instance(): - return {'deprecated': {'Release': '9.0.0', 'Migration': 'do this and that'}} + return {'deprecated': {'Agent version': '9.0.0', 'Migration': 'do this and that'}} """ ) diff --git a/datadog_checks_dev/tests/tooling/configuration/consumers/test_example.py b/datadog_checks_dev/tests/tooling/configuration/consumers/test_example.py index 3b445327cf2d6..2019d7170819a 100644 --- a/datadog_checks_dev/tests/tooling/configuration/consumers/test_example.py +++ b/datadog_checks_dev/tests/tooling/configuration/consumers/test_example.py @@ -955,7 +955,7 @@ def test_deprecation(): - name: foo description: foo words deprecation: - Release: 8.0.0 + Agent version: 8.0.0 Migration: | do this and that @@ -978,7 +978,7 @@ def test_deprecation(): ## ## <<< DEPRECATED >>> ## - ## Release: 8.0.0 + ## Agent version: 8.0.0 ## Migration: do this ## and that # diff --git a/docs/developer/meta/config-specs.md b/docs/developer/meta/config-specs.md index f9bce6d76f336..a91eb3500f84a 100644 --- a/docs/developer/meta/config-specs.md +++ b/docs/developer/meta/config-specs.md @@ -57,7 +57,7 @@ Every option has 10 possible attributes: ```yaml deprecation: - Release: 8.0.0 + Agent version: 8.0.0 Migration: | do this and that diff --git a/mongo/assets/configuration/spec.yaml b/mongo/assets/configuration/spec.yaml index dfaced5b58474..49a1a90eca6b3 100644 --- a/mongo/assets/configuration/spec.yaml +++ b/mongo/assets/configuration/spec.yaml @@ -186,7 +186,7 @@ files: - test:mongodb - name: server deprecation: - Release: "8.0.0" + Agent version: "8.0.0" Migration: | Use the following options instead: hosts, username, password, database, options diff --git a/mongo/datadog_checks/mongo/config_models/deprecations.py b/mongo/datadog_checks/mongo/config_models/deprecations.py index 3dec3b8ca3403..884d807b2e599 100644 --- a/mongo/datadog_checks/mongo/config_models/deprecations.py +++ b/mongo/datadog_checks/mongo/config_models/deprecations.py @@ -6,7 +6,7 @@ def instance(): return { 'server': { - 'Release': '8.0.0', + 'Agent version': '8.0.0', 'Migration': 'Use the following options instead:\nhosts, username, password, database, options\n', } } diff --git a/mongo/datadog_checks/mongo/data/conf.yaml.example b/mongo/datadog_checks/mongo/data/conf.yaml.example index 778a8221b7e95..a3c4565a01260 100644 --- a/mongo/datadog_checks/mongo/data/conf.yaml.example +++ b/mongo/datadog_checks/mongo/data/conf.yaml.example @@ -164,7 +164,7 @@ instances: ## ## <<< DEPRECATED >>> ## - ## Release: 8.0.0 + ## Agent version: 8.0.0 ## Migration: Use the following options instead: ## hosts, username, password, database, options #