Skip to content

[Claude] 4.1: Add SerenDB API integration tests #40

@taariq

Description

@taariq

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions