teststructure

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package teststructure is customized test-structure code based on https://github.com/gruntwork-io/terratest/tree/5913a2925623d3998841cb25de7b26731af9ab13 that fixes the issue identified in https://github.com/gruntwork-io/terratest/issues/1135

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTestDataPresent

func IsTestDataPresent(t terratesting.TestingT, path string) bool

IsTestDataPresent returns true if a file exists at $path and the test data there is non-empty. This function is directly copied from https://github.com/gruntwork-io/terratest/tree/5913a2925623d3998841cb25de7b26731af9ab13 due to this issue: https://github.com/gruntwork-io/terratest/issues/1135

func SaveEc2KeyPair

func SaveEc2KeyPair(t terratesting.TestingT, testFolder string, keyPair *aws.Ec2Keypair)

SaveEc2KeyPair serializes and saves an Ec2KeyPair into the given folder. This allows you to create an Ec2KeyPair during setup and to reuse that Ec2KeyPair later during validation and teardown. This function is directly copied from https://github.com/gruntwork-io/terratest/tree/5913a2925623d3998841cb25de7b26731af9ab13 due to this issue: https://github.com/gruntwork-io/terratest/issues/1135

Types

This section is empty.

Jump to

Keyboard shortcuts

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