Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for TestServer (0.22 sec)

  1. cmd/kube-apiserver/app/testing/testserver.go

    	// an apiserver version skew scenario where all apiservers use the same proxyCA to verify client connections.
    	ProxyCA *ProxyCA
    }
    
    // TestServer return values supplied by kube-test-ApiServer
    type TestServer struct {
    	ClientConfig      *restclient.Config        // Rest client config
    	ServerOpts        *options.ServerRunOptions // ServerOpts
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/cmd/server/testing/testserver.go

    }
    
    // TearDownFunc is to be called to tear down a test server.
    type TearDownFunc func()
    
    // TestServerInstanceOptions Instance options the TestServer
    type TestServerInstanceOptions struct {
    }
    
    // TestServer return values supplied by kube-test-ApiServer
    type TestServer struct {
    	ClientConfig    *restclient.Config                              // Rest client config
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 9K bytes
    - Viewed (1)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/plugin_test.go

    		b.Log("to run a standalone server, run:")
    		b.Log("go run k8s.io/apiserver/pkg/admission/plugin/webhook/testing/main/main.go")
    		testServer := webhooktesting.NewTestServer(b)
    		testServer.StartTLS()
    		defer testServer.Close()
    		testServerURL = testServer.URL
    	}
    
    	serverURL, err := url.ParseRequestURI(testServerURL)
    	if err != nil {
    		b.Fatalf("this should never happen? %v", err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:52 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. cni/pkg/plugin/cnieventclient_test.go

    	testServer := httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {
    		res.WriteHeader(http.StatusOK)
    		res.Write([]byte("server happy"))
    	}))
    	defer func() { testServer.Close() }()
    
    	cniC := fakeCNIEventClient(testServer.URL)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/plugin_test.go

    		b.Log("to run a standalone server, run:")
    		b.Log("go run k8s.io/apiserver/pkg/admission/plugin/webhook/testing/main/main.go")
    		testServer := webhooktesting.NewTestServer(b)
    		testServer.StartTLS()
    		defer testServer.Close()
    		testServerURL = testServer.URL
    	}
    
    	objectInterfaces := webhooktesting.NewObjectInterfacesForTest()
    
    	serverURL, err := url.ParseRequestURI(testServerURL)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:52 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  6. pkg/controller/endpoint/endpoints_controller_test.go

    	}
    }
    
    func TestSyncEndpointsItemsPreserveNoSelector(t *testing.T) {
    	ns := metav1.NamespaceDefault
    	testServer, endpointsHandler := makeTestServer(t, ns)
    	defer testServer.Close()
    
    	tCtx := ktesting.Init(t)
    	endpoints := newController(tCtx, testServer.URL, 0*time.Second)
    	endpoints.endpointsStore.Add(&v1.Endpoints{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:            "foo",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/test/integration/fixtures/server.go

    }
    
    func startDefaultServer(t servertesting.Logger, flags ...string) (func(), servertesting.TestServer, error) {
    	// create kubeconfig which will not actually be used. But authz/authn needs it to startup.
    	fakeKubeConfig, err := os.CreateTemp("", "kubeconfig")
    	if err != nil {
    		return nil, servertesting.TestServer{}, err
    	}
    	fakeKubeConfig.WriteString(`
    apiVersion: v1
    kind: Config
    clusters:
    - cluster:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. cmd/test-utils_test.go

    	testServer.Obj = objLayer
    	testServer.rawDiskPaths = disks
    	testServer.Disks = mustGetPoolEndpoints(0, disks...)
    	testServer.AccessKey = credentials.AccessKey
    	testServer.SecretKey = credentials.SecretKey
    
    	httpHandler, err := configureServerHandler(testServer.Disks)
    	if err != nil {
    		t.Fatalf("Failed to configure one of the RPC services <ERROR> %s", err)
    	}
    
    	// Run TestServer.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  9. security/pkg/nodeagent/sds/sdsservice_test.go

    		},
    	}
    	usefakePrivateKeyProviderConf = false
    )
    
    type TestServer struct {
    	t       *testing.T
    	server  *Server
    	udsPath string
    	store   *ca2.DirectSecretManager
    }
    
    func (s *TestServer) Connect() *xds.AdsTest {
    	conn, err := setupConnection(s.udsPath)
    	if err != nil {
    		s.t.Fatal(err)
    	}
    	return xds.NewSdsTest(s.t, conn)
    }
    
    func (s *TestServer) UpdateSecret(name string, secret *ca2.SecretItem) {
    	s.t.Helper()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 17 20:12:58 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/tls_test.go

    	"k8s.io/apiserver/pkg/apis/example"
    	examplev1 "k8s.io/apiserver/pkg/apis/example/v1"
    	"k8s.io/apiserver/pkg/storage/etcd3/testing/testingcert"
    	"k8s.io/apiserver/pkg/storage/etcd3/testserver"
    	"k8s.io/apiserver/pkg/storage/storagebackend"
    )
    
    var scheme = runtime.NewScheme()
    var codecs = serializer.NewCodecFactory(scheme)
    
    func init() {
    	metav1.AddToGroupVersion(scheme, metav1.SchemeGroupVersion)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top