mig

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAndRunTest added in v1.15.3

func CreateAndRunTest(t *testing.T, test *resource.TestCase)

func CreateAndRunTestNonParallel added in v1.16.0

func CreateAndRunTestNonParallel(t *testing.T, test *resource.TestCase)

avoids running migration test in parallel

func CreateTest added in v1.15.3

func CreateTest(t *testing.T, test *resource.TestCase) resource.TestCase

CreateTest returns a new TestCase that reuses step 1 and adds a TestStepCheckEmptyPlan. Requires: `MONGODB_ATLAS_LAST_VERSION` to be present.

func CreateTestAndRunUseExternalProvider added in v1.15.3

func CreateTestAndRunUseExternalProvider(t *testing.T, test *resource.TestCase, externalProviders, additionalProviders map[string]resource.ExternalProvider)

func CreateTestAndRunUseExternalProviderNonParallel added in v1.16.1

func CreateTestAndRunUseExternalProviderNonParallel(t *testing.T, test *resource.TestCase, externalProviders, additionalProviders map[string]resource.ExternalProvider)

func CreateTestUseExternalProvider added in v1.15.3

func CreateTestUseExternalProvider(t *testing.T, test *resource.TestCase, externalProviders, additionalProviders map[string]resource.ExternalProvider) resource.TestCase

CreateTestUseExternalProvider returns a new TestCase that reuses step 1 and adds a TestStepCheckEmptyPlan with the additionalProviders. Requires: `MONGODB_ATLAS_LAST_VERSION` to be present. externalProviders: e.g., ExternalProvidersWithAWS() or ExternalProviders("specific_sem_ver"). additionalProviders: e.g., acc.ExternalProvidersOnlyAWS(), can also be nil.

func ExternalProviders

func ExternalProviders() map[string]resource.ExternalProvider

func ExternalProvidersWithAWS

func ExternalProvidersWithAWS() map[string]resource.ExternalProvider

func IsProviderVersionAtLeast

func IsProviderVersionAtLeast(minVersion string) bool

func PreCheck

func PreCheck(tb testing.TB)

func PreCheckAtlasUsername added in v1.15.1

func PreCheckAtlasUsername(tb testing.TB)

func PreCheckAwsEnvBasic added in v1.16.0

func PreCheckAwsEnvBasic(tb testing.TB)

func PreCheckBasic

func PreCheckBasic(tb testing.TB)

func PreCheckBasicOwnerID

func PreCheckBasicOwnerID(tb testing.TB)

func PreCheckCert added in v1.15.1

func PreCheckCert(tb testing.TB)

func PreCheckLDAP added in v1.15.2

func PreCheckLDAP(tb testing.TB)

func PreCheckPeeringEnvAWS added in v1.15.3

func PreCheckPeeringEnvAWS(tb testing.TB)

func PreCheckPrivateEndpoint added in v1.15.2

func PreCheckPrivateEndpoint(tb testing.TB)

func SkipIfVersionBelow added in v1.15.0

func SkipIfVersionBelow(tb testing.TB, minVersion string)

func TestStepCheckEmptyPlan added in v1.15.2

func TestStepCheckEmptyPlan(config string) resource.TestStep

Types

This section is empty.

Jump to

Keyboard shortcuts

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