Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for expectAction (0.28 sec)

  1. pkg/api/pod/util_test.go

    						t.Errorf("appArmorAnnotationsInUse does not match expectation: %t != %t", hasAnnotations, test.hasAnnotations)
    					}
    					if hasFields := appArmorFieldsInUse(&newPod.Spec); hasFields != test.hasFields {
    						t.Errorf("appArmorFieldsInUse does not match expectation: %t != %t", hasFields, test.hasFields)
    					}
    
    					DropDisabledPodFields(newPod, newPod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  2. src/net/http/serve_test.go

    	contentLength    int // of request body
    	chunked          bool
    	expectation      string // e.g. "100-continue"
    	readBody         bool   // whether handler should read the body (if false, sends StatusUnauthorized)
    	expectedResponse string // expected substring in first line of http response
    }
    
    func expectTest(contentLength int, expectation string, readBody bool, expectedResponse string) serverExpectTest {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  3. src/net/http/server.go

    	// "A server that receives an Expect field-value other
    	// than 100-continue MAY respond with a 417 (Expectation
    	// Failed) status code to indicate that the unexpected
    	// expectation cannot be met."
    	w.Header().Set("Connection", "close")
    	w.WriteHeader(StatusExpectationFailed)
    	w.finishRequest()
    }
    
    // Hijack implements the [Hijacker.Hijack] method. Our response is both a [ResponseWriter]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/cluster_test.go

    			addTelemetryMetadata(tt.cluster, opt.port, tt.service, tt.direction, tt.svcInsts)
    			if opt.mutable.cluster != nil && !reflect.DeepEqual(opt.mutable.cluster.Metadata, tt.want) {
    				t.Errorf("cluster metadata does not match expectation want %+v, got %+v", tt.want, opt.mutable.cluster.Metadata)
    			}
    		})
    	}
    }
    
    func TestVerifyCertAtClient(t *testing.T) {
    	testCases := []struct {
    		name               string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  5. pkg/scheduler/internal/queue/scheduling_queue_test.go

    				// resulting in 0 time delta / latency. This will cause the pods to be backed off in a random
    				// order, which would cause this test to fail, since the expectation is for them to be backed off
    				// in a certain order.
    				// See: https://github.com/golang/go/issues/8687
    				podInfo.Timestamp = podInfo.Timestamp.Add(time.Duration((i - len(tt.podInfos))) * time.Millisecond)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
Back to top