Skip to content

Example of how to use with Synapse #7

@BigLep

Description

@BigLep

Done Criteria

There is documentation or an example of how a user defines a foc-localnet and then hooks it up to Synapse so they they can do adhoc testing, automated testing, etc.

Old Done Criteria

Note: this done criteria assumed a solution/implementation too much. The spirit of this issue is about showing a developer how they can hook foc-localnet into their workflow of testing / validating FOC through Synapse.

  • There is a clear extension mechanism for adding new “scenarios” on top of the running DevNet, e.g.:
    • Scripts/commands that can be added under a scenarios/ directory.
    • Or a pluggable runner that can invoke multiple flows.
  • At least two additional flows beyond the basic deal+retrieval are implemented, e.g.:
    • Filecoin Pin “add” followed by retrieval.
    • A basic settlement / payment-related flow (or another high-value path).
  • Scenarios can be:
    • Run after the DevNet is up, via a single command per scenario or a scenario selector.
  • Documentation:
    • How to add a new scenario (step-by-step, including where to put code/config).
    • How to run each included scenario.

Why Important

  • Moves foc-localnet from a single happy-path demo to a general-purpose test harness.
  • Enables targeted regression tests for critical workflows (pinning, settlements, etc.).

User/Customer

  • Primary: Engineers using FOC stack features beyond the core deal path.
  • Secondary: Product/solutions engineers (e.g., Path) needing reproducible flows for demos/validation.

Notes

  • Start with very lightweight scenario scaffolding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🐱 Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions