Raúl Kripalani 4d4f24ad8f
migrate dht test plan from testground/testground. (#1)
* migrate dht test plan from testground/testground.

* dht: update module and import paths.

* rm redundant scripts; rm redundant line in manifest.
2020-04-22 17:47:58 +01:00

35 lines
639 B
Go

package test
import (
"context"
"github.com/testground/sdk-go/runtime"
)
func All(runenv *runtime.RunEnv) error {
commonOpts := GetCommonOpts(runenv)
ctx, cancel := context.WithTimeout(context.Background(), commonOpts.Timeout)
defer cancel()
ri, err := Base(ctx, runenv, commonOpts)
if err != nil {
return err
}
if err := TestFindPeers(ctx, ri); err != nil {
return err
}
if err := TestGetClosestPeers(ctx, ri); err != nil {
return err
}
if err := TestProviderRecords(ctx, ri); err != nil {
return err
}
if err := TestIPNSRecords(ctx, ri); err != nil {
return err
}
Teardown(ctx, ri.RunInfo)
return nil
}