Skip to content

test(vault): add mocked post-deployment smoke test flow (closes #399) - #411

Merged
El-swaggerito merged 1 commit into
Axionvera:mainfrom
Ranjeet2063:feat/issue-399-mocked-post-deployment-smoke-flow
Sep 6, 2026
Merged

test(vault): add mocked post-deployment smoke test flow (closes #399)#411
El-swaggerito merged 1 commit into
Axionvera:mainfrom
Ranjeet2063:feat/issue-399-mocked-post-deployment-smoke-flow

Conversation

@Ranjeet2063

Copy link
Copy Markdown
Contributor

Summary

Closes #399

Adds a deterministic, contributor-safe mocked post-deployment smoke test flow covering deployed contract ID resolution, initialization input loading, read verification, sequential lifecycle checks (initialization, deposit, reward funding, claim, and withdrawal), and emitted event validation without calling live Stellar testnet or requiring secrets.

Key Changes

  1. Mocked Post-Deployment Smoke Test Flow:
    • Covers 5 distinct sequential stages: contract ID resolution, initialization parameter loading, initial state read checks, deposit accounting, and reward allocation / claim / withdrawal flow.
  2. Schema & Examples:
    • schemas/mock-post-deployment-smoke.schema.json: Formal JSON Schema defining smoke test input config and report results.
    • examples/mock-post-deployment-smoke-input.json: Reference input config resolving contract ID from registry and initialization inputs from fixture.
    • examples/mock-post-deployment-smoke-output.json: Full sample execution report with all stages passing.
  3. CLI & Shell Runners:
    • scripts/run-mocked-smoke-test.py: Standalone CLI supporting human-readable terminal output and structured --json reporting.
    • scripts/run-mocked-smoke-test.sh: Shell wrapper script.
  4. Rust Contract Integration Test:
    • contracts/vault-contract/tests/smoke_mocked.rs: Integration tests in Soroban SDK test environment verifying fixture resolution and sequential contract lifecycle execution with event emission checks.
  5. Python Regression Tests:
    • scripts/test-mocked-smoke-test.py: Automated test suite testing schema validation, CLI runs, shell runner, and negative input/file mutations.
  6. Documentation & README:
    • docs/mock-post-deployment-smoke-test.md and README.md updated with execution guide and safety boundaries.

Acceptance Criteria Checklist

  • Mocked post-deployment smoke flow is added.
  • Mocked contract ID loading is included.
  • Mocked initialization input loading is included.
  • Expected lifecycle checks are documented.
  • Tests validate the mocked smoke flow or fixtures.
  • Example output is included.
  • No live RPC calls or secrets are used.
  • cargo fmt, cargo check, cargo test, and cargo clippy pass.

Copilot AI lite review requested due to automatic review settings September 6, 2026 11:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@El-swaggerito

Copy link
Copy Markdown
Contributor
\nThis PR is currently blocked by merge conflicts.\n\nPlease update the branch with the latest main branch and resolve the conflicts before it can be merged.

@Ranjeet2063
Ranjeet2063 force-pushed the feat/issue-399-mocked-post-deployment-smoke-flow branch from 05cb224 to cd32f4b Compare September 6, 2026 11:10
@El-swaggerito
El-swaggerito merged commit 7de0478 into Axionvera:main Sep 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add mocked post-deployment smoke test flow

3 participants