Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for testserver (0.27 sec)

  1. 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: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Jul 02 18:48:50 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. 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: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Nov 13 14:26:09 UTC 2022
    - 474 bytes
    - Viewed (0)
  3. tests/test_tutorial/test_header_param_models/test_tutorial001.py

                ("traceparent", "123"),
                ("x-tag", "one"),
                ("x-tag", "two"),
            ],
        )
        assert response.status_code == 200
        assert response.json() == {
            "host": "testserver",
            "save_data": True,
            "if_modified_since": "yesterday",
            "traceparent": "123",
            "x_tag": ["one", "two"],
        }
    
    
    def test_header_param_model_defaults(client: TestClient):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_header_param_models/test_tutorial002.py

                ("traceparent", "123"),
                ("x-tag", "one"),
                ("x-tag", "two"),
            ],
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "host": "testserver",
            "save_data": True,
            "if_modified_since": "yesterday",
            "traceparent": "123",
            "x_tag": ["one", "two"],
        }
    
    
    def test_header_param_model_defaults(client: TestClient):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. cmd/test-utils_test.go

    	testServer := UnstartedTestServer(t, instanceType)
    	testServer.Server.TLS = config
    	testServer.Server.StartTLS()
    	return testServer
    }
    
    // Starts the test server and returns the TestServer instance.
    func StartTestServer(t TestErrHandler, instanceType string) TestServer {
    	// create an instance of TestServer.
    	testServer := UnstartedTestServer(t, instanceType)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/BaseCIFSTest.java

            Assume.assumeNotNull(testDomain);
            return testDomain;
        }
    
    
        protected String getTestServer () {
            String testServer = getProperties().get(TestProperties.TEST_SERVER);
            Assume.assumeNotNull(testServer);
            return testServer;
        }
    
    
        protected String getTestUserDomain () {
            return getProperties().get(TestProperties.TEST_USER_DOMAIN);
    
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 8.1K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_templates/test_tutorial001.py

        from docs_src.templates.tutorial001 import app
    
        client = TestClient(app)
        response = client.get("/items/foo")
        assert response.status_code == 200, response.text
        assert (
            b'<h1><a href="http://testserver/items/foo">Item ID: foo</a></h1>'
            in response.content
        )
        response = client.get("/static/styles.css")
        assert response.status_code == 200, response.text
        assert b"color: green;" in response.content
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Jan 11 22:25:37 UTC 2024
    - 910 bytes
    - Viewed (0)
  8. test-site/test/IntegrationTest.java

    public class IntegrationTest {
    
        /**
         * add your integration test here
         * in this example we just check if the welcome page is being shown
         */
        @Test
        public void test() {
            running(testServer(3333, fakeApplication(inMemoryDatabase())), HTMLUNIT, new Callback<TestBrowser>() {
                public void invoke(TestBrowser browser) {
                    browser.goTo("http://localhost:3333");
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Mon Apr 20 08:41:37 UTC 2015
    - 773 bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/healthServer_test.go

    // limitations under the License.
    
    package nodeagent
    
    import (
    	"net/http"
    	"net/http/httptest"
    	"testing"
    
    	"istio.io/istio/cni/pkg/constants"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestServer(t *testing.T) {
    	router := http.NewServeMux()
    	installReady, watchReady := initRouter(router)
    
    	assert.Equal(t, installReady.Load(), false)
    	assert.Equal(t, watchReady.Load(), false)
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. cmd/server_test.go

    	s.testServer.cancel()
    	s.testServer.Server.Close()
    	s.testServer.Obj.Shutdown(context.Background())
    
    	// Restart.
    	ctx, cancel := context.WithCancel(context.Background())
    
    	s.testServer.cancel = cancel
    	s.testServer = initTestServerWithBackend(ctx, c, s.testServer, s.testServer.Obj, s.testServer.rawDiskPaths)
    	if s.secure {
    		s.testServer.Server.StartTLS()
    	} else {
    		s.testServer.Server.Start()
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 15 16:28:02 UTC 2024
    - 116.3K bytes
    - Viewed (0)
Back to top