Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. cmd/kube-controller-manager/app/testing/testserver.go

    	logsapi.ReapplyHandling = logsapi.ReapplyHandlingIgnoreUnchanged
    }
    
    // TearDownFunc is to be called to tear down a test server.
    type TearDownFunc func()
    
    // TestServer return values supplied by kube-test-ApiServer
    type TestServer struct {
    	LoopbackClientConfig *restclient.Config // Rest client config using the magic token
    	Options              *options.KubeControllerManagerOptions
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 11:28:02 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  3. cmd/kube-scheduler/app/testing/testserver.go

    	logsapi.ReapplyHandling = logsapi.ReapplyHandlingIgnoreUnchanged
    }
    
    // TearDownFunc is to be called to tear down a test server.
    type TearDownFunc func()
    
    // TestServer return values supplied by kube-test-ApiServer
    type TestServer struct {
    	LoopbackClientConfig *restclient.Config // Rest client config using the magic token
    	Options              *options.Options
    	Config               *kubeschedulerconfig.Config
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 10:35:59 UTC 2023
    - 5.2K 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. src/cmd/vendor/golang.org/x/mod/sumdb/test.go

    )
    
    // NewTestServer constructs a new [TestServer]
    // that will sign its tree with the given signer key
    // (see [golang.org/x/mod/sumdb/note])
    // and fetch new records as needed by calling gosum.
    func NewTestServer(signer string, gosum func(path, vers string) ([]byte, error)) *TestServer {
    	return &TestServer{signer: signer, gosum: gosum}
    }
    
    // A TestServer is an in-memory implementation of [ServerOps] for testing.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. pkg/kubelet/client/kubelet_client_test.go

    	}
    	if rt == nil {
    		t.Error("rt should not be nil")
    	}
    }
    
    func TestMakeInsecureTransport(t *testing.T) {
    	testServer := httptest.NewTLSServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    		w.WriteHeader(http.StatusOK)
    	}))
    	defer testServer.Close()
    
    	testURL, err := url.Parse(testServer.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    	_, portStr, err := net.SplitHostPort(testURL.Host)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 07 01:34:49 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  7. pilot/cmd/pilot-agent/status/ready/probe_test.go

    	g.Expect(probe.atleastOnceReady).Should(BeFalse())
    	server.Close()
    
    	server = testserver.CreateAndStartServer(liveServerStats)
    	probe.AdminPort = uint16(server.Listener.Addr().(*net.TCPAddr).Port)
    	err = probe.Check()
    	g.Expect(err).NotTo(HaveOccurred())
    	g.Expect(probe.atleastOnceReady).Should(BeTrue())
    	server.Close()
    
    	server = testserver.CreateAndStartServer(noServerStats)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_advanced_middleware/test_tutorial001.py

    
    def test_middleware():
        client = TestClient(app, base_url="https://testserver")
        response = client.get("/")
        assert response.status_code == 200, response.text
    
        client = TestClient(app)
        response = client.get("/", follow_redirects=False)
        assert response.status_code == 307, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Nov 13 14:26:09 UTC 2022
    - 474 bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/etcd3/testing/test_server.go

    limitations under the License.
    */
    
    package testing
    
    import (
    	"testing"
    
    	clientv3 "go.etcd.io/etcd/client/v3"
    
    	"k8s.io/apiserver/pkg/storage/etcd3/testserver"
    	"k8s.io/apiserver/pkg/storage/storagebackend"
    )
    
    // EtcdTestServer encapsulates the datastructures needed to start local instance for testing
    type EtcdTestServer struct {
    	V3Client *clientv3.Client
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 20 13:35:58 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/etcd3/compact_test.go

    package etcd3
    
    import (
    	"context"
    	"testing"
    
    	etcdrpc "go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
    	clientv3 "go.etcd.io/etcd/client/v3"
    
    	"k8s.io/apiserver/pkg/storage/etcd3/testserver"
    )
    
    func TestCompact(t *testing.T) {
    	client := testserver.RunEtcd(t, nil)
    	ctx := context.Background()
    
    	putResp, err := client.Put(ctx, "/somekey", "data")
    	if err != nil {
    		t.Fatalf("Put failed: %v", err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 23 14:22:57 UTC 2021
    - 2.5K bytes
    - Viewed (0)
Back to top