github.com/openshift/installer@v1.4.17/pkg/explain/data_test.go (about)

     1  package explain
     2  
     3  import (
     4  	"os"
     5  	"testing"
     6  )
     7  
     8  func loadCRD(t *testing.T) []byte {
     9  	crd, err := os.ReadFile("../../data/data/install.openshift.io_installconfigs.yaml")
    10  	if err != nil {
    11  		t.Fatalf("failed to load CRD: %v", err)
    12  	}
    13  	return crd
    14  }