Skip to content

Commit

Permalink
Include validate_cert in backwards compatibility remapper (#8543)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristineTChen authored Feb 5, 2021
1 parent 0bead60 commit bd555f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tls/datadog_checks/tls/tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class TLSCheck(AgentCheck):
'private_key': {'name': 'tls_private_key'},
'ca_cert': {'name': 'tls_ca_cert'},
'validate_hostname': {'name': 'tls_validate_hostname'},
'validate_cert': {'name': 'tls_verify'},
}

def __init__(self, name, init_config, instances):
Expand Down
1 change: 1 addition & 0 deletions tls/tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def test_validation_data():
pytest.param(
{'validate_hostname': False}, {'tls_validate_hostname': False}, id='legacy validate_hostname param'
),
pytest.param({'validate_cert': False}, {'tls_verify': False}, id='legacy validate_cert param'),
],
)
def test_config(extra_config, expected_http_kwargs):
Expand Down

0 comments on commit bd555f3

Please sign in to comment.