Suppress lint errors
This commit is contained in:
parent
f4829178b3
commit
58ab57201f
@ -63,7 +63,7 @@ const (
|
|||||||
// For CLI-based auth, such as with LDAP upstream identity providers, the user may use these environment variables
|
// For CLI-based auth, such as with LDAP upstream identity providers, the user may use these environment variables
|
||||||
// to avoid getting interactively prompted for username and password.
|
// to avoid getting interactively prompted for username and password.
|
||||||
defaultUsernameEnvVarName = "PINNIPED_USERNAME"
|
defaultUsernameEnvVarName = "PINNIPED_USERNAME"
|
||||||
defaultPasswordEnvVarName = "PINNIPED_PASSWORD"
|
defaultPasswordEnvVarName = "PINNIPED_PASSWORD" //nolint:gosec // this is not a credential
|
||||||
|
|
||||||
httpLocationHeaderName = "Location"
|
httpLocationHeaderName = "Location"
|
||||||
|
|
||||||
|
@ -471,7 +471,7 @@ func TestE2EFullIntegration(t *testing.T) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
require.NoError(t, os.Setenv(usernameEnvVar, expectedUsername))
|
require.NoError(t, os.Setenv(usernameEnvVar, expectedUsername))
|
||||||
const passwordEnvVar = "PINNIPED_PASSWORD"
|
const passwordEnvVar = "PINNIPED_PASSWORD" //nolint:gosec // this is not a credential
|
||||||
originalPassword, hadOriginalPassword := os.LookupEnv(passwordEnvVar)
|
originalPassword, hadOriginalPassword := os.LookupEnv(passwordEnvVar)
|
||||||
t.Cleanup(func() {
|
t.Cleanup(func() {
|
||||||
if hadOriginalPassword {
|
if hadOriginalPassword {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user