testutils

package
v0.0.0-...-a25d963 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

A common location to store utilities for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAerospikeContainer

func CreateAerospikeContainer(name string, c *container.Config, ch *container.HostConfig, imagePullOpts types.ImagePullOptions, cli *client.Client) (string, error)

func GetAerospikeContainerID

func GetAerospikeContainerID(name string) ([]byte, error)

func IndexOf

func IndexOf(l []string, s string) int

func RemoveAerospikeContainer

func RemoveAerospikeContainer(id string, cli *client.Client) error

func StartAerospikeContainer

func StartAerospikeContainer(id string, cli *client.Client) error

func StopAerospikeContainer

func StopAerospikeContainer(id string, cli *client.Client) error

Types

type DockerAuth

type DockerAuth struct {
	Username string
	Password string
}

type TestData

type TestData struct {
	Source               string
	Destination          string
	Expected             string
	Arguments            []string
	SkipServerTest       bool
	ServerErrorAllowList []string
	ServerImage          string
	DockerAuth           DockerAuth
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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