Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 48 for TestServer (0.16 sec)

  1. 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: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jan 11 22:25:37 UTC 2024
    - 910 bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testing/webhook_server.go

    		t.FailNow()
    	}
    	rootCAs := x509.NewCertPool()
    	rootCAs.AppendCertsFromPEM(testcerts.CACert)
    	testServer := httptest.NewUnstartedServer(http.HandlerFunc(handler))
    	testServer.TLS = &tls.Config{
    		Certificates: []tls.Certificate{sCert},
    		ClientCAs:    rootCAs,
    		ClientAuth:   tls.RequireAndVerifyClientCert,
    	}
    	return testServer
    }
    
    // NewTestServer returns a webhook test HTTPS server with fixed webhook test certs.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 15 11:11:25 UTC 2021
    - 6.3K bytes
    - Viewed (0)
  3. 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: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Mon Apr 20 08:41:37 UTC 2015
    - 773 bytes
    - Viewed (0)
  4. 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: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 8.1K bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonInitialCommunicationFailureIntegrationSpec.groovy

    import static org.gradle.test.fixtures.ConcurrentTestUtil.poll
    
    @Requires(IntegTestPreconditions.CanKillProcess)
    class DaemonInitialCommunicationFailureIntegrationSpec extends DaemonIntegrationSpec {
    
        @Rule TestServer server = new TestServer()
    
        @Issue("GRADLE-2444")
        @Flaky(because = "https://github.com/gradle/gradle-private/issues/4202")
        def "behaves if the registry contains connectable port without daemon on the other end"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 07:46:29 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. pkg/envoy/agent_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package envoy
    
    import (
    	"context"
    	"net"
    	"testing"
    
    	"istio.io/istio/pilot/cmd/pilot-agent/status/testserver"
    )
    
    var invalidStats = ""
    
    var downstreamCxPostiveAcStats = "http.admin.downstream_cx_active: 2 \n" +
    	"http.agent.downstream_cx_active: 0 \n" +
    	"http.inbound_0.0.0.0_8080.downstream_cx_active: 0 \n" +
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 19 20:22:09 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  7. src/net/http/httptest/server_test.go

    		ts.StartTLS()
    		return ts
    	},
    }
    
    func TestServer(t *testing.T) {
    	for _, name := range []string{"NewServer", "NewServerManual"} {
    		t.Run(name, func(t *testing.T) {
    			newServer := newServers[name]
    			t.Run("Server", func(t *testing.T) { testServer(t, newServer) })
    			t.Run("GetAfterClose", func(t *testing.T) { testGetAfterClose(t, newServer) })
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 16:57:12 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  8. pilot/cmd/pilot-agent/status/testserver/server.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package testserver
    
    import (
    	"net"
    	"net/http"
    	"net/http/httptest"
    )
    
    // CreateAndStartServer starts a server and returns the response passed.
    func CreateAndStartServer(response string) *httptest.Server {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 26 17:53:14 UTC 2022
    - 1.7K 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: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher_test.go

    	"k8s.io/apimachinery/pkg/labels"
    	"k8s.io/apimachinery/pkg/watch"
    	"k8s.io/apiserver/pkg/apis/example"
    	"k8s.io/apiserver/pkg/features"
    	"k8s.io/apiserver/pkg/storage"
    	"k8s.io/apiserver/pkg/storage/etcd3/testserver"
    	storagetesting "k8s.io/apiserver/pkg/storage/testing"
    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    	featuregatetesting "k8s.io/component-base/featuregate/testing"
    	"k8s.io/utils/ptr"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top