adorsys / adorsys/status-list-server

Add end-to-end auth and authorization regression tests

未關閉
#319 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement high
主要語言
Rust
星號
22
分支
5
平均合併
2 天 6 小時
30 天內合併 PR
47

描述

## Objective

Add end-to-end auth and authorization regression tests for issuer registration, publishing, updating, and cross-issuer denial.

## Context

The code has unit tests and demo notebooks for important flows, but the auth hardening work should have reliable automated coverage that runs in CI and protects against regressions.

## Deliverables

- [ ] Add integration tests for unregistered issuer publish/update denial.
- [ ] Add tests for issuer A attempting to update issuer B's status list.
- [ ] Add tests for credential registration/rotation rules after those are defined.
- [ ] Add tests for malformed Authorization headers and invalid JWTs at the router level.
- [ ] Ensure tests run under the default in-memory feature profile.

## Acceptance Criteria

- [ ] Auth regressions fail CI without requiring Docker or external services.
- [ ] Tests cover both `PUT` and `PATCH` management endpoints.
- [ ] Tests assert HTTP status and response body shape where stable.

## Verification

- [ ] `cargo nextest run --workspace --all-targets --features memory`

貢獻指南

開啟貢獻指南

研究方向

Start by locating the existing integration/router tests for issuer management endpoints, then run `cargo nextest run --workspace --all-targets --features memory` to establish baseline behavior. Add regression cases for unregistered issuer publish/update denial, cross-issuer update attempts, and malformed `Authorization` / invalid JWT handling on management routes for both PUT and PATCH. Assert expected HTTP status and stable response-body shape where available, and rerun the same nextest command to verify the new coverage passes in the default in-memory profile.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
rust
領域
api, testing-qa
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
62/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。