add cert pages

This commit is contained in:
2025-11-12 08:49:18 -03:00
parent fa87cf3e07
commit 850f620f78
16 changed files with 271 additions and 203 deletions

View File

@@ -1,6 +1,8 @@
import json
from http import HTTPMethod, HTTPStatus
from layercake.dynamodb import DynamoDBPersistenceLayer
from ..conftest import HttpApiProxy, LambdaContext
@@ -23,6 +25,24 @@ def test_get_admins(
assert len(r['items']) == 1
def test_revoke(
app,
seeds,
dynamodb_persistence_layer: DynamoDBPersistenceLayer,
http_api_proxy: HttpApiProxy,
lambda_context: LambdaContext,
):
r = app.lambda_handler(
http_api_proxy(
raw_path='/orgs/f6000f79-6e5c-49a0-952f-3bda330ef278/admins',
method=HTTPMethod.DELETE,
body={'user_id': '15bacf02-1535-4bee-9022-19d106fd7518'},
),
lambda_context,
)
assert r['statusCode'] == HTTPStatus.NO_CONTENT
def test_get_scheduled(
app,
seeds,