# Basic Zombienet Test Script
# Tests basic network functionality

Description: Basic network test
Network: ./simple-network.toml
Creds: config

# Test that nodes are running
alice: is up
bob: is up

# Test that nodes are producing blocks
alice: parachain 0 block height is at least 1 within 60 seconds
bob: parachain 0 block height is at least 1 within 60 seconds

# Test connectivity between nodes
alice: count of peers is at least 1 within 30 seconds
bob: count of peers is at least 1 within 30 seconds

# Test basic RPC functionality
alice: js-script ./test-scripts/check-runtime.js with "rococo" return is 0 within 30 seconds