Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
6e9d272
initial commit, added API call and dynamically generated .conf for re…
Oct 31, 2025
bad4cb7
fixed issue with theiaide and rstudio, should be working now
Nov 4, 2025
1d604ff
added get_backends_by_id(int id) and implemented it in update_backend…
milo39 Nov 5, 2025
ee09ea5
backend_update_auth now has different exception responses (404/500) f…
milo39 Nov 5, 2025
b434472
minor corrections
milo39 Nov 13, 2025
1601e3b
implemented and fixed switch function with auth status output. minor …
milo39 Nov 27, 2025
60251d8
refactored update backend authorization flow, changed return types, i…
milo39 Dec 4, 2025
99f93fa
started adding unit tests for views/backend.py and service/backend.py
milo39 Dec 17, 2025
eee4076
unfinished, wrote unit tests for parts of service/backend.py and view…
milo39 Jan 8, 2026
e2d0972
test
vktrrdk Jan 8, 2026
9e8c631
Added helper functions and refactored backend authorization update lo…
milo39 Jan 13, 2026
e92f18f
backend service: refactored and debloated create_backend() by adding …
milo39 Jan 13, 2026
0ad366a
refactored delete_backend() by splitting into sub functions
milo39 Jan 15, 2026
bc80914
removed unneccessary async calls and commented out existing functions
milo39 Jan 17, 2026
81ef9b5
testing environment, added some test functions
milo39 Jan 20, 2026
d7ff550
feat(Tests):updated tests (#535) and also some changes in templating
dweinholz Jan 21, 2026
9c6a722
finished test_views_backend, started test_service_backend, improvemen…
milo39 Jan 21, 2026
0cca71c
added tests to test_service_backend.py, corrections to service/backen…
milo39 Jan 21, 2026
cd9f4eb
refactored some backend functions for clarity and consistency; added …
milo39 Jan 21, 2026
55ce4da
added tests to service/backend.py
milo39 Jan 21, 2026
e06af18
added further tests
milo39 Jan 21, 2026
8708a23
finished test_convert_backend_temp_to_out, added conftest.py and test…
milo39 Jan 26, 2026
0bbf613
finished test_check_backend_path_file()
milo39 Jan 26, 2026
9d0c857
finished test_check_backend_path_file_naming and changed to original …
milo39 Jan 26, 2026
a91b76b
added helper_create_backend_file, might need to refactor to mock os f…
milo39 Jan 26, 2026
bac4dc1
refactored tests to mock os functions, added test_get_backend_path_fi…
milo39 Jan 29, 2026
f274bc9
fixed issue with create_instance
milo39 Feb 5, 2026
8d79b6b
cleaned up some log calls
milo39 Feb 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified .clog.toml
100644 → 100755
Empty file.
Empty file modified .github/workflows/dummy-renovate.yml
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified FastapiOpenRestyConfigurator/.env.in
100644 → 100755
Empty file.
Binary file removed FastapiOpenRestyConfigurator/.requirements.txt.kate-swp
Binary file not shown.
Empty file modified FastapiOpenRestyConfigurator/app/__init__.py
100644 → 100755
Empty file.
Empty file modified FastapiOpenRestyConfigurator/app/main/__init__.py
100644 → 100755
Empty file.
Empty file modified FastapiOpenRestyConfigurator/app/main/config.py
100644 → 100755
Empty file.
Empty file modified FastapiOpenRestyConfigurator/app/main/model/__init__.py
100644 → 100755
Empty file.
18 changes: 14 additions & 4 deletions FastapiOpenRestyConfigurator/app/main/model/serializers.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@

owner_regex = r'^[a-zA-Z0-9@.-]{30,}$'
user_key_url_regex = r"^[a-zA-Z0-9_-]{3,25}$"
upstream_url_regex = r"^(https?)://(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}):(\d{1,5})$"
upstream_url_regex = r"^(https?)://(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}):(\d{1,5})(/[a-zA-Z0-9_-]+/)?$"


# TODO: needs refactoring to comply with python 3.10 and pydantic v2

class BackendBase(BaseModel):
"""
Base class for backend.
Expand All @@ -53,6 +55,12 @@ class BackendBase(BaseModel):
description="Version of the template the backend refers to.",
example="v04"
)
auth_enabled: bool = Field(
True,
title="Authorization for the research environment",
description="If set to true, only the owner of the backend is allowed to access it.",
example=False
)

@validator("owner")
def owner_validation(cls, owner):
Expand Down Expand Up @@ -82,7 +90,7 @@ class BackendIn(BackendBase):
...,
title="Upstream URL",
description="Inject the full url (with protocol) for the real location of the backend service in the template.",
example="http://192.168.0.1:8787/"
example="http://192.168.0.1:8787/guacamole/"
)

@validator("user_key_url")
Expand Down Expand Up @@ -113,7 +121,7 @@ class BackendOut(BackendBase):
"""
Backend class which holds information needed when returning a backend.
"""
id: int = Field(
id: int = Field( # TODO: needs refactoring: change type to int and rename to backend_id
...,
title="ID",
description="ID of the backend.",
Expand All @@ -136,13 +144,15 @@ class BackendTemp(BackendIn, BackendOut):
"""
Backend class to temporarily save information. Links BackendIn with BackendOut.
"""
id: int = None
id: int = None # TODO: also needs refactoring: change type to int and rename to backend_id
owner: str = None
location_url: str = None
template: str = None
template_version: str = None
user_key_url: str = None
upstream_url: str = None
auth_enabled: bool = None
file_path: str = None


class Template(BaseModel):
Expand Down
Empty file modified FastapiOpenRestyConfigurator/app/main/service/__init__.py
100644 → 100755
Empty file.
Loading