Uh oh!
There was an error while loading. Please reload this page.
Add the auth.ProcessEnv function - #2404
Conversation
| os.Clearenv() | ||
| } | ||
There was a problem hiding this comment.
Can you explain the nuance between the two different cleanup functions?
The distinction is not clear from the name (cleanup vs clear).
There was a problem hiding this comment.
Renamed this to NullEnvironment to make the nuance more clear.
There was a problem hiding this comment.
I think NullEnvironment should follow naming of os.Clearenv() since that's essentially a wrapper: Clearenv(t* testing.T).
CleanupEnvironment can be renamed to SetMinimalEnvVars? However, I'd rather we did not do this in tests, this feels like it could break things.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
## Changes This function provides all environment variables necessary to authenticate the downstream applications to the same credentials as the parent process. It's used in #2278 and will also be useful for the `databricks bundle exec` command. ## Tests Unit test.
Changes
This function provides all environment variables necessary to authenticate the downstream applications to the same credentials as the parent process.
It's used in #2278 and will also be useful for the
databricks bundle execcommand.Tests
Unit test.