-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from lxzan/testing
v1.5.1
- Loading branch information
Showing
40 changed files
with
980 additions
and
567 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: autobahn | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- testing | ||
pull_request: | ||
branches: | ||
- master | ||
- testing | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
go: [ 1.18.x ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- name: Autobahn | ||
env: | ||
CRYPTOGRAPHY_ALLOW_OPENSSL_102: yes | ||
run: | | ||
chmod +x ./autobahn/script/run.sh & ./autobahn/script/run.sh | ||
- name: Autobahn Report Artifact | ||
if: >- | ||
startsWith(matrix.os, 'ubuntu') | ||
uses: actions/upload-artifact@v2 | ||
|
||
with: | ||
name: autobahn report ${{ matrix.go }} ${{ matrix.os }} | ||
path: autobahn/report | ||
retention-days: 7 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
linters: | ||
enable-all: true | ||
# Disable specific linter | ||
# https://golangci-lint.run/usage/linters/#disabled-by-default | ||
disable: | ||
- testpackage | ||
- nosnakecase | ||
- nlreturn | ||
- gomnd | ||
- forcetypeassert | ||
- wsl | ||
- whitespace | ||
- prealloc | ||
- ineffassign | ||
- lll | ||
- funlen | ||
- scopelint | ||
- dupl | ||
- gofumpt | ||
- gofmt | ||
- godot | ||
- gci | ||
- goimports | ||
- gocognit | ||
- ifshort | ||
- gochecknoinits | ||
# Enable presets. | ||
# https://golangci-lint.run/usage/linters | ||
# Run only fast linters from enabled linters set (first run won't be fast) | ||
# Default: false | ||
fast: true |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
report/ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
test-server: | ||
docker run -it --rm \ | ||
-v ${PWD}/config:/config \ | ||
-v ${PWD}/reports:/reports \ | ||
crossbario/autobahn-testsuite \ | ||
wstest -m fuzzingclient -s /config/fuzzingclient.json | ||
|
||
test-client: | ||
docker run -it --rm \ | ||
-v ${PWD}/config:/config \ | ||
-v ${PWD}/reports:/reports \ | ||
-p 9001:9001 \ | ||
-p 9002:8080 \ | ||
crossbario/autobahn-testsuite \ | ||
wstest -m fuzzingserver -s /config/fuzzingserver.json |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"outdir": "./report/", | ||
"servers": [ | ||
{ | ||
"agent": "non-tls", | ||
"url": "ws://localhost:3000/connect", | ||
"options": { | ||
"version": 18 | ||
} | ||
}, | ||
{ | ||
"agent": "tls", | ||
"url": "wss://localhost:3001/connect", | ||
"options": { | ||
"version": 18 | ||
} | ||
} | ||
], | ||
"cases": [ | ||
"*" | ||
], | ||
"exclude-cases": [ | ||
"1[1-4].*" | ||
], | ||
"exclude-agent-cases": {} | ||
} |
6 changes: 4 additions & 2 deletions
6
examples/autobahn/config/fuzzingserver.json → autobahn/config/fuzzingserver.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{ | ||
"url": "ws://127.0.0.1:9001", | ||
"outdir": "./reports/clients", | ||
"cases": ["*"], | ||
"outdir": "./report/clients", | ||
"cases": [ | ||
"*" | ||
], | ||
"exclude-cases": [], | ||
"exclude-agent-cases": {} | ||
} |
Oops, something went wrong.