josh-fell commented on issue #23118:
URL: https://github.com/apache/airflow/issues/23118#issuecomment-1104028750

   This is fixed by #19792 and confirmed in the 2.3.0b1 release. The current 
implementation of the Test Connection button in the UI is either 
enabled/disabled relative only to the enablement of Airflow REST APIs within an 
environment. Meaning if REST APIs are enabled, the Test Connection button is 
enabled for all connection types even if a selected type doesn't actually 
support testing connectivity in this way.
   
   With 2.3.0, the Test Connection button will be entirely disabled since the 
underlying `AwsBaseHook` doesn't implement a `test_connection()` method which 
is required to actually test the connection. 
   
   Screenshot of what you'd see in 2.3.0:
   <img width="768" alt="image" 
src="https://user-images.githubusercontent.com/48934154/164257972-411173d3-7978-4e20-b66c-f1935a9b7010.png";>
   
   That particular [exception is 
thrown](https://github.com/apache/airflow/blob/d7dbfb7e26a50130d3550e781dc71a5fbcaeb3d2/airflow/providers/amazon/aws/hooks/base_aws.py#L415-L416)
 when the trying to instantiate the `AwsBaseHook` to then call the  
non-existant `test_connection()` method.


-- 
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]

Reply via email to