Devnet testing suite and Rhai activation_url support #26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "main-testing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Add automated devnet testing infrastructure and expose the activation service to the Rhai scripting API.
Changes
Rhai API enhancement (
src/rhai/account/manager.rs,src/rhai/account/mod.rs)activation_url()as a chainable method onAccountManagerin Rhaiget_internal()when not explicitly setheroledger_network("dev"); account("name").create().get()now automatically uses the devnet activation service -- no hardcoded URLs, no CLI workaround needed.activation_url("http://...")override still available for custom setupsDevnet test suite (
rhaitests/devnet/)test_smoke_devnet.rhai-- Read-only verification of all 10 devnet contracts (SPORE, GLD, USDH, SPOREX, KVS, DNS, Credit, Groups, Hosting, Faucet)test_devnet_account.rhai-- Self-contained account lifecycle test: creates account, activates on-chain via activation service, verifies existence/balance, queries contracts, cleans upDocumentation (
docs/DEVNET_TESTING.md)Testing
cargo buildcargo test -p heroledger --libfab0b8254eto8370673080