Skip to content

Commit

Permalink
Update autobahn example
Browse files Browse the repository at this point in the history
- Update instructions to use docker.
- Cleanup config file.
  • Loading branch information
garyburd committed Jan 2, 2022
1 parent beca1d3 commit 2d6ee4c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 17 deletions.
9 changes: 7 additions & 2 deletions examples/autobahn/README.md
Expand Up @@ -8,6 +8,11 @@ To test the server, run

and start the client test driver

wstest -m fuzzingclient -s fuzzingclient.json
mkdir -p reports
docker run -it --rm \
-v ${PWD}/config:/config \
-v ${PWD}/reports:/reports \
crossbario/autobahn-testsuite \
wstest -m fuzzingclient -s /config/fuzzingclient.json

When the client completes, it writes a report to reports/clients/index.html.
When the client completes, it writes a report to reports/index.html.
29 changes: 29 additions & 0 deletions examples/autobahn/config/fuzzingclient.json
@@ -0,0 +1,29 @@
{
"cases": ["*"],
"exclude-cases": [],
"exclude-agent-cases": {},
"outdir": "/reports",
"options": {"failByDrop": false},
"servers": [
{
"agent": "ReadAllWriteMessage",
"url": "ws://host.docker.internal:9000/m"
},
{
"agent": "ReadAllWritePreparedMessage",
"url": "ws://host.docker.internal:9000/p"
},
{
"agent": "CopyFull",
"url": "ws://host.docker.internal:9000/f"
},
{
"agent": "ReadAllWrite",
"url": "ws://host.docker.internal:9000/r"
},
{
"agent": "CopyWriterOnly",
"url": "ws://host.docker.internal:9000/c"
}
]
}
15 changes: 0 additions & 15 deletions examples/autobahn/fuzzingclient.json

This file was deleted.

0 comments on commit 2d6ee4c

Please sign in to comment.