You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-06-21 00:29:44 +02:00
Fix Linting Errors (#1835)
* initial commit: add groups to azure Signed-off-by: andrewphamade@gmail.com <andrewphamade@gmail.com> * fix deprecations and linting errors Signed-off-by: Andrew Hamade <andrewphamade@gmail.com> * remove groups testing from azure provider Signed-off-by: Andrew Hamade <andrewphamade@gmail.com> * fix test error Signed-off-by: Andrew Hamade <andrewphamade@gmail.com> * verify-generate Signed-off-by: Andrew Hamade <andrewphamade@gmail.com> Signed-off-by: andrewphamade@gmail.com <andrewphamade@gmail.com> Signed-off-by: Andrew Hamade <andrewphamade@gmail.com>
This commit is contained in:
@ -3,7 +3,6 @@ package util
|
||||
import (
|
||||
"crypto/x509"
|
||||
"encoding/pem"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
@ -183,7 +182,7 @@ WrW4JMzLaGDtoHxRNNfo8E7fGkQ=
|
||||
)
|
||||
|
||||
func makeTestCertFile(t *testing.T, pem, dir string) *os.File {
|
||||
file, err := ioutil.TempFile(dir, "test-certfile")
|
||||
file, err := os.CreateTemp(dir, "test-certfile")
|
||||
assert.NoError(t, err)
|
||||
_, err = file.Write([]byte(pem))
|
||||
assert.NoError(t, err)
|
||||
@ -196,7 +195,7 @@ func TestGetCertPool_NoRoots(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetCertPool(t *testing.T) {
|
||||
tempDir, err := ioutil.TempDir("", "certtest")
|
||||
tempDir, err := os.MkdirTemp("", "certtest")
|
||||
assert.NoError(t, err)
|
||||
defer func(path string) {
|
||||
rerr := os.RemoveAll(path)
|
||||
|
Reference in New Issue
Block a user