func TestCreateApiserverClient_remote(t *testing.T) { client, _ := backend.CreateApiserverClient("http://foo:bar", new(FakeClientFactory)) if client != fakeRemoteClient { t.Fatal("Expected remote client to be created") } }
func TestCreateApiserverClient_inCluster(t *testing.T) { client, _ := backend.CreateApiserverClient("", new(FakeClientFactory)) if client != fakeInClusterClient { t.Fatal("Expected in cluster client to be created") } }