1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 15:47:14 +01:00
Files
installer/pkg/explain/data_test.go
Rafael Fonseca 428688c9cd Replace deprecated io/ioutil package
`io/ioutil` has been deprecated since go-1.16 [1]. We should use `io`
and `os` instead.

[1] https://github.com/golang/go/issues/42026
2022-11-18 20:08:57 +01:00

15 lines
243 B
Go

package explain
import (
"os"
"testing"
)
func loadCRD(t *testing.T) []byte {
crd, err := os.ReadFile("../../data/data/install.openshift.io_installconfigs.yaml")
if err != nil {
t.Fatalf("failed to load CRD: %v", err)
}
return crd
}