mirror of
https://github.com/status-im/libp2p-test-plans.git
synced 2025-01-11 15:24:11 +00:00
update go-libp2p to v0.17.0 in ping test, remove secio secure channel (#19)
This commit is contained in:
parent
d0aa7c1ef7
commit
8497c05980
@ -25,7 +25,7 @@ This plan contains a single test case called `ping` (same as the plan).
|
||||
|
||||
This test case supports three test parameters:
|
||||
|
||||
* `secure_channel`: the secure channel to use. One of: `noise`, `secio`, `tls` (default: `noise`).
|
||||
* `secure_channel`: the secure channel to use. One of: `noise`, `tls` (default: `noise`).
|
||||
* `max_latency_ms`: the maximum latency to set in traffic shaping, in milliseconds (default: `1000`).
|
||||
* `iterations`: the number of ping iterations to run (default: `5`).
|
||||
|
||||
@ -158,4 +158,4 @@ setting latencies will have a null effect (try it out, and see for yourself!).
|
||||
## License
|
||||
|
||||
Dual-licensed: [MIT](../LICENSE-MIT), [Apache Software License v2](../LICENSE-APACHE), by way of the
|
||||
[Permissive License Stack](https://protocol.ai/blog/announcing-the-permissive-license-stack/).
|
||||
[Permissive License Stack](https://protocol.ai/blog/announcing-the-permissive-license-stack/).
|
||||
|
11
ping/go.mod
11
ping/go.mod
@ -3,11 +3,10 @@ module github.com/libp2p/test-plans/ping
|
||||
go 1.14
|
||||
|
||||
require (
|
||||
github.com/libp2p/go-libp2p v0.11.0
|
||||
github.com/libp2p/go-libp2p-core v0.7.0
|
||||
github.com/libp2p/go-libp2p-noise v0.1.2
|
||||
github.com/libp2p/go-libp2p-secio v0.2.2
|
||||
github.com/libp2p/go-libp2p-tls v0.1.3
|
||||
github.com/libp2p/go-libp2p v0.17.0
|
||||
github.com/libp2p/go-libp2p-core v0.13.0
|
||||
github.com/libp2p/go-libp2p-noise v0.3.0
|
||||
github.com/libp2p/go-libp2p-tls v0.3.1
|
||||
github.com/testground/sdk-go v0.2.6
|
||||
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9
|
||||
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
|
||||
)
|
||||
|
1061
ping/go.sum
1061
ping/go.sum
File diff suppressed because it is too large
Load Diff
@ -14,7 +14,6 @@ import (
|
||||
"github.com/libp2p/go-libp2p-core/peer"
|
||||
|
||||
"github.com/libp2p/go-libp2p-noise"
|
||||
"github.com/libp2p/go-libp2p-secio"
|
||||
tls "github.com/libp2p/go-libp2p-tls"
|
||||
|
||||
"github.com/testground/sdk-go/network"
|
||||
@ -119,8 +118,6 @@ func runPing(runenv *runtime.RunEnv, initCtx *run.InitContext) error {
|
||||
switch secureChannel {
|
||||
case "noise":
|
||||
security = libp2p.Security(noise.ID, noise.New)
|
||||
case "secio":
|
||||
security = libp2p.Security(secio.ID, secio.New)
|
||||
case "tls":
|
||||
security = libp2p.Security(tls.ID, tls.New)
|
||||
}
|
||||
|
@ -20,6 +20,6 @@ name = "ping"
|
||||
instances = { min = 2, max = 10000, default = 5 }
|
||||
|
||||
[testcases.params]
|
||||
secure_channel = { type = "enum", desc = "secure channel used", values = ["secio", "noise", "tls"], default = "secio" }
|
||||
secure_channel = { type = "enum", desc = "secure channel used", values = ["noise", "tls"], default = "noise" }
|
||||
max_latency_ms = { type = "int", desc = "maximum value for random local link latency", unit = "ms", default = 1000 }
|
||||
iterations = { type = "int", desc = "number of ping iterations we'll run against each peer", unit = "count", default = 5 }
|
||||
iterations = { type = "int", desc = "number of ping iterations we'll run against each peer", unit = "count", default = 5 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user