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
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 10s
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
repository_identifier: simpl-open/platform-automation
|
||||
consumer_email: "consumer@example.local"
|
||||
access_level: read-only
|
||||
access_level: read
|
||||
token_name_prefix: simpl-open
|
||||
token_expiration_days: 30
|
||||
@@ -27,7 +27,7 @@ def _is_valid_email(value: str) -> bool:
|
||||
),
|
||||
"access_level": Field(
|
||||
str,
|
||||
default_value="read-only",
|
||||
default_value="read",
|
||||
description="Requested repository access level",
|
||||
),
|
||||
"token_name_prefix": Field(
|
||||
|
||||
@@ -10,7 +10,7 @@ def test_config_mapping_routes_inputs_to_ops():
|
||||
{
|
||||
"repository_identifier": "simpl-open/platform-automation",
|
||||
"consumer_email": "consumer@example.local",
|
||||
"access_level": "read-only",
|
||||
"access_level": "read",
|
||||
"token_name_prefix": "simpl-open",
|
||||
"token_expiration_days": 30,
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ def test_generate_gitea_credentials_success(monkeypatch, op_context):
|
||||
op_config={
|
||||
"repository_identifier": "platform-automation",
|
||||
"consumer_email": "consumer@example.local",
|
||||
"access_level": "read-only",
|
||||
"access_level": "read",
|
||||
"token_name_prefix": "simpl-open",
|
||||
"token_expiration_days": 30,
|
||||
}
|
||||
@@ -60,7 +60,7 @@ def test_generate_gitea_credentials_requires_gitea_base_url(monkeypatch, op_cont
|
||||
op_config={
|
||||
"repository_identifier": "simpl-open/platform-automation",
|
||||
"consumer_email": "consumer@example.local",
|
||||
"access_level": "read-only",
|
||||
"access_level": "read",
|
||||
"token_name_prefix": "simpl-open",
|
||||
"token_expiration_days": 30,
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ def test_send_credentials_email_success(monkeypatch, op_context):
|
||||
{
|
||||
"repository_identifier": "simpl-open/platform-automation",
|
||||
"consumer_email": "consumer@example.local",
|
||||
"access_level": "read-only",
|
||||
"access_level": "read",
|
||||
"username": "application-consumer",
|
||||
"access_token": "token-123",
|
||||
"repository_access_url": "https://gitea.example.local/simpl-open/platform-automation",
|
||||
|
||||
Reference in New Issue
Block a user