You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2020/06/12 22:22:04 UTC

[airflow] branch master updated: Fix PagerDuty and OpsGenie tests (#9261)

This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/master by this push:
     new cf5ab1d  Fix PagerDuty and OpsGenie tests (#9261)
cf5ab1d is described below

commit cf5ab1d80dd78086b31dfc9aec848f8ecaffea1e
Author: Ash Berlin-Taylor <as...@firemirror.com>
AuthorDate: Fri Jun 12 23:20:27 2020 +0100

    Fix PagerDuty and OpsGenie tests (#9261)
    
    conn_type was enforced by #9187
---
 tests/providers/opsgenie/hooks/test_opsgenie_alert.py | 1 +
 tests/providers/pagerduty/hooks/test_pagerduty.py     | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/tests/providers/opsgenie/hooks/test_opsgenie_alert.py b/tests/providers/opsgenie/hooks/test_opsgenie_alert.py
index ffae3f4..b12df1c 100644
--- a/tests/providers/opsgenie/hooks/test_opsgenie_alert.py
+++ b/tests/providers/opsgenie/hooks/test_opsgenie_alert.py
@@ -69,6 +69,7 @@ class TestOpsgenieAlertHook(unittest.TestCase):
         db.merge_conn(
             Connection(
                 conn_id=self.conn_id,
+                conn_type='http',
                 host='https://api.opsgenie.com/',
                 password='eb243592-faa2-4ba2-a551q-1afdf565c889'
             )
diff --git a/tests/providers/pagerduty/hooks/test_pagerduty.py b/tests/providers/pagerduty/hooks/test_pagerduty.py
index ff00188..254d5c0 100644
--- a/tests/providers/pagerduty/hooks/test_pagerduty.py
+++ b/tests/providers/pagerduty/hooks/test_pagerduty.py
@@ -32,6 +32,7 @@ class TestPagerdutyHook(unittest.TestCase):
     def setUp(self, session=None):
         session.add(Connection(
             conn_id=DEFAULT_CONN_ID,
+            conn_type='http',
             password="pagerduty_token",
             extra='{"routing_key": "route"}',
         ))
@@ -41,6 +42,7 @@ class TestPagerdutyHook(unittest.TestCase):
     def test_without_routing_key_extra(self, session):
         session.add(Connection(
             conn_id="pagerduty_no_extra",
+            conn_type='http',
             password="pagerduty_token_without_extra",
         ))
         session.commit()