Skip to content

Commit 032c501

Browse files
committed
test: integration testing improvements
1 parent 9a534e7 commit 032c501

File tree

4 files changed

+401
-17
lines changed

4 files changed

+401
-17
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,9 @@ jobs:
454454
run: |
455455
cargo nextest run \
456456
--package inferadb-engine-api \
457+
--package inferadb-engine-auth \
457458
--test ledger_integration \
459+
--test signing_key_cache_ledger_integration \
458460
--features test-utils \
459461
--profile ci \
460462
--no-fail-fast

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/api/src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@ pub async fn create_test_router(state: AppState) -> Result<Router> {
548548
// Create a simple router for tests (without rate limiting or JWT auth)
549549
// Tests should use the test auth middleware to inject authentication context
550550
let router = Router::new()
551+
// Core authorization endpoints
551552
.route("/access/v1/evaluate", post(evaluate_stream_handler))
552553
.route("/access/v1/expand", post(expand_handler))
553554
.route("/access/v1/resources/list", post(list_resources_stream_handler))
@@ -559,9 +560,12 @@ pub async fn create_test_router(state: AppState) -> Result<Router> {
559560
"/access/v1/relationships/{resource}/{relation}/{subject}",
560561
get(handlers::relationships::get::get_relationship),
561562
)
562-
// Organization management routes (for content negotiation tests)
563+
// AuthZEN-compliant endpoints
564+
.route("/access/v1/evaluation", post(handlers::authzen::evaluation::post_evaluation))
565+
.route("/access/v1/evaluations", post(handlers::authzen::evaluation::post_evaluations))
566+
// Organization management routes
563567
.route("/access/v1/organizations/{id}", get(handlers::organizations::get::get_organization))
564-
// Vault management routes (for content negotiation tests)
568+
// Vault management routes
565569
.route("/access/v1/vaults/{id}", get(handlers::vaults::get::get_vault))
566570
// Health endpoints (Kubernetes conventions)
567571
.route("/livez", get(health::livez_handler))

0 commit comments

Comments
 (0)