Documentation ¶
Index ¶
Constants ¶
View Source
const ( ClientID = "AZURE_CLIENT_ID" ClientSecret = "AAD_SERVICE_PRINCIPAL_CLIENT_SECRET" ClientCert = "AZURE_CLIENT_CER" ClientCertPass = "AZURE_CLIENT_CERTIFICATE_PASSWORD" ResourceID = "AZURE_RESOURCE_ID" TenantID = "AZURE_TENANT_ID" BadSecret = "Bad_Secret" Username = "USERNAME" Password = "PASSWORD" )
Variables ¶
This section is empty.
Functions ¶
func ErrorContains ¶
ErrorContains takes an input error and a desired substring, checks if the string is present in the error message, and returns the boolean result
func GetVCRHttpClient ¶
GetVCRHttpClient setup Go-vcr
func ReplaceSecretValuesIncludingURLEscaped ¶ added in v0.1.1
ReplaceSecretValuesIncludingURLEscaped takes an input string, finds any instances of the input secret in the string (including in URL-escaped format), and replaces all instances with the given redaction token This is used for VCR tests as they sometimes include a URL-escaped version of the secret in the request body
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.