class_docstr: Hook for Airbyte API.
  
  :param airbyte_conn_id: Optional. The name of the Airflow connection to get
      connection information for Airbyte. Defaults to "airbyte_default".
  :param api_version: Optional. Airbyte API version. Defaults to "v1".
class_docstr_tok: ["Hook","for","Airbyte","API",".",":","param","airbyte_conn_id",":","Optional",".","The","name","of","the","Airflow","connection","to","get","connection","information","for","Airbyte",".","Defaults","to","``","airbyte_default","''",".",":","param","api_version",":","Optional",".","Airbyte","API","version",".","Defaults","to","``","v1","''","."]
docstr: Tests the Airbyte connection by hitting the health API.
docstr_tok: ["Tests","the","Airbyte","connection","by","hitting","the","health","API","."]
code: def test_connection(self):
      """Tests the Airbyte connection by hitting the health API."""
      self.method = "GET"
      try:
          res = self.run(
              endpoint=f"api/{self.api_version}/health",
              headers={"accept": "application/json"},
              extra_options={"check_response": False},
          )
  
          if res.status_code == 200:
              return True, "Connection successfully tested"
          else:
              return False, res.text
      except Exception as e:
          return False, str(e)
      finally:
          self.method = "POST"
  
file_path: airflow/airflow/providers/airbyte/hooks/airbyte.py
imports: from __future__ import annotations
  import time
  from typing import Any
  from airflow.exceptions import AirflowException
  from airflow.providers.http.hooks.http import HttpHook
label_desc: Use image node_id 6 for calling the AirbyteHook obj's underlying member method code with example usage: obj.test_connection() and returns: True,  str, False,  res, False,  str