Skip to content

[Matrix] Phase 3: Integration Tests #786

@alacy-centrl

Description

@alacy-centrl

Overview

Create integration tests with real Matrix homeserver (Synapse) running in Docker.

Tasks

  • Create test/matrix-integration.test.js
  • Set up Synapse in Docker for testing
  • Test full message flow (send/receive)
  • Test media upload/download
  • Test multi-room scenarios
  • Test multi-identity support
  • Add test fixtures (users, rooms)
  • Create test automation script

Test Scenarios

  • Create test room, send message, receive reply
  • Upload image, verify receipt
  • Multiple Matrix accounts in single bridge
  • Room federation (if applicable)
  • Error recovery (network interruption)
  • Long-running stability

Acceptance Criteria

  • Integration tests pass against Synapse
  • Tests are reproducible
  • Tests clean up resources after completion
  • Can run locally and in CI
  • Document setup instructions

Estimated Time

1 day

Dependencies

Technical Details

  • Use Docker Compose for Synapse setup
  • Create test Matrix accounts programmatically
  • Use test fixtures for consistent state
  • Add to CI pipeline as optional job

Docker Setup

# docker-compose.test.yml
services:
  synapse:
    image: matrixdotorg/synapse
    ports:
      - "8008:8008"
    environment:
      - SYNAPSE_SERVER_NAME=localhost
      - SYNAPSE_REPORT_STATS=no

See full plan: https://github.com/users/alacy-centrl/projects/2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions