utkarsharma2 commented on code in PR #31346:
URL: https://github.com/apache/airflow/pull/31346#discussion_r1196281523
##########
airflow/providers/pagerduty/hooks/pagerduty_events.py:
##########
@@ -151,3 +151,11 @@ def create_event(
resp = session.post("/v2/enqueue", json=data)
resp.raise_for_status()
return resp.json()
+
+ def test_connection(self):
+ try:
+ session = pdpyras.EventsAPISession(self.integration_key)
+ session.resolve("some_dedup_key_that_dont_exist")
+ except Exception:
+ return False, "connection test failed, invalid routing key."
Review Comment:
```suggestion
return False, "connection test failed, invalid routing key"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]