github.com/kubeshop/testkube@v1.17.23/pkg/api/v1/client/factory_test.go (about) 1 package client 2 3 import ( 4 "fmt" 5 "testing" 6 7 "github.com/stretchr/testify/assert" 8 ) 9 10 func TestGetClient(t *testing.T) { 11 12 t.Run("get proxy client", func(t *testing.T) { 13 t.Skip("This one needs kubernetes config to work") 14 15 client, err := GetClient(ClientProxy, Options{ 16 Namespace: "testkube", 17 APIServerName: "testkube-api-server", 18 APIServerPort: 8088, 19 }) 20 assert.NoError(t, err) 21 assert.Equal(t, "client.ProxyAPIClient", fmt.Sprintf("%T", client)) 22 }) 23 }