MCPcopy
hub / github.com/Azure/aztfexport / Precheck

Function Precheck

internal/test/utils.go:35–49  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

33}
34
35func Precheck(t *testing.T) {
36 variables := []string{
37 TestToggleEnvVar,
38 "ARM_CLIENT_ID",
39 "ARM_CLIENT_SECRET",
40 "ARM_SUBSCRIPTION_ID",
41 "ARM_TENANT_ID",
42 }
43 for _, variable := range variables {
44 value := os.Getenv(variable)
45 if value == "" {
46 t.Skipf("`%s` must be set for e2e tests!", variable)
47 }
48 }
49}
50
51func BuildCredAndClientOpt(t *testing.T) (azcore.TokenCredential, *arm.ClientOptions) {
52 env := "public"

Callers 15

TestVnetFunction · 0.92
TestComputeVMDiskFunction · 0.92
TestSignalRServiceFunction · 0.92
TestKeyVaultNestedItemsFunction · 0.92
TestFunctionAppSlotFunction · 0.92
TestStorageFileShareFunction · 0.92
TestVnetFunction · 0.92
TestComputeVMDiskFunction · 0.92
TestSignalRServiceFunction · 0.92
TestKeyVaultNestedItemsFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestVnetFunction · 0.74
TestComputeVMDiskFunction · 0.74
TestSignalRServiceFunction · 0.74
TestKeyVaultNestedItemsFunction · 0.74
TestFunctionAppSlotFunction · 0.74
TestStorageFileShareFunction · 0.74
TestVnetFunction · 0.74
TestComputeVMDiskFunction · 0.74
TestSignalRServiceFunction · 0.74
TestKeyVaultNestedItemsFunction · 0.74