terratest_polkadot_deployer

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

README

terratest-polkadot-deployer

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTempFile

func CreateTempFile(t *testing.T, content []byte) *os.File

Create temporary file with passed content

func CreateTerraformStack

func CreateTerraformStack(t *testing.T, terraformDir string)

Deploy terraform module to cloud provider

func DestroyTerraformStack

func DestroyTerraformStack(t *testing.T, terraformDir string)

Destroy previously created terraform stack

func GetNodePortServiceEndpoint

func GetNodePortServiceEndpoint(t *testing.T, kubectlOptions *k8s.KubectlOptions, addrType string, servicePort int) string

Get NodePort service endpoint

func GetPublicServiceEndpoint

func GetPublicServiceEndpoint(t *testing.T, kubectlOptions *k8s.KubectlOptions, service *corev1.Service, servicePort int) string

Get publicly accessible service endpoint

func GetRandomNodeAddress

func GetRandomNodeAddress(t *testing.T, kubectlOptions *k8s.KubectlOptions, addrType string) string

Get k8s random node's IP address of a giving type

func SetupKubeconfig

func SetupKubeconfig(t *testing.T, terraformDir string)

Write kubeconfig file from terraform output and configure to use it kubectl

func TestNodeCount

func TestNodeCount(t *testing.T, terraformDir string)

Test that the Node count matches the Terraform specification

func TestResourceChanges

func TestResourceChanges(t *testing.T, terraformDir string)

Validate no resources will change on subsequent terraform executions

func TestServiceAvailability

func TestServiceAvailability(t *testing.T, terraformDir string)

Test service deployment and verify it's availability on configured nodePort

Types

This section is empty.

Jump to

Keyboard shortcuts

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