Documentation ¶
Index ¶
- Constants
- func FindDefaultServiceAccount() (string, error)
- func GetBillingAccountID(t *testing.T) string
- func GetCloudFunctionsTestProject(t *testing.T) string
- func GetDLPTestBucket(t *testing.T) string
- func GetDefaultProjectID(t *testing.T) string
- func GetDependentFolderProjectID(t *testing.T) string
- func GetDependentNoNetworkProjectID(t *testing.T) string
- func GetDependentOrgProjectID(t *testing.T) string
- func GetFirestoreTestProject(t *testing.T) string
- func GetFolder2ID(t *testing.T) string
- func GetFolderID(t *testing.T) string
- func GetHighCpuQuotaTestProject(t *testing.T) string
- func GetIAMIntegrationTestsBillingAccountId(t *testing.T) string
- func GetIAMIntegrationTestsOrganizationId(t *testing.T) string
- func GetIAMPolicyBindingMember(t *testing.T) string
- func GetIdentityPlatformTestProject(t *testing.T) string
- func GetInterconnectTestProject(t *testing.T) string
- func GetIsolatedTestOrgName(t *testing.T) string
- func GetOrgID(t *testing.T) string
- func GetProjectNumber(ctx context.Context, projectID string) (int64, error)
- func GetRecaptchaEnterpriseTestProject(t *testing.T) string
- func GetTestBillingAccountIDForBillingResources(t *testing.T) string
- func NewDefaultHTTPClient(t *testing.T) *http.Client
- func NewIAMClient(t *testing.T) *iam.Service
- func NewResourceManagerClient(t *testing.T) *cloudresourcemanager.Service
- func NewStorageClient(t *testing.T) *storage.Service
- func ResourceSupportsDeletion(resourceKind string) bool
- type GCPProject
Constants ¶
View Source
const ( TestFolderId = "TEST_FOLDER_ID" TestFolder2Id = "TEST_FOLDER_2_ID" TestOrgId = "TEST_ORG_ID" TestDependentOrgProjectId = "TEST_DEPENDENT_ORG_PROJECT_ID" TestDependentFolderProjectId = "TEST_DEPENDENT_FOLDER_PROJECT_ID" TestDependentNoNetworkProjectId = "TEST_DEPENDENT_NO_NETWORK_PROJECT_ID" // A dependent project with default network disabled IAMIntegrationTestsOrganizationId = "IAM_INTEGRATION_TESTS_ORGANIZATION_ID" IsolatedTestOrgName = "ISOLATED_TEST_ORG_NAME" TestBillingAccountId = "TEST_BILLING_ACCOUNT_ID" TestBillingAccountIDForBillingResources = "BILLING_ACCOUNT_ID_FOR_BILLING_RESOURCES" IAMIntegrationTestsBillingAccountId = "IAM_INTEGRATION_TESTS_BILLING_ACCOUNT_ID" FirestoreTestProject = "FIRESTORE_TEST_PROJECT" CloudFunctionsTestProject = "CLOUD_FUNCTIONS_TEST_PROJECT" IdentityPlatformTestProject = "IDENTITY_PLATFORM_TEST_PROJECT" InterconnectTestProject = "INTERCONNECT_TEST_PROJECT" HighCPUQuotaTestProject = "HIGH_CPU_QUOTA_TEST_PROJECT" RecaptchaEnterpriseTestProject = "RECAPTCHA_ENTERPRISE_TEST_PROJECT" DLPTestBucket = "DLP_TEST_BUCKET" )
Variables ¶
This section is empty.
Functions ¶
func FindDefaultServiceAccount ¶ added in v1.101.0
FindDefaultServiceAccount returns the service account used to access the user's configured default GCP project. If the credentials cannot be found, returns ("", nil)
func GetBillingAccountID ¶
func GetDLPTestBucket ¶ added in v1.97.0
func GetDefaultProjectID ¶
GetDefaultProjectID returns the ID of user's configured default GCP project.
func GetDependentFolderProjectID ¶ added in v1.106.0
func GetDependentNoNetworkProjectID ¶ added in v1.106.0
func GetDependentOrgProjectID ¶ added in v1.106.0
func GetFirestoreTestProject ¶
func GetFolder2ID ¶
func GetFolderID ¶
func GetIAMPolicyBindingMember ¶
attempts to return a valid IAM policy binding for the current credential by searching for an email in the cloud credentials file and defaulting to the current user if on a corp machine.
func GetIsolatedTestOrgName ¶
func GetProjectNumber ¶ added in v1.100.0
func NewIAMClient ¶
func NewStorageClient ¶
Types ¶
type GCPProject ¶ added in v1.100.0
func GetDefaultProject ¶ added in v1.100.0
func GetDefaultProject(t *testing.T) GCPProject
GetDefaultProject returns the ID of user's configured default GCP project.
Click to show internal directories.
Click to hide internal directories.