acctest

package
v1.64.0-beta0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderName          = "ibm"
	ProviderNameAlternate = "ibmalternate"
)

Variables

View Source
var (
	AppIDTenantID       string
	AppIDTestUserEmail  string
	BackupPolicyJobID   string
	BackupPolicyID      string
	CfOrganization      string
	CfSpace             string
	CisDomainStatic     string
	CisDomainTest       string
	CisInstance         string
	CisResourceGroup    string
	CloudShellAccountID string
	CosCRN              string
	BucketCRN           string
	BucketName          string
	CosName             string
	Ibmid1              string
	Ibmid2              string
	IAMUser             string
	IAMAccountId        string
	IAMServiceId        string
	IAMTrustedProfileID string
	Datacenter          string
	MachineType         string

	PublicVlanID                    string
	PrivateVlanID                   string
	PrivateSubnetID                 string
	PublicSubnetID                  string
	SubnetID                        string
	LbaasDatacenter                 string
	LbaasSubnetId                   string
	LbListerenerCertificateInstance string
	IpsecDatacenter                 string
	Customersubnetid                string
	Customerpeerip                  string
	DedicatedHostName               string
	DedicatedHostID                 string
	KubeVersion                     string
	KubeUpdateVersion               string
	Zone                            string
	ZonePrivateVlan                 string
	ZonePublicVlan                  string
	ZoneUpdatePrivateVlan           string
	ZoneUpdatePublicVlan            string
	WorkerPoolSecondaryStorage      string
	CsRegion                        string
	ExtendedHardwareTesting         bool

	CertCRN                      string
	UpdatedCertCRN               string
	SecretCRN                    string
	SecretCRN2                   string
	EnterpriseCRN                string
	InstanceCRN                  string
	SecretGroupID                string
	RegionName                   string
	ISZoneName                   string
	ISZoneName2                  string
	ISZoneName3                  string
	IsResourceGroupID            string
	ISResourceCrn                string
	ISCIDR                       string
	ISCIDR2                      string
	ISPublicSSHKeyFilePath       string
	ISPrivateSSHKeyFilePath      string
	ISAddressPrefixCIDR          string
	InstanceName                 string
	InstanceProfileName          string
	InstanceProfileNameUpdate    string
	IsBareMetalServerProfileName string
	IsBareMetalServerImage       string
	DNSInstanceCRN               string
	DNSZoneID                    string
	DNSInstanceCRN1              string
	DNSZoneID1                   string
	DedicatedHostProfileName     string
	DedicatedHostGroupID         string
	InstanceDiskProfileName      string
	DedicatedHostGroupFamily     string
	DedicatedHostGroupClass      string
	ShareProfileName             string
	SourceShareCRN               string
	ShareEncryptionKey           string
	VNIId                        string
	VolumeProfileName            string
	VSIUnattachedBootVolumeID    string
	VSIDataVolumeID              string
	ISRouteDestination           string
	ISRouteNextHop               string
	ISSnapshotCRN                string
	WorkspaceID                  string
	TemplateID                   string
	ActionID                     string
	JobID                        string
	RepoURL                      string
	RepoBranch                   string

	HpcsInstanceID string
)
View Source
var (
	MqcloudConfigEndpoint            string
	MqcloudInstanceID                string
	MqcloudQueueManagerID            string
	MqcloudKSCertFilePath            string
	MqcloudTSCertFilePath            string
	MqCloudQueueManagerLocation      string
	MqCloudQueueManagerVersion       string
	MqCloudQueueManagerVersionUpdate string
)

MQ on Cloud

View Source
var (
	SecretsManagerInstanceID                                     string
	SecretsManagerInstanceRegion                                 string
	SecretsManagerENInstanceCrn                                  string
	SecretsManagerIamCredentialsConfigurationApiKey              string
	SecretsManagerIamCredentialsSecretServiceId                  string
	SecretsManagerIamCredentialsSecretServiceAccessGroup         string
	SecretsManagerPublicCertificateLetsEncryptEnvironment        string
	SecretsManagerPublicCertificateLetsEncryptPrivateKey         string
	SecretsManagerPublicCertificateCisCrn                        string
	SecretsManagerPublicCertificateClassicInfrastructureUsername string
	SecretsManagerPublicCertificateClassicInfrastructurePassword string
	SecretsManagerPublicCertificateCommonName                    string
	SecretsManagerValidateManualDnsCisZoneId                     string
	SecretsManagerImportedCertificatePathToCertificate           string
	SecretsManagerServiceCredentialsCosCrn                       string
	SecretsManagerSecretType                                     string
	SecretsManagerSecretID                                       string
)

Secrets Manager

View Source
var (
	HpcsAdmin1                string
	HpcsToken1                string
	HpcsAdmin2                string
	HpcsToken2                string
	HpcsRootKeyCrn            string
	RealmName                 string
	IksSa                     string
	IksClusterID              string
	IksClusterVpcID           string
	IksClusterSubnetID        string
	IksClusterResourceGroupID string
	IcdDbDeploymentId         string
	IcdDbBackupId             string
	IcdDbTaskId               string
	KmsInstanceID             string
	CrkID                     string
	KmsAccountID              string
	BaasEncryptionkeyCRN      string
)
View Source
var (
	IsKMSInstanceId string
	IsKMSKeyName    string
)

for snapshot encryption

View Source
var (
	Pi_image                        string
	Pi_sap_image                    string
	Pi_image_bucket_name            string
	Pi_image_bucket_file_name       string
	Pi_image_bucket_access_key      string
	Pi_image_bucket_secret_key      string
	Pi_image_bucket_region          string
	Pi_key_name                     string
	Pi_volume_name                  string
	Pi_volume_id                    string
	Pi_replication_volume_name      string
	Pi_volume_onboarding_source_crn string
	Pi_auxiliary_volume_name        string
	Pi_volume_group_name            string
	Pi_volume_group_id              string
	Pi_volume_onboarding_id         string
	Pi_network_name                 string
	Pi_cloud_instance_id            string
	Pi_snapshot_id                  string
	Pi_instance_name                string
	Pi_dhcp_id                      string
	PiCloudConnectionName           string
	PiSAPProfileID                  string
	Pi_placement_group_name         string
	Pi_spp_placement_group_id       string
	PiStoragePool                   string
	PiStorageType                   string
	Pi_shared_processor_pool_id     string
	Pi_target_storage_tier          string
	Pi_volume_clone_task_id         string
	Pi_resource_group_id            string
)
View Source
var (
	Pi_capture_storage_image_path       string
	Pi_capture_cloud_storage_access_key string
	Pi_capture_cloud_storage_secret_key string
)
View Source
var (
	IsImageName             string
	IsImage                 string
	IsImage2                string
	IsImageEncryptedDataKey string
	IsImageEncryptionKey    string
	IsWinImage              string
	IsCosBucketName         string
	IsCosBucketCRN          string
	Image_cos_url           string
	Image_cos_url_encrypted string
	Image_operating_system  string
)
View Source
var (
	Tg_cross_network_account_id      string
	Tg_cross_network_account_api_key string
	Tg_cross_network_id              string
)

Transit Gateway cross account

View Source
var (
	SccApiEndpoint            string
	SccEventNotificationsCRN  string
	SccInstanceID             string
	SccObjectStorageCRN       string
	SccObjectStorageBucket    string
	SccProviderTypeAttributes string
	SccProviderTypeID         string
	SccReportID               string
)

Secuity and Complinace Center

View Source
var (
	Satellite_location_id          string
	Satellite_Resource_instance_id string
)

Satellite instance

View Source
var (
	CdResourceGroupName              string
	CdAppConfigInstanceName          string
	CdKeyProtectInstanceName         string
	CdSecretsManagerInstanceName     string
	CdSlackChannelName               string
	CdSlackTeamName                  string
	CdSlackWebhook                   string
	CdJiraProjectKey                 string
	CdJiraApiUrl                     string
	CdJiraUsername                   string
	CdJiraApiToken                   string
	CdSaucelabsAccessKey             string
	CdSaucelabsUsername              string
	CdBitbucketRepoUrl               string
	CdGithubConsolidatedRepoUrl      string
	CdGitlabRepoUrl                  string
	CdHostedGitRepoUrl               string
	CdEventNotificationsInstanceName string
)

Continuous Delivery

View Source
var (
	ISCertificateCrn string
	ISClientCaCrn    string
)

VPN Server

View Source
var (
	IesApiKey    string
	IngestionKey string
	COSApiKey    string
)

Atracker

View Source
var (
	CeResourceGroupID   string
	CeProjectId         string
	CeServiceInstanceID string
	CeResourceKeyID     string
	CeDomainMappingName string
	CeTLSCert           string
	CeTLSKey            string
)

For Code Engine

View Source
var (
	PagCosInstanceName         string
	PagCosBucketName           string
	PagCosBucketRegion         string
	PagVpcName                 string
	PagServicePlan             string
	PagVpcSubnetNameInstance_1 string
	PagVpcSubnetNameInstance_2 string
	PagVpcSgInstance_1         string
	PagVpcSgInstance_2         string
)

For PAG

View Source
var (
	TestAccProviders map[string]*schema.Provider
	TestAccProvider  *schema.Provider
)
View Source
var Account_to_be_imported string

Enterprise Management

View Source
var ClusterName string

ROKS Cluster

View Source
var Cos_bucket string

Billing Snapshot Configuration

View Source
var Cos_bucket_update string
View Source
var Cos_location string
View Source
var Cos_location_update string
View Source
var Cos_reports_folder string
View Source
var HostPoolID string

Dedicated host

View Source
var IBM_AccountID_REPL string

COS Replication Bucket

View Source
var ISDelegegatedVPC string
View Source
var IamIdentityAssignmentTargetAccountId string

for IAM Identity

View Source
var ProjectsConfigApiKey string

Projects

View Source
var (
	SatelliteSSHPubKey string
)

Satellite tests

View Source
var Snapshot_date_from string
View Source
var Snapshot_date_to string
View Source
var Snapshot_month string
View Source
var Tg_power_vs_network_id string

Transit Gateway Power Virtual Server

Functions

func ConfigAlternateRegionProvider added in v1.60.0

func ConfigAlternateRegionProvider() string

func ConfigCompose added in v1.60.0

func ConfigCompose(config ...string) string

ConfigCompose can be called to concatenate multiple strings to build test configurations

func Region added in v1.60.0

func Region() string

func RegionAlternate added in v1.60.0

func RegionAlternate() string

func TestAccPreCheck

func TestAccPreCheck(t *testing.T)

func TestAccPreCheckAssignmentTargetAccount added in v1.57.0

func TestAccPreCheckAssignmentTargetAccount(t *testing.T)

func TestAccPreCheckCOS

func TestAccPreCheckCOS(t *testing.T)

func TestAccPreCheckCis

func TestAccPreCheckCis(t *testing.T)

func TestAccPreCheckCloudShell

func TestAccPreCheckCloudShell(t *testing.T)

func TestAccPreCheckCodeEngine added in v1.52.0

func TestAccPreCheckCodeEngine(t *testing.T)

func TestAccPreCheckEncryptedImage

func TestAccPreCheckEncryptedImage(t *testing.T)

func TestAccPreCheckEnterprise

func TestAccPreCheckEnterprise(t *testing.T)

func TestAccPreCheckEnterpriseAccountImport

func TestAccPreCheckEnterpriseAccountImport(t *testing.T)

func TestAccPreCheckHPCS

func TestAccPreCheckHPCS(t *testing.T)

func TestAccPreCheckIAMTrustedProfile

func TestAccPreCheckIAMTrustedProfile(t *testing.T)

func TestAccPreCheckImage

func TestAccPreCheckImage(t *testing.T)

func TestAccPreCheckMqcloud added in v1.61.0

func TestAccPreCheckMqcloud(t *testing.T)

func TestAccPreCheckSatelliteSSH added in v1.60.0

func TestAccPreCheckSatelliteSSH(t *testing.T)

func TestAccPreCheckScc added in v1.58.0

func TestAccPreCheckScc(t *testing.T)

func TestAccPreCheckUsage added in v1.59.0

func TestAccPreCheckUsage(t *testing.T)

func TestAccProviderFactories added in v1.60.0

func TestAccProviderFactories() map[string]func() (*schema.Provider, error)

func TestProvider

func TestProvider(t *testing.T)

func TestProvider_impl

func TestProvider_impl(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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