Skip to content

[Feature] Add integration test for Orbit chain deployment workflow #25

@benedicther

Description

@benedicther

Is this related to a problem?
M4 Orbit tools work independently but there's no test that verifies the full deployment workflow end-to-end: config → deployment → validator setup. If one tool's output format changes, dependent tools might break silently.

Describe the feature
Create tests/mcp_tools/test_orbit_e2e.py with an integration test that:

  1. Generates an Orbit chain config (Rollup mode)
  2. Passes config output to deployment generation
  3. Passes deployment output to validator setup
  4. Verifies all outputs are structurally valid and reference each other correctly
  5. Repeat for AnyTrust mode

Which module does this relate to?

  • M4: Orbit (chain config, deployment, validators)

Example usage

def test_full_orbit_rollup_workflow():
    # Step 1: Generate config
    config_result = generate_orbit_config.execute({"chain_type": "rollup", ...})
    assert "prepareChainConfig" in config_result["code"]

    # Step 2: Generate deployment using config
    deploy_result = generate_orbit_deployment.execute({"chain_type": "rollup", ...})
    assert "createRollup" in deploy_result["code"]

    # Step 3: Generate validator setup
    validator_result = generate_validator_setup.execute({"setup_type": "validator", ...})
    assert "docker-compose" in str(validator_result)

Additional context

  • Follow the pattern in tests/mcp_tools/test_m2_e2e.py if it exists
  • Test both Rollup and AnyTrust modes
  • Files: src/mcp/tools/generate_orbit_*.py, src/templates/orbit_templates.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions