Amiga-Z Wiki

“Modern tools for old-school communities.”

User Tools

Site Tools


robinnet:testing

This is an old revision of the document!


RobinNet Testing Workflow

Testing RobinNet locally is easiest using two nodes.


Start Node A

ROBINNET_DB=./data/alpha.db \
ROBINNET_PORT=8081 \
python -m robinnet.main

Start Node B

ROBINNET_DB=./data/bravo.db \
ROBINNET_PORT=8082 \
python -m robinnet.main

Add Peer

From node A:

python -m robinnet.cli \
  --db ./data/alpha.db \
  add-peer \
  --name bravo \
  --url http://127.0.0.1:8082

Post Bulletin

python -m robinnet.cli \
  --db ./data/alpha.db \
  post-bulletin \
  --title "Test Message" \
  --body "Hello RobinNet"

Sync Nodes

python -m robinnet.cli \
  --db ./data/bravo.db \
  sync-peer \
  --peer-id 1

Verify Replication

python -m robinnet.cli \
  --db ./data/bravo.db \
  list-messages

You should see the message created on node A.

robinnet/testing.1773242627.txt.gz · Last modified: by freedomotter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki