Documentation ¶
Index ¶
- func AddBalance(t *testing.T, c *Container, addr string, amount string) error
- func DumpContainerLogs(id string) []byte
- func ExecInContainer(id string, args ...string) ([]byte, error)
- func ExtractIPPort(id, port string) (hostIP, hostPort string, err error)
- func NewTestLoger() (*zap.SugaredLogger, func())
- func StopBlockchain(t *testing.T, c *Container)
- func StopContainer(id string) error
- type Container
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBalance ¶
AddBalance adds balance to a OBADA node account.
func DumpContainerLogs ¶
DumpContainerLogs outputs logs from the running docker container.
func ExecInContainer ¶
ExecInContainer executes a command in the specified container.
func ExtractIPPort ¶
ExtractIPPort extracts container real port binded to docker application port.
func NewTestLoger ¶
func NewTestLoger() (*zap.SugaredLogger, func())
NewTestLoger creates a new logger for testing. nolint:gocritic
func StopBlockchain ¶
StopBlockchain stops a running OBADA node instance.
func StopContainer ¶
StopContainer stops and removes the specified container.
Types ¶
type Container ¶
Container tracks information about the docker container started for tests.
func StartBlockchain ¶
StartBlockchain starts OBADA blockchain node instance
Click to show internal directories.
Click to hide internal directories.