Documentation ¶
Overview ¶
Package common contains shared resources for terratest tests
Index ¶
- Constants
- func CodeServicesTest(t *testing.T)
- func CreateAcmeIssuer(t *testing.T, terraformOptions *terraform.Options)
- func CreateCaIssuer(t *testing.T, terraformOptions *terraform.Options)
- func CreateCertManager(tm *TestModule)
- func CreateCertificate(t *testing.T, terraformOptions *terraform.Options)
- func CreateSelfSignedIssuer(t *testing.T, terraformOptions *terraform.Options)
- func DestroyAcmeIssuer(t *testing.T, terraformOptions *terraform.Options)
- func DestroyCaIssuer(t *testing.T, terraformOptions *terraform.Options)
- func DestroyCertManager(tm *TestModule)
- func DestroyCertificate(t *testing.T, terraformOptions *terraform.Options)
- func DestroySelfSignedIssuer(t *testing.T, terraformOptions *terraform.Options)
- func ExternalDnsTest(t *testing.T)
- func KubeDownscalerTest(t *testing.T)
- func KubeJanitorTest(t *testing.T)
- func KubeResourceReportTest(t *testing.T)
- func MetricsServerTest(t *testing.T)
- func NamespaceSetup(tm *TestModule)
- func NamespaceTests(tm *TestModule)
- func SdmRun(tm *TestModule)
- func SdmSetup(tm *TestModule)
- func SdmTeardown(t *TestModule)
- func SelfSignedIssuerRun(t *TestModule)
- func SelfSignedIssuerSetup(t *TestModule)
- func SelfSignedIssuerTeardown(t *TestModule)
- func SonarQubeTest(t *testing.T)
- func TestHarbor(t *testing.T)
- func TestKeycloak(t *testing.T)
- func TestKubePrometheusStack(t *testing.T)
- func TestModuleGetStringGlobal(t *testing.T, name string) string
- func TestModuleSetStringGlobal(t *testing.T, name string, value string)
- type TestModule
- func (tm *TestModule) GetString(name string) string
- func (tm *TestModule) GetStringGlobal(name string) string
- func (tm *TestModule) GetTerraformOptions() *terraform.Options
- func (tm *TestModule) GetTerraformOutput(name string) string
- func (tm *TestModule) GetTerraformOutputMap(name string) map[string]string
- func (tm *TestModule) GetTerraformVar(name string) string
- func (tm *TestModule) IsTestDataPresent() bool
- func (tm *TestModule) RunTests()
- func (tm *TestModule) SetString(name string, value string)
- func (tm *TestModule) SetStringGlobal(name string, value string)
- func (tm *TestModule) SetTerraformOptions(terraformOptions *terraform.Options)
- func (tm *TestModule) SetTerraformVar(name string, value string)
- func (tm *TestModule) TeardownTests()
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 CreateCertManager ¶
func CreateCertManager(tm *TestModule)
func CreateSelfSignedIssuer ¶
func DestroyCertManager ¶
func DestroyCertManager(tm *TestModule)
func DestroyCertificate ¶
func DestroySelfSignedIssuer ¶
func ExternalDnsTest ¶
func KubeDownscalerTest ¶
func KubeJanitorTest ¶
func KubeResourceReportTest ¶
func MetricsServerTest ¶
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 TestHarbor ¶
func TestKeycloak ¶
func TestKubePrometheusStack ¶
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()
Click to show internal directories.
Click to hide internal directories.