github.com/jlmeeker/kismatic@v1.10.1-0.20180612190640-57f9005a1f1a/pkg/install/plan_types_test.go (about)

     1  package install
     2  
     3  import (
     4  	"gopkg.in/yaml.v2"
     5  	"io/ioutil"
     6  	"testing"
     7  )
     8  
     9  func TestCanReadAPIServerOverrides(t *testing.T) {
    10  	d, _ := ioutil.ReadFile("test/cluster-config.yaml")
    11  	p := &Plan{}
    12  	yaml.Unmarshal(d, p)
    13  
    14  	assertEqual(t, p.Cluster.APIServerOptions.Overrides["runtime-config"], "beta/v2api=true,alpha/v1api=true")
    15  }