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

   Related: https://github.com/apache/airflow/pull/41067
   
   This PR fixes the tests in `tests/models/test_variable.py`in database 
isolation mode.
   
   This was a bit harder one. It wa snot just fixing tests but to make the API 
working the same way like w/o DB isolation the following needed to be adjusted:
   - Cache need to be cleared on API client as well as server on update
     - This means I needed to add a facade and make internal methods for the 
backend to ensure cache is flushed on client
   - KeyError and AttributeError are used by Variable API and need to be 
supported/transported by internal API w/o HTTP 500
     - Serialization for the two Exceptions needed to be added as well
   - Some tests needed to be excluded because the distributed setup with API 
server does not allow mocking ENV or changing FernetKey during test


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