common

package
v0.1.19-0...-46fc716 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package common contains shared resources for terratest tests

Index

Constants

View Source
const DashboardVersion = "v2.0.1-11-g444016b"
View Source
const KubeConfigPath = "kube_config_path"
View Source
const LeadSdmVersion = "v2.0.6-53-g5592d5d"
View Source
const ProductVersion = "6e9c43f"

Variables

This section is empty.

Functions

func CodeServicesTest

func CodeServicesTest(t *testing.T)

func CreateAcmeIssuer

func CreateAcmeIssuer(t *testing.T, terraformOptions *terraform.Options)

func CreateCaIssuer

func CreateCaIssuer(t *testing.T, terraformOptions *terraform.Options)

func CreateCertManager

func CreateCertManager(tm *TestModule)

func CreateCertificate

func CreateCertificate(t *testing.T, terraformOptions *terraform.Options)

func CreateSelfSignedIssuer

func CreateSelfSignedIssuer(t *testing.T, terraformOptions *terraform.Options)

func DestroyAcmeIssuer

func DestroyAcmeIssuer(t *testing.T, terraformOptions *terraform.Options)

func DestroyCaIssuer

func DestroyCaIssuer(t *testing.T, terraformOptions *terraform.Options)

func DestroyCertManager

func DestroyCertManager(tm *TestModule)

func DestroyCertificate

func DestroyCertificate(t *testing.T, terraformOptions *terraform.Options)

func DestroySelfSignedIssuer

func DestroySelfSignedIssuer(t *testing.T, terraformOptions *terraform.Options)

func ExternalDnsTest

func ExternalDnsTest(t *testing.T)

func KubeDownscalerTest

func KubeDownscalerTest(t *testing.T)

func KubeJanitorTest

func KubeJanitorTest(t *testing.T)

func KubeResourceReportTest

func KubeResourceReportTest(t *testing.T)

func MetricsServerTest

func MetricsServerTest(t *testing.T)

func NamespaceSetup

func NamespaceSetup(tm *TestModule)

func NamespaceTests

func NamespaceTests(tm *TestModule)

func SdmRun

func SdmRun(tm *TestModule)

func SdmSetup

func SdmSetup(tm *TestModule)

func SdmTeardown

func SdmTeardown(t *TestModule)

func SelfSignedIssuerRun

func SelfSignedIssuerRun(t *TestModule)

func SelfSignedIssuerSetup

func SelfSignedIssuerSetup(t *TestModule)

func SelfSignedIssuerTeardown

func SelfSignedIssuerTeardown(t *TestModule)

func SonarQubeTest

func SonarQubeTest(t *testing.T)

func TestHarbor

func TestHarbor(t *testing.T)

func TestKeycloak

func TestKeycloak(t *testing.T)

func TestKubePrometheusStack

func TestKubePrometheusStack(t *testing.T)

func TestModuleGetStringGlobal

func TestModuleGetStringGlobal(t *testing.T, name string) string

func TestModuleSetStringGlobal

func TestModuleSetStringGlobal(t *testing.T, name string, value string)

Types

type TestModule

type TestModule struct {
	GoTest       *testing.T
	Name         string
	TerraformDir string
	Setup        testCallback
	Tests        testCallback
	Teardown     testCallback
	// contains filtered or unexported fields
}

TestModule structure for module to test

func (*TestModule) GetString

func (tm *TestModule) GetString(name string) string

func (*TestModule) GetStringGlobal

func (tm *TestModule) GetStringGlobal(name string) string

func (*TestModule) GetTerraformOptions

func (tm *TestModule) GetTerraformOptions() *terraform.Options

func (*TestModule) GetTerraformOutput

func (tm *TestModule) GetTerraformOutput(name string) string

func (*TestModule) GetTerraformOutputMap

func (tm *TestModule) GetTerraformOutputMap(name string) map[string]string

func (*TestModule) GetTerraformVar

func (tm *TestModule) GetTerraformVar(name string) string

func (*TestModule) IsTestDataPresent

func (tm *TestModule) IsTestDataPresent() bool

func (*TestModule) RunTests

func (tm *TestModule) RunTests()

func (*TestModule) SetString

func (tm *TestModule) SetString(name string, value string)

func (*TestModule) SetStringGlobal

func (tm *TestModule) SetStringGlobal(name string, value string)

func (*TestModule) SetTerraformOptions

func (tm *TestModule) SetTerraformOptions(terraformOptions *terraform.Options)

func (*TestModule) SetTerraformVar

func (tm *TestModule) SetTerraformVar(name string, value string)

func (*TestModule) TeardownTests

func (tm *TestModule) TeardownTests()

Jump to

Keyboard shortcuts

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