Moving InstallSwaggerAPI to Run

This commit is contained in:
nikhiljindal
2016-03-28 14:03:42 -07:00
parent e01feae75a
commit eeeaa6867a
2 changed files with 10 additions and 7 deletions

View File

@@ -46,6 +46,8 @@ func TestKubectlValidation(t *testing.T) {
defer components.Stop(true, true)
ctx := clientcmdapi.NewContext()
cfg := clientcmdapi.NewConfig()
// Enable swagger api on master.
components.KubeMaster.InstallSwaggerAPI()
cluster := clientcmdapi.NewCluster()
cluster.Server = components.ApiServer.URL
cluster.InsecureSkipTLSVerify = true