-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #88 importing config & Add Support for FastAPI 0.92.0 +
* fixed issue preventing /import from /export config output. Added tests validating import/export apis * Bumpted min supported pydbantc version & allowing >= version 0.0.22 * added event loop fixture * calling include_router from EasyAuthAPIRouter init * include routers is now a normal def & removed from on_event startup * added self.include_routers to startup_tasks called by lifecycle startup * using httpx AsyncClient & manually calling lifelcycle startup coroutine server.auth.startup_tasks * converted client usage to AsyncClient * removed action / role verification from api setup * added logging to global_store_update ops * quorum establishes leader, but not RPC secret * reverted redundant include router statement * fixed self.global_store_update references, key_path ENV is now optional allowing local path usage. Fixed manager_proxy cleanup within shutdown_auth_server method. RPC_SECRET is now set from auth_secret * pinned max fastapi version * pinned max fastapi version * fixed lifecycle handling via LifespanManager * added library ensuring lifespan usage in testing * reverted client to non-async * bumped pytest-asyncio, pytest verisons * bumped uvicorn, allowed multipart, fastapi-mail bcrypt versions * added event loop & AsyncClient Usage * using async client * added httpx * passing fastapi app as sever along with test_client * test_client, server returned as tuple * adding pytest.ini * added clean db & tables_setup() to auth_test_server fixture, post auth server setup * added explicit logging for post config import checks * reducing concurrent tests * added testing flag to prevent rpc proxies from being created during testing * added testing=True to prevent rpc proxy usage in testing * modified order of building container used by client tests * adjusted how post import data is validated * added previously tested python versions 3.7+ * removed 3.10 testing for mysql due to lack of support * converted .create into normal def, added middleware setup to __init__ tasks allowing latest release of FastAPI releases * moved EasyAuthServer.create & EasyAuthAPIRouter.create outside of startup def as auth_server is now defined outside running event loop constraint * updated with auth_test_server_and_clean_db fixture * allowing latest fastapi release * moved EasyAuthServer.create out of startup task * Updated EasyAuthClient.create as normal def, to be used before event loop creation * rpc_server attribute assigned from setup coroutine * updated EasyAuthClient.create usage outside of startup task * updated documentation with new EasyAuthServer / EasyAuthClient .create() usage outside of startup events * updated fastapi versions allowed, & min pydbantic version * updated min pydbantic * moved EasyAuthServer.create outside of startup lifecycle --------- Co-authored-by: Joshua (codemation)
- Loading branch information
1 parent
4d4a2f4
commit 89e958c
Showing
20 changed files
with
679 additions
and
574 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.