sidshas03 opened a new pull request, #55744:
URL: https://github.com/apache/airflow/pull/55744

   Aligns the airflowctl client with the FastAPI contract for **POST 
`/assets/events`**.
   
   ## What changed
   - Use **absolute path** `"/assets/events"` in 
`AssetsOperations.create_event` (was `"assets/events"`).
   - Add a lightweight client unit test to assert **route + payload**:
     - `airflow-ctl/tests/test_create_event_client.py`
   - Ensure request/response usage matches the datamodel
     (`CreateAssetEventsBody` → `AssetEventResponse`).
   
   ## Why
   - Prevent routing issues caused by relative client paths.
   - Keep `airflowctl` in sync with the server API and datamodel (complements 
the work in the assets create path).
   
   ## How to verify
   ```bash
   python -m pytest -q airflow-ctl/tests -k create_event
   
   
   Related:
   Related to #55697
   Companion to #55702 (asset creation path + API tests)


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