Parent: #28
Depends on: All Phase 1-3 tasks
Task
Create integration tests for SerenDB API in tests/serendb_api_test.rs.
File to Create
tests/serendb_api_test.rs
What to Add
Integration tests that can run against a real SerenDB API:
test_list_projects - Verify projects can be listed
test_list_branches - Verify branches can be listed
test_get_connection_string - Verify connection string is valid
Tests should be marked #[ignore] and require:
SEREN_API_KEY environment variable
TEST_SERENDB_PROJECT_ID environment variable
See docs/plans/api-key-flow-implementation.md Task 4.1 for full code.
How to Test
export SEREN_API_KEY=seren_xxx
export TEST_SERENDB_PROJECT_ID=your-project-id
cargo test --test serendb_api_test -- --ignored --nocapture
Commit Message
test: Add SerenDB API integration tests
Parent: #28
Depends on: All Phase 1-3 tasks
Task
Create integration tests for SerenDB API in
tests/serendb_api_test.rs.File to Create
tests/serendb_api_test.rsWhat to Add
Integration tests that can run against a real SerenDB API:
test_list_projects- Verify projects can be listedtest_list_branches- Verify branches can be listedtest_get_connection_string- Verify connection string is validTests should be marked
#[ignore]and require:SEREN_API_KEYenvironment variableTEST_SERENDB_PROJECT_IDenvironment variableSee
docs/plans/api-key-flow-implementation.mdTask 4.1 for full code.How to Test
Commit Message
test: Add SerenDB API integration tests