Documentation ¶
Index ¶
- func CreateTempFile(t *testing.T, content []byte) *os.File
- func CreateTerraformStack(t *testing.T, terraformDir string)
- func DestroyTerraformStack(t *testing.T, terraformDir string)
- func GetNodePortServiceEndpoint(t *testing.T, kubectlOptions *k8s.KubectlOptions, addrType string, ...) string
- func GetPublicServiceEndpoint(t *testing.T, kubectlOptions *k8s.KubectlOptions, service *corev1.Service, ...) string
- func GetRandomNodeAddress(t *testing.T, kubectlOptions *k8s.KubectlOptions, addrType string) string
- func SetupKubeconfig(t *testing.T, terraformDir string)
- func TestNodeCount(t *testing.T, terraformDir string)
- func TestResourceChanges(t *testing.T, terraformDir string)
- func TestServiceAvailability(t *testing.T, terraformDir string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTempFile ¶
Create temporary file with passed content
func CreateTerraformStack ¶
Deploy terraform module to cloud provider
func DestroyTerraformStack ¶
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 ¶
Get k8s random node's IP address of a giving type
func SetupKubeconfig ¶
Write kubeconfig file from terraform output and configure to use it kubectl
func TestNodeCount ¶
Test that the Node count matches the Terraform specification
func TestResourceChanges ¶
Validate no resources will change on subsequent terraform executions
func TestServiceAvailability ¶
Test service deployment and verify it's availability on configured nodePort
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.