Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestDialURL (0.14 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/proxy/dial_test.go

    	"fmt"
    	"net"
    	"net/http"
    	"net/http/httptest"
    	"net/url"
    	"reflect"
    	"regexp"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	utilnet "k8s.io/apimachinery/pkg/util/net"
    )
    
    func TestDialURL(t *testing.T) {
    	roots := x509.NewCertPool()
    	if !roots.AppendCertsFromPEM(localhostCert) {
    		t.Fatal("error setting up localhostCert pool")
    	}
    
    	cert, err := tls.X509KeyPair(localhostCert, localhostKey)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 8.4K bytes
    - Viewed (0)
Back to top