-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Prati28 <[email protected]> Signed-off-by: Pratiksha Sankhe <[email protected]> Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> Co-authored-by: Alex Kanitz <[email protected]>
- Loading branch information
1 parent
0516517
commit cb97130
Showing
22 changed files
with
1,519 additions
and
396 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
"author_email": "[email protected]", | ||
"development_status": "1 - Planning", | ||
"short_description": "File handler utilizing TUS and MinIO with DRS-Filer integration.", | ||
"project_name": "tus-storagehandler", | ||
"project_name": "tus_storagehandler", | ||
"project_slug": "tus_storagehandler", | ||
"github_username": "elixir-cloud-aai", | ||
"python_version": "3.11", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
name: Run Application | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install Poetry | ||
run: | | ||
curl -sSL https://install.python-poetry.org | python3 - | ||
echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
- name: Activate environment and install dependencies | ||
run: | | ||
make v | ||
source .venv/bin/activate | ||
make i | ||
- name: Start server in the background | ||
run: | | ||
tus_storagehandler & | ||
echo $! > server.pid | ||
- name: Run tests | ||
run: | | ||
poetry run pytest tests/test_integration | ||
- name: Stop server | ||
run: | | ||
kill $(cat server.pid) || true | ||
... |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
server: | ||
host: '0.0.0.0' | ||
port: 8080 | ||
debug: false | ||
environment: development | ||
testing: false | ||
use_reloader: true | ||
|
||
security: | ||
auth: | ||
required: true | ||
add_key_to_claims: true | ||
allow_expired: false | ||
audience: null | ||
claim_identity: sub | ||
claim_issuer: iss | ||
algorithms: | ||
- RS256 | ||
validation_methods: | ||
- userinfo | ||
- public_key | ||
validation_checks: all | ||
|
||
api: | ||
specs: | ||
- path: tus_storagehandler/api/specs/specs.yaml | ||
append: null | ||
add_operation_fields: | ||
x-openapi-router-controller: tus_storagehandler.api.elixircloud.csh.controllers | ||
connexion: | ||
strict_validation: true | ||
validate_responses: false | ||
options: | ||
swagger_ui: true | ||
serve_spec: true | ||
|
||
exceptions: | ||
required_members: [['message'], ['code']] | ||
status_member: ['code'] | ||
exceptions: tus_storagehandler.exceptions.exceptions | ||
... |
21 changes: 21 additions & 0 deletions
21
docs/source/pages/tus_storagehandler.api.elixircloud.csh.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
tus\_storagehandler.api.elixircloud.csh package | ||
=============================================== | ||
|
||
Submodules | ||
---------- | ||
|
||
tus\_storagehandler.api.elixircloud.csh.controllers module | ||
---------------------------------------------------------- | ||
|
||
.. automodule:: tus_storagehandler.api.elixircloud.csh.controllers | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: tus_storagehandler.api.elixircloud.csh | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
tus\_storagehandler.api.elixircloud package | ||
=========================================== | ||
|
||
Subpackages | ||
----------- | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
tus_storagehandler.api.elixircloud.csh | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: tus_storagehandler.api.elixircloud | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
tus\_storagehandler.api package | ||
=============================== | ||
|
||
Subpackages | ||
----------- | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
tus_storagehandler.api.elixircloud | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: tus_storagehandler.api | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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.