apache-airflow-providers-http 5.6.0__tar.gz → 5.6.2rc1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/PKG-INFO +9 -9
  2. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/README.rst +4 -4
  3. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/docs/changelog.rst +28 -0
  4. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/docs/index.rst +4 -4
  5. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/provider.yaml +3 -1
  6. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/pyproject.toml +5 -5
  7. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/src/airflow/providers/http/__init__.py +1 -1
  8. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/src/airflow/providers/http/exceptions.py +1 -1
  9. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/src/airflow/providers/http/hooks/http.py +1 -2
  10. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/src/airflow/providers/http/operators/http.py +3 -9
  11. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/src/airflow/providers/http/sensors/http.py +2 -14
  12. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/src/airflow/providers/http/triggers/http.py +1 -1
  13. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/tests/unit/http/hooks/test_http.py +1 -1
  14. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/tests/unit/http/operators/test_http.py +1 -1
  15. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/tests/unit/http/sensors/test_http.py +3 -3
  16. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/LICENSE +0 -0
  17. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/NOTICE +0 -0
  18. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/docs/.latest-doc-only-change.txt +0 -0
  19. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/docs/commits.rst +0 -0
  20. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/docs/conf.py +0 -0
  21. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/docs/connections/http.rst +0 -0
  22. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/docs/installing-providers-from-sources.rst +0 -0
  23. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/docs/integration-logos/HTTP.png +0 -0
  24. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/docs/operators.rst +0 -0
  25. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/docs/security.rst +0 -0
  26. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/docs/triggers.rst +0 -0
  27. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/src/airflow/__init__.py +0 -0
  28. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/src/airflow/providers/__init__.py +0 -0
  29. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/src/airflow/providers/http/get_provider_info.py +0 -0
  30. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/src/airflow/providers/http/hooks/__init__.py +0 -0
  31. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/src/airflow/providers/http/notifications/__init__.py +0 -0
  32. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/src/airflow/providers/http/notifications/http.py +0 -0
  33. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/src/airflow/providers/http/operators/__init__.py +0 -0
  34. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/src/airflow/providers/http/sensors/__init__.py +0 -0
  35. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/src/airflow/providers/http/triggers/__init__.py +0 -0
  36. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/src/airflow/providers/http/version_compat.py +0 -0
  37. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/tests/conftest.py +0 -0
  38. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/tests/system/__init__.py +0 -0
  39. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/tests/system/http/__init__.py +0 -0
  40. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/tests/system/http/example_http.py +0 -0
  41. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/tests/unit/__init__.py +0 -0
  42. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/tests/unit/http/__init__.py +0 -0
  43. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/tests/unit/http/hooks/__init__.py +0 -0
  44. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/tests/unit/http/notifications/__init__.py +0 -0
  45. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/tests/unit/http/notifications/test_http.py +0 -0
  46. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/tests/unit/http/operators/__init__.py +0 -0
  47. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/tests/unit/http/sensors/__init__.py +0 -0
  48. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/tests/unit/http/triggers/__init__.py +0 -0
  49. {apache_airflow_providers_http-5.6.0 → apache_airflow_providers_http-5.6.2rc1}/tests/unit/http/triggers/test_http.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apache-airflow-providers-http
3
- Version: 5.6.0
3
+ Version: 5.6.2rc1
4
4
  Summary: Provider package apache-airflow-providers-http for Apache Airflow
5
5
  Keywords: airflow-provider,http,airflow,integration
6
6
  Author-email: Apache Software Foundation <dev@airflow.apache.org>
@@ -22,16 +22,16 @@ Classifier: Programming Language :: Python :: 3.13
22
22
  Classifier: Topic :: System :: Monitoring
23
23
  License-File: LICENSE
24
24
  License-File: NOTICE
25
- Requires-Dist: apache-airflow>=2.11.0
26
- Requires-Dist: apache-airflow-providers-common-compat>=1.8.0
25
+ Requires-Dist: apache-airflow>=2.11.0rc1
26
+ Requires-Dist: apache-airflow-providers-common-compat>=1.10.1rc1
27
27
  Requires-Dist: requests>=2.32.0,<3
28
28
  Requires-Dist: requests-toolbelt>=1.0.0
29
29
  Requires-Dist: aiohttp>=3.12.14
30
30
  Requires-Dist: asgiref>=2.3.0
31
31
  Requires-Dist: apache-airflow-providers-common-compat ; extra == "common-compat"
32
32
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
33
- Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-http/5.6.0/changelog.html
34
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-http/5.6.0
33
+ Project-URL: Changelog, https://airflow.staged.apache.org/docs/apache-airflow-providers-http/5.6.2/changelog.html
34
+ Project-URL: Documentation, https://airflow.staged.apache.org/docs/apache-airflow-providers-http/5.6.2
35
35
  Project-URL: Mastodon, https://fosstodon.org/@airflow
36
36
  Project-URL: Slack Chat, https://s.apache.org/airflow-slack
37
37
  Project-URL: Source Code, https://github.com/apache/airflow
@@ -63,7 +63,7 @@ Provides-Extra: common-compat
63
63
 
64
64
  Package ``apache-airflow-providers-http``
65
65
 
66
- Release: ``5.6.0``
66
+ Release: ``5.6.2``
67
67
 
68
68
 
69
69
  `Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__
@@ -76,7 +76,7 @@ This is a provider package for ``http`` provider. All classes for this provider
76
76
  are in ``airflow.providers.http`` python package.
77
77
 
78
78
  You can find package information and changelog for the provider
79
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/5.6.0/>`_.
79
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/5.6.2/>`_.
80
80
 
81
81
  Installation
82
82
  ------------
@@ -94,7 +94,7 @@ Requirements
94
94
  PIP package Version required
95
95
  ========================================== ==================
96
96
  ``apache-airflow`` ``>=2.11.0``
97
- ``apache-airflow-providers-common-compat`` ``>=1.8.0``
97
+ ``apache-airflow-providers-common-compat`` ``>=1.10.1``
98
98
  ``requests`` ``>=2.32.0,<3``
99
99
  ``requests-toolbelt`` ``>=1.0.0``
100
100
  ``aiohttp`` ``>=3.12.14``
@@ -130,5 +130,5 @@ Extra Dependencies
130
130
  ================= ==========================================
131
131
 
132
132
  The changelog for the provider package can be found in the
133
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/5.6.0/changelog.html>`_.
133
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/5.6.2/changelog.html>`_.
134
134
 
@@ -23,7 +23,7 @@
23
23
 
24
24
  Package ``apache-airflow-providers-http``
25
25
 
26
- Release: ``5.6.0``
26
+ Release: ``5.6.2``
27
27
 
28
28
 
29
29
  `Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__
@@ -36,7 +36,7 @@ This is a provider package for ``http`` provider. All classes for this provider
36
36
  are in ``airflow.providers.http`` python package.
37
37
 
38
38
  You can find package information and changelog for the provider
39
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/5.6.0/>`_.
39
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/5.6.2/>`_.
40
40
 
41
41
  Installation
42
42
  ------------
@@ -54,7 +54,7 @@ Requirements
54
54
  PIP package Version required
55
55
  ========================================== ==================
56
56
  ``apache-airflow`` ``>=2.11.0``
57
- ``apache-airflow-providers-common-compat`` ``>=1.8.0``
57
+ ``apache-airflow-providers-common-compat`` ``>=1.10.1``
58
58
  ``requests`` ``>=2.32.0,<3``
59
59
  ``requests-toolbelt`` ``>=1.0.0``
60
60
  ``aiohttp`` ``>=3.12.14``
@@ -90,4 +90,4 @@ Extra Dependencies
90
90
  ================= ==========================================
91
91
 
92
92
  The changelog for the provider package can be found in the
93
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/5.6.0/changelog.html>`_.
93
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/5.6.2/changelog.html>`_.
@@ -27,6 +27,34 @@
27
27
  Changelog
28
28
  ---------
29
29
 
30
+ 5.6.2
31
+ .....
32
+
33
+ Misc
34
+ ~~~~
35
+
36
+ * ``Remove top-level SDK reference in Core (#59817)``
37
+
38
+ .. Below changes are excluded from the changelog. Move them to
39
+ appropriate section above if needed. Do not delete the lines(!):
40
+ * ``TaskInstance unused method cleanup (#59835)``
41
+
42
+ 5.6.1
43
+ .....
44
+
45
+ Misc
46
+ ~~~~
47
+
48
+ * ``Add backcompat for exceptions in providers (#58727)``
49
+
50
+ Doc-only
51
+ ~~~~~~~~
52
+
53
+ * ``Correct header parameter description in HTTP operator (#59105)``
54
+
55
+ .. Below changes are excluded from the changelog. Move them to
56
+ appropriate section above if needed. Do not delete the lines(!):
57
+
30
58
  5.6.0
31
59
  .....
32
60
 
@@ -78,7 +78,7 @@ apache-airflow-providers-http package
78
78
  `Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__
79
79
 
80
80
 
81
- Release: 5.6.0
81
+ Release: 5.6.2
82
82
 
83
83
  Provider package
84
84
  ----------------
@@ -102,7 +102,7 @@ The minimum Apache Airflow version supported by this provider distribution is ``
102
102
  PIP package Version required
103
103
  ========================================== ==================
104
104
  ``apache-airflow`` ``>=2.11.0``
105
- ``apache-airflow-providers-common-compat`` ``>=1.8.0``
105
+ ``apache-airflow-providers-common-compat`` ``>=1.10.1``
106
106
  ``requests`` ``>=2.32.0,<3``
107
107
  ``requests-toolbelt`` ``>=1.0.0``
108
108
  ``aiohttp`` ``>=3.12.14``
@@ -134,5 +134,5 @@ Downloading official packages
134
134
  You can download officially released packages and verify their checksums and signatures from the
135
135
  `Official Apache Download site <https://downloads.apache.org/airflow/providers/>`_
136
136
 
137
- * `The apache-airflow-providers-http 5.6.0 sdist package <https://downloads.apache.org/airflow/providers/apache_airflow_providers_http-5.6.0.tar.gz>`_ (`asc <https://downloads.apache.org/airflow/providers/apache_airflow_providers_http-5.6.0.tar.gz.asc>`__, `sha512 <https://downloads.apache.org/airflow/providers/apache_airflow_providers_http-5.6.0.tar.gz.sha512>`__)
138
- * `The apache-airflow-providers-http 5.6.0 wheel package <https://downloads.apache.org/airflow/providers/apache_airflow_providers_http-5.6.0-py3-none-any.whl>`_ (`asc <https://downloads.apache.org/airflow/providers/apache_airflow_providers_http-5.6.0-py3-none-any.whl.asc>`__, `sha512 <https://downloads.apache.org/airflow/providers/apache_airflow_providers_http-5.6.0-py3-none-any.whl.sha512>`__)
137
+ * `The apache-airflow-providers-http 5.6.2 sdist package <https://downloads.apache.org/airflow/providers/apache_airflow_providers_http-5.6.2.tar.gz>`_ (`asc <https://downloads.apache.org/airflow/providers/apache_airflow_providers_http-5.6.2.tar.gz.asc>`__, `sha512 <https://downloads.apache.org/airflow/providers/apache_airflow_providers_http-5.6.2.tar.gz.sha512>`__)
138
+ * `The apache-airflow-providers-http 5.6.2 wheel package <https://downloads.apache.org/airflow/providers/apache_airflow_providers_http-5.6.2-py3-none-any.whl>`_ (`asc <https://downloads.apache.org/airflow/providers/apache_airflow_providers_http-5.6.2-py3-none-any.whl.asc>`__, `sha512 <https://downloads.apache.org/airflow/providers/apache_airflow_providers_http-5.6.2-py3-none-any.whl.sha512>`__)
@@ -22,12 +22,14 @@ description: |
22
22
  `Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__
23
23
 
24
24
  state: ready
25
- source-date-epoch: 1764110245
25
+ source-date-epoch: 1767124741
26
26
  # Note that those versions are maintained by release manager - do not update them manually
27
27
  # with the exception of case where other provider in sources has >= new provider version.
28
28
  # In such case adding >= NEW_VERSION and bumping to NEW_VERSION in a provider have
29
29
  # to be done in the same PR
30
30
  versions:
31
+ - 5.6.2
32
+ - 5.6.1
31
33
  - 5.6.0
32
34
  - 5.5.0
33
35
  - 5.4.0
@@ -25,7 +25,7 @@ build-backend = "flit_core.buildapi"
25
25
 
26
26
  [project]
27
27
  name = "apache-airflow-providers-http"
28
- version = "5.6.0"
28
+ version = "5.6.2rc1"
29
29
  description = "Provider package apache-airflow-providers-http for Apache Airflow"
30
30
  readme = "README.rst"
31
31
  license = "Apache-2.0"
@@ -58,8 +58,8 @@ requires-python = ">=3.10"
58
58
  # Make sure to run ``prek update-providers-dependencies --all-files``
59
59
  # After you modify the dependencies, and rebuild your Breeze CI image with ``breeze ci-image build``
60
60
  dependencies = [
61
- "apache-airflow>=2.11.0",
62
- "apache-airflow-providers-common-compat>=1.8.0",
61
+ "apache-airflow>=2.11.0rc1",
62
+ "apache-airflow-providers-common-compat>=1.10.1rc1",
63
63
  # The 2.26.0 release of requests got rid of the chardet LGPL mandatory dependency, allowing us to
64
64
  # release it as a requirement for airflow
65
65
  "requests>=2.32.0,<3",
@@ -110,8 +110,8 @@ apache-airflow-providers-common-sql = {workspace = true}
110
110
  apache-airflow-providers-standard = {workspace = true}
111
111
 
112
112
  [project.urls]
113
- "Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-http/5.6.0"
114
- "Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-http/5.6.0/changelog.html"
113
+ "Documentation" = "https://airflow.staged.apache.org/docs/apache-airflow-providers-http/5.6.2"
114
+ "Changelog" = "https://airflow.staged.apache.org/docs/apache-airflow-providers-http/5.6.2/changelog.html"
115
115
  "Bug Tracker" = "https://github.com/apache/airflow/issues"
116
116
  "Source Code" = "https://github.com/apache/airflow"
117
117
  "Slack Chat" = "https://s.apache.org/airflow-slack"
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
29
29
 
30
30
  __all__ = ["__version__"]
31
31
 
32
- __version__ = "5.6.0"
32
+ __version__ = "5.6.2"
33
33
 
34
34
  if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
35
35
  "2.11.0"
@@ -16,7 +16,7 @@
16
16
  # under the License.
17
17
  from __future__ import annotations
18
18
 
19
- from airflow.exceptions import AirflowException
19
+ from airflow.providers.common.compat.sdk import AirflowException
20
20
 
21
21
 
22
22
  class HttpErrorException(AirflowException):
@@ -32,8 +32,7 @@ from requests.exceptions import ConnectionError, HTTPError
32
32
  from requests.models import DEFAULT_REDIRECT_LIMIT
33
33
  from requests_toolbelt.adapters.socket_options import TCPKeepAliveAdapter
34
34
 
35
- from airflow.exceptions import AirflowException
36
- from airflow.providers.common.compat.sdk import BaseHook
35
+ from airflow.providers.common.compat.sdk import AirflowException, BaseHook
37
36
  from airflow.providers.http.exceptions import HttpErrorException, HttpMethodException
38
37
 
39
38
  if TYPE_CHECKING:
@@ -26,8 +26,7 @@ from aiohttp import BasicAuth
26
26
  from requests import Response
27
27
 
28
28
  from airflow.configuration import conf
29
- from airflow.exceptions import AirflowException
30
- from airflow.providers.common.compat.sdk import BaseHook, BaseOperator
29
+ from airflow.providers.common.compat.sdk import AirflowException, BaseHook, BaseOperator
31
30
  from airflow.providers.http.triggers.http import HttpTrigger, serialize_auth_type
32
31
  from airflow.utils.helpers import merge_dicts
33
32
 
@@ -35,12 +34,7 @@ if TYPE_CHECKING:
35
34
  from requests.auth import AuthBase
36
35
 
37
36
  from airflow.providers.http.hooks.http import HttpHook
38
-
39
- try:
40
- from airflow.sdk.definitions.context import Context
41
- except ImportError:
42
- # TODO: Remove once provider drops support for Airflow 2
43
- from airflow.utils.context import Context
37
+ from airflow.sdk import Context
44
38
 
45
39
 
46
40
  class HttpOperator(BaseOperator):
@@ -57,7 +51,7 @@ class HttpOperator(BaseOperator):
57
51
  :param method: The HTTP method to use, default = "POST"
58
52
  :param data: The data to pass. POST-data in POST/PUT and params
59
53
  in the URL for a GET request. (templated)
60
- :param headers: The HTTP headers to be added to the GET request
54
+ :param headers: The HTTP headers to be added to the request
61
55
  :param pagination_function: A callable that generates the parameters used to call the API again,
62
56
  based on the previous response. Typically used when the API is paginated and returns for e.g a
63
57
  cursor, a 'next page id', or a 'next page URL'. When provided, the Operator will call the API
@@ -22,24 +22,12 @@ from datetime import timedelta
22
22
  from typing import TYPE_CHECKING, Any
23
23
 
24
24
  from airflow.configuration import conf
25
- from airflow.exceptions import AirflowException
26
- from airflow.providers.common.compat.sdk import BaseSensorOperator
25
+ from airflow.providers.common.compat.sdk import AirflowException, BaseSensorOperator
27
26
  from airflow.providers.http.hooks.http import HttpHook
28
27
  from airflow.providers.http.triggers.http import HttpSensorTrigger
29
28
 
30
29
  if TYPE_CHECKING:
31
- from airflow.providers.common.compat.version_compat import AIRFLOW_V_3_0_PLUS
32
-
33
- try:
34
- from airflow.sdk.definitions.context import Context
35
-
36
- if AIRFLOW_V_3_0_PLUS:
37
- from airflow.sdk import PokeReturnValue
38
- else:
39
- from airflow.sensors.base import PokeReturnValue # type: ignore[no-redef]
40
- except ImportError:
41
- # TODO: Remove once provider drops support for Airflow 2
42
- from airflow.utils.context import Context
30
+ from airflow.sdk import Context, PokeReturnValue
43
31
 
44
32
 
45
33
  class HttpSensor(BaseSensorOperator):
@@ -32,7 +32,7 @@ from asgiref.sync import sync_to_async
32
32
  from requests.cookies import RequestsCookieJar
33
33
  from requests.structures import CaseInsensitiveDict
34
34
 
35
- from airflow.exceptions import AirflowException
35
+ from airflow.providers.common.compat.sdk import AirflowException
36
36
  from airflow.providers.common.compat.version_compat import AIRFLOW_V_3_0_PLUS
37
37
  from airflow.providers.http.hooks.http import HttpAsyncHook
38
38
  from airflow.triggers.base import BaseTrigger, TriggerEvent
@@ -34,8 +34,8 @@ from requests.adapters import HTTPAdapter, Response
34
34
  from requests.auth import AuthBase, HTTPBasicAuth
35
35
  from requests.models import DEFAULT_REDIRECT_LIMIT
36
36
 
37
- from airflow.exceptions import AirflowException
38
37
  from airflow.models import Connection
38
+ from airflow.providers.common.compat.sdk import AirflowException
39
39
  from airflow.providers.http.hooks.http import HttpAsyncHook, HttpHook, _process_extra_options_from_connection
40
40
 
41
41
 
@@ -31,9 +31,9 @@ from aiohttp import BasicAuth
31
31
  from requests import Response
32
32
  from requests.models import RequestEncodingMixin
33
33
 
34
- from airflow.exceptions import AirflowException, TaskDeferred
35
34
  from airflow.hooks import base
36
35
  from airflow.models import Connection
36
+ from airflow.providers.common.compat.sdk import AirflowException, TaskDeferred
37
37
  from airflow.providers.http.hooks.http import HttpHook
38
38
  from airflow.providers.http.operators.http import HttpOperator
39
39
  from airflow.providers.http.triggers.http import HttpTrigger, serialize_auth_type
@@ -23,8 +23,8 @@ from unittest.mock import patch
23
23
  import pytest
24
24
  import requests
25
25
 
26
- from airflow.exceptions import AirflowException, AirflowSensorTimeout, TaskDeferred
27
26
  from airflow.models.dag import DAG
27
+ from airflow.providers.common.compat.sdk import AirflowException, AirflowSensorTimeout, TaskDeferred
28
28
  from airflow.providers.http.operators.http import HttpOperator
29
29
  from airflow.providers.http.sensors.http import HttpSensor
30
30
  from airflow.providers.http.triggers.http import HttpSensorTrigger
@@ -151,7 +151,7 @@ class TestHttpSensor:
151
151
  assert prep_request.method, received_request.method
152
152
 
153
153
  @patch("airflow.providers.http.hooks.http.Session.send")
154
- def test_poke_context(self, mock_session_send, create_task_instance_of_operator):
154
+ def test_poke_context(self, mock_session_send, dag_maker, create_task_instance_of_operator):
155
155
  response = requests.Response()
156
156
  response.status_code = 200
157
157
  mock_session_send.return_value = response
@@ -172,7 +172,7 @@ class TestHttpSensor:
172
172
  poke_interval=1,
173
173
  )
174
174
 
175
- task_instance.task.execute(task_instance.get_template_context())
175
+ dag_maker.dag.get_task(task_instance.task_id).execute(task_instance.get_template_context())
176
176
 
177
177
  @patch("airflow.providers.http.hooks.http.Session.send")
178
178
  def test_logging_head_error_request(self, mock_session_send, create_task_of_operator):