[Feature] Enable FastDeploy to support adding the “--api-key” authentication parameter. (#4806)

* add api key initial commit

* add unit test

* modify unit test

* move middleware to a single file and add unit tests
This commit is contained in:
kxz2002
2025-11-08 18:24:02 +08:00
committed by GitHub
parent 80aedb82ce
commit 87911b7cf1
7 changed files with 454 additions and 2 deletions
@@ -35,6 +35,7 @@ with (
scheduler_db=None,
scheduler_password=None,
scheduler_topic=None,
api_key=None,
)
mock_parse_args.return_value = mock_args
mock_retrive_model.return_value = "test-model" # Just return the model name without downloading