Documentation
¶
Index ¶
- func GetConf(t *testing.T, path string) *confmap.Conf
- func GetConfWithOverrides(t *testing.T, path string, overrides map[string]any) *confmap.Conf
- func GetJson(t *testing.T, path string) map[string]interface{}
- func IsolateAWSSharedConfigEnv(t *testing.T) string
- func SharedConfigPath(dir string) string
- func SharedCredentialsPath(dir string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfWithOverrides ¶ added in v1.300034.0
func IsolateAWSSharedConfigEnv ¶ added in v1.300074.0
IsolateAWSSharedConfigEnv makes SDK region and profile lookups deterministic: the shared credentials and config files are pointed at nonexistent paths under a temp dir, and every env var that supplies a region or profile is cleared. Returns the temp dir. Use this rather than HOME, which translator/util.CheckAndSetHomeDir overwrites.
func SharedConfigPath ¶ added in v1.300074.0
SharedConfigPath returns the shared-config file path that IsolateAWSSharedConfigEnv points the SDK at. The file does not exist unless a test creates it.
func SharedCredentialsPath ¶ added in v1.300074.0
SharedCredentialsPath returns the shared-credentials file path that IsolateAWSSharedConfigEnv points the SDK at. The file does not exist unless a test creates it, which is how a test exercises the SDK default-file path.
Types ¶
This section is empty.