Update go version, modules and remove ioutil

This commit is contained in:
Ricardo Katz 2021-08-06 11:18:17 -03:00
parent 6f0401fc73
commit d226d831bd
31 changed files with 576 additions and 288 deletions

View file

@ -18,7 +18,6 @@ package auth
import (
"fmt"
"io/ioutil"
"os"
"testing"
"time"
@ -202,12 +201,12 @@ func TestIngressAuthInvalidSecretKey(t *testing.T) {
}
func dummySecretContent(t *testing.T) (string, string, *api.Secret) {
dir, err := ioutil.TempDir("", fmt.Sprintf("%v", time.Now().Unix()))
dir, err := os.MkdirTemp("", fmt.Sprintf("%v", time.Now().Unix()))
if err != nil {
t.Error(err)
}
tmpfile, err := ioutil.TempFile("", "example-")
tmpfile, err := os.CreateTemp("", "example-")
if err != nil {
t.Error(err)
}