test(vault): add mocked post-deployment smoke test flow (closes #399) - #411
Merged
El-swaggerito merged 1 commit intoSep 6, 2026
Conversation
8 tasks
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
force-pushed
the
feat/issue-399-mocked-post-deployment-smoke-flow
branch
from
September 6, 2026 11:10
05cb224 to
cd32f4b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.scripts/run-mocked-smoke-test.py: Standalone CLI supporting human-readable terminal output and structured--jsonreporting.scripts/run-mocked-smoke-test.sh: Shell wrapper script.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.scripts/test-mocked-smoke-test.py: Automated test suite testing schema validation, CLI runs, shell runner, and negative input/file mutations.docs/mock-post-deployment-smoke-test.mdandREADME.mdupdated with execution guide and safety boundaries.Acceptance Criteria Checklist