henry3260 commented on code in PR #62694:
URL: https://github.com/apache/airflow/pull/62694#discussion_r2903175875


##########
providers/hashicorp/tests/unit/hashicorp/secrets/test_vault.py:
##########
@@ -111,6 +111,16 @@ def 
test_get_connection_without_predefined_mount_point(self, mock_hvac):
         connection = 
test_client.get_connection(conn_id="airflow/test_postgres")
         assert connection.get_uri() == 
"postgresql://airflow:airflow@host:5432/airflow?foo=bar&baz=taz"
 
+        # When mount_point=None and conn_id does not contain "/",
+        # backend should return None and not call Vault
+
+        mock_client.reset_mock()
+
+        result = test_client.get_connection("simple_id")
+
+        assert result is None

Review Comment:
   ```suggestion
           assert test_client.get_connection("simple_id") is None
   ```



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