acctest

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkforceV1SandboxEnvironmentName = "tf-testacc-static-workforce-test"
	WorkforceV2SandboxEnvironmentName = "tf-testacc-static-workforce-v2-test"
)

Variables

View Source
var ProtoV6ProviderFactories map[string]func() (tfprotov6.ProviderServer, error) = protoV6ProviderFactoriesInit(context.Background(), "pingone")
View Source
var Provider *schema.Provider

Provider is the "main" provider instance

This Provider can be used in testing code for API calls without requiring the use of saving and referencing specific ProviderFactories instances.

PreCheck(t) must be called before using this provider instance.

View Source
var ProviderFactories map[string]func() (*schema.Provider, error)

ProviderFactories is a static map containing only the main provider instance

Use other ProviderFactories functions, such as FactoriesAlternate, for tests requiring special provider configurations.

Functions

func AgreementSandboxEnvironment added in v0.10.0

func AgreementSandboxEnvironment() string

func AlterStringCasing added in v1.13.0

func AlterStringCasing(strInput string) string

AlterStringCasing alternates the case of alphabetic characters in a string for testing purposes. It returns a string where even-indexed characters (0, 2, 4, etc.) are converted to uppercase and odd-indexed characters (1, 3, 5, etc.) are converted to lowercase. Non-alphabetic characters remain unchanged in their original positions. The strInput parameter must be a valid string that may contain any Unicode characters. This function is primarily used in acceptance tests to create case-insensitive string comparisons and verify that data source filters work correctly regardless of character casing. No external dependencies or environment variables are required for this function to operate.

func CheckForResourceDestroy added in v0.22.0

func CheckForResourceDestroy(r *http.Response, err error) (bool, error)

func CheckForResourceDestroyCustomHTTPCode added in v0.25.0

func CheckForResourceDestroyCustomHTTPCode(r *http.Response, err error, customHttpCode int) (bool, error)

func CheckParentEnvironmentDestroy added in v0.22.0

func CheckParentEnvironmentDestroy(ctx context.Context, apiClient *pingone.APIClient, environmentID string) (bool, error)

func DaVinciBootstrappedSandboxEnvironment added in v1.13.0

func DaVinciBootstrappedSandboxEnvironment(dataSourceName *string) string

func DaVinciSandboxEnvironment added in v1.13.0

func DaVinciSandboxEnvironment(withBootstrapConfig bool) string

func DomainVerifiedSandboxEnvironment added in v0.9.0

func DomainVerifiedSandboxEnvironment() string

func ErrorCheck

func ErrorCheck(t *testing.T) resource.ErrorCheckFunc

func GenericSandboxEnvironment added in v0.4.0

func GenericSandboxEnvironment() string

func GetProviderTestingVersion added in v1.13.0

func GetProviderTestingVersion() string

func PreCheckAPNSPKCS8Key added in v1.1.0

func PreCheckAPNSPKCS8Key(t *testing.T)

func PreCheckBeta added in v1.13.0

func PreCheckBeta(t *testing.T)

func PreCheckClient added in v0.22.0

func PreCheckClient(t *testing.T)

func PreCheckCustomDomainSSL added in v0.22.0

func PreCheckCustomDomainSSL(t *testing.T)

func PreCheckDomainVerification added in v0.22.0

func PreCheckDomainVerification(t *testing.T)

func PreCheckGoogleFirebaseCredentials added in v0.22.0

func PreCheckGoogleFirebaseCredentials(t *testing.T)

func PreCheckGoogleJSONKey added in v0.22.0

func PreCheckGoogleJSONKey(t *testing.T)

func PreCheckNewEnvironment added in v0.22.0

func PreCheckNewEnvironment(t *testing.T)

func PreCheckNoBeta added in v1.13.0

func PreCheckNoBeta(t *testing.T)

func PreCheckNoTestAccFlaky added in v1.9.0

func PreCheckNoTestAccFlaky(t *testing.T)

func PreCheckOrganisationID added in v0.22.0

func PreCheckOrganisationID(t *testing.T)

func PreCheckOrganisationName added in v0.22.0

func PreCheckOrganisationName(t *testing.T)

func PreCheckPEMCert added in v0.22.0

func PreCheckPEMCert(t *testing.T)

func PreCheckPKCS12CSRResponse added in v0.22.0

func PreCheckPKCS12CSRResponse(t *testing.T)

func PreCheckPKCS12Key added in v0.22.0

func PreCheckPKCS12Key(t *testing.T)

func PreCheckPKCS12UnencryptedKey added in v0.25.0

func PreCheckPKCS12UnencryptedKey(t *testing.T)

func PreCheckPKCS12WithCSR added in v0.22.0

func PreCheckPKCS12WithCSR(t *testing.T)

func PreCheckPKCS7Cert added in v0.22.0

func PreCheckPKCS7Cert(t *testing.T)

func PreCheckRegionSupportsWorkforce added in v0.22.0

func PreCheckRegionSupportsWorkforce(t *testing.T)

func PreCheckSupportsRegion added in v1.13.0

func PreCheckSupportsRegion(t *testing.T, supportedRegionCodes []string)

func PreCheckSyniverse added in v0.22.0

func PreCheckSyniverse(t *testing.T)

func PreCheckTestAccFlaky added in v1.6.0

func PreCheckTestAccFlaky(t *testing.T)

func PreCheckTestClient added in v0.22.0

func PreCheckTestClient(ctx context.Context, t *testing.T) *pingone.APIClient

func PreCheckTwilio added in v0.22.0

func PreCheckTwilio(t *testing.T)

func ResourceNameGen

func ResourceNameGen() string

func ResourceNameGenEnvironment

func ResourceNameGenEnvironment() string

func TestClient

func TestClient(ctx context.Context) (*pingone.APIClient, error)

func WorkforceV1SandboxEnvironment added in v1.10.0

func WorkforceV1SandboxEnvironment() string

Static environment that uses v1 PingID

func WorkforceV2SandboxEnvironment added in v1.10.0

func WorkforceV2SandboxEnvironment() string

Static environment that uses v2 PingID

Types

type MinMaxChecks added in v0.8.0

type MinMaxChecks struct {
	Minimal resource.TestCheckFunc
	Full    resource.TestCheckFunc
}

type TestData added in v0.8.0

type TestData struct {
	Invalid string
	Valid   string
}

Directories

Path Synopsis
service
mfa
sso

Jump to

Keyboard shortcuts

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