testing

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccuProxy = protocol.AccountUrl("accuproxy.acme")
View Source
var AccuProxyAuthorityKey ed25519.PrivateKey
View Source
var AccuProxyKey ed25519.PrivateKey
View Source
var Endpoint = "http://localhost:18888"
View Source
var Network = config.Network{Id: "AccuProxyTest", Partitions: Partitions}
View Source
var Nodes = []config.Node{{Address: "127.0.0.1", Type: config.NodeTypeValidator}}

make up a fake default network configuration list

View Source
var Partitions = []config.Partition{
	{Id: "Directory", Type: config.NetworkTypeDirectory, BasePort: 30000, Nodes: Nodes},
	{Id: "BVN0", Type: config.NetworkTypeBlockValidator, BasePort: 40000, Nodes: Nodes},
}

Functions

func LaunchAccuProxyDevNet

func LaunchAccuProxyDevNet(t *testing.T) (*client.Client, *url.URL, *url.URL)

LaunchAccuProcyDevNet will launch a devnet with the accuproxy.acme adi and authorized key(s)

func LaunchFakeProxy

func LaunchFakeProxy(t *testing.T) (*proxy.Client, *client.Client, *url.URL, *url.URL)

func ProveNetworkToFakeProxy

func ProveNetworkToFakeProxy(t *testing.T, client *client.Client)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL