- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 103 for expectedBody (0.23 sec)
-
okhttp/src/test/java/okhttp3/RecordedResponse.kt
} fun assertHeaders(headers: Headers) = apply { assertThat(response!!.headers).isEqualTo(headers) } fun assertBody(expectedBody: String) = apply { assertThat(body).isEqualTo(expectedBody) } fun assertHandshake() = apply { val handshake = response!!.handshake!! assertThat(handshake.tlsVersion).isNotNull()
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware_test.go
expectedHeaders http.Header expectedBody []byte }{ "content-length": { reqHeaders: http.Header{ "Content-Length": []string{"5"}, }, reqBody: sampleData, expectedHeaders: http.Header{ "Content-Length": []string{"5"}, "Content-Encoding": nil, // none set "Transfer-Encoding": nil, // none set }, expectedBody: sampleData, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 10 07:29:34 UTC 2023 - 39.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/config_test.go
func checkPath(url string, expectedStatusCode int, expectedBody string, t *testing.T) { t.Run(url, func(t *testing.T) { resp, err := http.Get(url) if err != nil { t.Fatal(err) } dump, _ := httputil.DumpResponse(resp, true) t.Log(string(dump)) body, err := io.ReadAll(resp.Body) if err != nil { t.Fatal(err) } if e, a := expectedBody, string(body); e != a {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 13.1K bytes - Viewed (0) -
src/mime/multipart/multipart_test.go
"Foo\r\nBar\r\n", "Foo\rBar", "Foo\rBar\r", "\x00\x01\x02\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10", } for testNum, expectedBody := range tests { body := "--BOUNDARY\r\n" + "Content-Disposition: form-data; name=\"value\"\r\n" + "\r\n" + expectedBody + "\r\n--BOUNDARY--\r\n" bodyReader := strings.NewReader(body) reader := NewReader(bodyReader, "BOUNDARY") buf := new(bytes.Buffer)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 17:36:47 UTC 2022 - 30.4K bytes - Viewed (0) -
src/net/http/client_test.go
expectedBody := "foo=bar&foo=bar2&bar=baz" expectedBody1 := "bar=baz&foo=bar&foo=bar2" if g, e := tr.req.ContentLength, int64(len(expectedBody)); g != e { t.Errorf("got ContentLength %d, want %d", g, e) } bodyb, err := io.ReadAll(tr.req.Body) if err != nil { t.Fatalf("ReadAll on req.Body: %v", err) } if g := string(bodyb); g != expectedBody && g != expectedBody1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:30:50 UTC 2024 - 63.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/impersonation_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 06 17:13:16 UTC 2021 - 17.2K bytes - Viewed (0) -
plugin/pkg/admission/extendedresourcetoleration/admission_test.go
}, }, } tests := []struct { description string requestedPod core.Pod expectedPod core.Pod }{ { description: "empty pod without any extended resources, expect no change in tolerations", requestedPod: core.Pod{ Spec: core.PodSpec{}, }, expectedPod: core.Pod{ Spec: core.PodSpec{}, }, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 20 15:11:00 UTC 2019 - 10.3K bytes - Viewed (0) -
pkg/volume/csi/nodeinfomanager/nodeinfomanager_test.go
migratedPlugins map[string](func() bool) existingNode *storage.CSINode expectedNode *storage.CSINode expectModified bool }{ { name: "nil migrated plugins", existingNode: &storage.CSINode{ ObjectMeta: metav1.ObjectMeta{ Name: "node1", }, }, expectedNode: &storage.CSINode{ ObjectMeta: metav1.ObjectMeta{ Name: "node1", }, }, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Dec 17 02:02:59 UTC 2022 - 34.3K bytes - Viewed (0) -
subprojects/diagnostics/src/testFixtures/groovy/org/gradle/api/reporting/model/ModelReportOutput.groovy
*/ void hasNodeStructure(ReportNode expectedNode) { def parsedNodes = parsedModelReport.reportNode def actualNode = parsedNodes.findFirstByName(expectedNode.name()) assert actualNode: "Could not find the first node to begin comparison" checkNodes(actualNode, expectedNode) } /** * A fuzzy assertion which recursively asserts that:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jul 02 20:49:19 UTC 2015 - 3.5K bytes - Viewed (0) -
pkg/kubelet/pod/pod_manager_test.go
// Tests that all regular pods are recorded correctly. actualPods := podManager.GetPods() if len(actualPods) != len(expectedPods) { t.Errorf("expected %d pods, got %d pods; expected pods %#v, got pods %#v", len(expectedPods), len(actualPods), expectedPods, actualPods) } for _, expected := range expectedPods { found := false for _, actual := range actualPods { if actual.UID == expected.UID {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 12 16:57:27 UTC 2023 - 5.4K bytes - Viewed (0)