Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 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. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

                                        rewriter.getI64Type()),
                  permutation));
          reverse_filter_in = filter_transposed;
        }
    
        // Lets hard-code the reverse indexes to be {0, 1} as the expectation is
        // that the kernel is always in HWOI format, with the above code.
        mhlo::ReverseOp filter = rewriter.create<mhlo::ReverseOp>(
            conv_op.getLoc(), reverse_filter_in, rewriter.getI64TensorAttr({0, 1}));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  4. 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)
  5. pkg/controller/daemon/daemon_controller_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	if !exists {
    		t.Fatalf("No expectations found for DaemonSet %q", oldDSKey)
    	}
    	if dsExp.Fulfilled() {
    		t.Errorf("There should be unfulfilled expectation for creating new pods for DaemonSet %q", oldDSKey)
    	}
    
    	// process updates DS, update adds to queue
    	waitForQueueLength(1, "updated DS")
    	ok = dsc.processNextWorkItem(context.TODO())
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  6. 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)
  7. pkg/controller/podautoscaler/horizontal_test.go

    	finalCPUPercentTarget := int32(target * 100)
    	resourcesUsedRatio := float64(totalUsedCPUOfAllPods) / float64(float64(totalRequestedCPUOfAllPods)*target)
    
    	// i.e. .60 * 20 -> scaled down expectation.
    	finalPods := int32(math.Ceil(resourcesUsedRatio * float64(startPods)))
    
    	// To breach tolerance we will create a utilization ratio difference of tolerance to usageRatioToleranceValue)
    	tc1 := testCase{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 199.3K bytes
    - Viewed (0)
  8. 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