refactor: update to the latest version of kubebuilder and add support for hydra v2 (#127)

This commit is contained in:
Damian Peckett
2023-08-08 10:30:24 +02:00
committed by GitHub
parent 8bd24af9ce
commit 2a6cef5006
26 changed files with 448 additions and 951 deletions

View File

@ -4,7 +4,6 @@
package helpers_test
import (
"io/ioutil"
"os"
"testing"
@ -21,7 +20,7 @@ func TestCreateHttpClient(t *testing.T) {
})
t.Run("should create client with and tlsTrustStore", func(t *testing.T) {
file, err := ioutil.TempFile("/tmp", "test")
file, err := os.CreateTemp("", "test")
require.Nil(t, err)
client, err := helpers.CreateHttpClient(true, file.Name())
defer os.Remove(file.Name())