4f08346686
The correct formatting for machine-readable comments is; //<some alphanumeric identifier>:<options>[,<option>...][ // comment] Which basically means: - MUST NOT have a space before `<identifier>` (e.g. `nolint`) - Identified MUST be alphanumeric - MUST be followed by a colon - MUST be followed by at least one `<option>` - Optionally additional `<options>` (comma-separated) - Optionally followed by a comment Any other format will not be considered a machine-readable comment by `gofmt`, and thus formatted as a regular comment. Note that this also means that a `//nolint` (without anything after it) is considered invalid, same for `//#nosec` (starts with a `#`). Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
dbclient | ||
dbserver | ||
dummyclient | ||
Dockerfile | ||
README | ||
testMain.go |
SERVER cd test/networkdb env GOOS=linux go build -v testMain.go && docker build -t dockereng/e2e-networkdb . (only for testkit case) docker push dockereng/e2e-networkdb Run server: docker service create --name testdb --network net1 --replicas 3 --env TASK_ID="{{.Task.ID}}" -p mode=host,target=8000 dockereng/e2e-networkdb server 8000 CLIENT cd test/networkdb Join cluster: docker run -it --network net1 dockereng/e2e-networkdb client join testdb 8000 Join network: docker run -it --network net1 dockereng/e2e-networkdb client join-network testdb 8000 test Run test: docker run -it --network net1 dockereng/e2e-networkdb client write-delete-unique-keys testdb 8000 test tableBla 3 10 check table: curl "localhost:32768/gettable?nid=test&tname=table_name"