Ejemplo n.º 1
0
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")
	}
}
Ejemplo n.º 2
0
func TestCreateApiserverClient_inCluster(t *testing.T) {
	client, _ := backend.CreateApiserverClient("", new(FakeClientFactory))
	if client != fakeInClusterClient {
		t.Fatal("Expected in cluster client to be created")
	}
}