Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add endpoint_url in test_connection #32664

Merged
merged 6 commits into from
Jul 24, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion airflow/providers/amazon/aws/hooks/base_aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,10 @@ def test_connection(self):
"""
try:
session = self.get_session()
conn_info = session.client("sts").get_caller_identity()
test_endpoint_url = self.conn_config.extra_config.get('test_endpoint_url') or None
vincbeck marked this conversation as resolved.
Show resolved Hide resolved
conn_info = session.client("sts",
vincbeck marked this conversation as resolved.
Show resolved Hide resolved
endpoint_url=test_endpoint_url,
).get_caller_identity()
metadata = conn_info.pop("ResponseMetadata", {})
if metadata.get("HTTPStatusCode") != 200:
try:
Expand Down