Skip to content

Agent registration: route-level integration tests #652

@arturasmckwcz

Description

@arturasmckwcz

Follow-up from #601.

The write helpers have 14 unit tests, but register.routes and membership.routes were only smoke-tested manually. Add automated integration tests covering:

  • POST /agent/register: token auth (400/401/403), create (201), join (active/pending), 409 + agentId.
  • GET /agent/register/search: token gate + domain-scoped results.
  • GET/PATCH/DELETE /agent/membership: COORDINATOR/ADMIN guard, approve, reject, 404.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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