helpers

package
v0.0.0-...-7501429 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRegionParams

func BuildRegionParams(regions ...string) string

BuildRegionParams build strings from regions slice

func ClearLocalTFState

func ClearLocalTFState(tfDir string) error

func ConsulCheck

func ConsulCheck(t *testing.T, publicIPs []string, key *ssh.KeyPair, user string) bool

ConsulCheck check consul members

func ConsulLockCheck

func ConsulLockCheck(t *testing.T, publicIPs []string, key *ssh.KeyPair, user string) bool

ConsulLockCheck check consul locking

func GenerateSSHKeys

func GenerateSSHKeys(t *testing.T) *ssh.KeyPair

GenerateSSHKeys generate ot read ssh keys

func KeystoreCheck

func KeystoreCheck(t *testing.T, publicIPs []string, key *ssh.KeyPair, user string) bool

KeystoreCheck checks keystore

func LeadersCheck

func LeadersCheck(t *testing.T, publicIPs []string, key *ssh.KeyPair, user string) bool

LeadersCheck check leader

func NodeQuery

func NodeQuery(t *testing.T, publicIPs []string, key *ssh.KeyPair, command, user string) []string

NodeQuery Supplementary function: perform given SSH query on the node

func PolkadotCheck

func PolkadotCheck(t *testing.T, publicIPs []string, key *ssh.KeyPair, user string) bool

PolkadotCheck checks polkadot system

func SetInitialTFCleanUp

func SetInitialTFCleanUp(t *testing.T, opts *terraform.Options)

SetInitialTFCleanUp schedule initial terraform clean up

func SetPostTFCleanUp

func SetPostTFCleanUp(t *testing.T, cleanup func())

SetPostTFCleanUp schedule final terraform clean up

func StringSlice

func StringSlice(s string, n int) string

func WaitPrometheusTarget

func WaitPrometheusTarget(ctx context.Context, url string, metricName string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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