Update access level to 'read' in configuration and tests
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 10s

This commit is contained in:
ILay
2026-06-16 18:45:30 +02:00
parent e89e7715a0
commit 6970b27095
5 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
repository_identifier: simpl-open/platform-automation repository_identifier: simpl-open/platform-automation
consumer_email: "consumer@example.local" consumer_email: "consumer@example.local"
access_level: read-only access_level: read
token_name_prefix: simpl-open token_name_prefix: simpl-open
token_expiration_days: 30 token_expiration_days: 30

View File

@@ -27,7 +27,7 @@ def _is_valid_email(value: str) -> bool:
), ),
"access_level": Field( "access_level": Field(
str, str,
default_value="read-only", default_value="read",
description="Requested repository access level", description="Requested repository access level",
), ),
"token_name_prefix": Field( "token_name_prefix": Field(

View File

@@ -10,7 +10,7 @@ def test_config_mapping_routes_inputs_to_ops():
{ {
"repository_identifier": "simpl-open/platform-automation", "repository_identifier": "simpl-open/platform-automation",
"consumer_email": "consumer@example.local", "consumer_email": "consumer@example.local",
"access_level": "read-only", "access_level": "read",
"token_name_prefix": "simpl-open", "token_name_prefix": "simpl-open",
"token_expiration_days": 30, "token_expiration_days": 30,
} }

View File

@@ -39,7 +39,7 @@ def test_generate_gitea_credentials_success(monkeypatch, op_context):
op_config={ op_config={
"repository_identifier": "platform-automation", "repository_identifier": "platform-automation",
"consumer_email": "consumer@example.local", "consumer_email": "consumer@example.local",
"access_level": "read-only", "access_level": "read",
"token_name_prefix": "simpl-open", "token_name_prefix": "simpl-open",
"token_expiration_days": 30, "token_expiration_days": 30,
} }
@@ -60,7 +60,7 @@ def test_generate_gitea_credentials_requires_gitea_base_url(monkeypatch, op_cont
op_config={ op_config={
"repository_identifier": "simpl-open/platform-automation", "repository_identifier": "simpl-open/platform-automation",
"consumer_email": "consumer@example.local", "consumer_email": "consumer@example.local",
"access_level": "read-only", "access_level": "read",
"token_name_prefix": "simpl-open", "token_name_prefix": "simpl-open",
"token_expiration_days": 30, "token_expiration_days": 30,
} }

View File

@@ -52,7 +52,7 @@ def test_send_credentials_email_success(monkeypatch, op_context):
{ {
"repository_identifier": "simpl-open/platform-automation", "repository_identifier": "simpl-open/platform-automation",
"consumer_email": "consumer@example.local", "consumer_email": "consumer@example.local",
"access_level": "read-only", "access_level": "read",
"username": "application-consumer", "username": "application-consumer",
"access_token": "token-123", "access_token": "token-123",
"repository_access_url": "https://gitea.example.local/simpl-open/platform-automation", "repository_access_url": "https://gitea.example.local/simpl-open/platform-automation",