Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for expectedResource (0.27 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_sandbox_linux_test.go

    	tests := []struct {
    		description      string
    		pod              *v1.Pod
    		expectedResource *runtimeapi.LinuxContainerResources
    		expectedOverhead *runtimeapi.LinuxContainerResources
    		cgroupVersion    CgroupVersion
    	}{
    		{
    			description: "pod with overhead defined",
    			pod:         getPodWithOverhead(),
    			expectedResource: &runtimeapi.LinuxContainerResources{
    				MemoryLimitInBytes: 268435456,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. cmd/handler-utils_test.go

    	}
    	for i, test := range testCases {
    		gotResource, err := getResource(test.p, test.host, test.domains)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if gotResource != test.expectedResource {
    			t.Fatalf("test %d: expected %s got %s", i+1, test.expectedResource, gotResource)
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/request/requestinfo_test.go

    		}
    		if successCase.expectedResource != apiRequestInfo.Resource {
    			t.Errorf("Unexpected resource for url: %s, expected: %s, actual: %s", successCase.url, successCase.expectedResource, apiRequestInfo.Resource)
    		}
    		if successCase.expectedSubresource != apiRequestInfo.Subresource {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 15 12:19:21 UTC 2018
    - 11.3K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/types_test.go

    			pod.Status.Resize = tt.resizeStatus
    
    			res, non0CPU, non0Mem := calculateResource(pod)
    			if !reflect.DeepEqual(tt.expectedResource, res) {
    				t.Errorf("Test: %s expected resource: %+v, got: %+v", tt.name, tt.expectedResource, res)
    			}
    			if non0CPU != tt.expectedNon0CPU {
    				t.Errorf("Test: %s expected non0CPU: %d, got: %d", tt.name, tt.expectedNon0CPU, non0CPU)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 45.9K bytes
    - Viewed (0)
  5. pkg/controller/volume/persistentvolume/testing/testing.go

    		if action.Matches(expected.Verb, expected.Resource) {
    			// That's the action we're waiting for, remove it from injectedErrors
    			r.errors = append(r.errors[:i], r.errors[i+1:]...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/topologymanager/policy_single_numa_node_test.go

    func TestPolicySingleNumaNodeFilterHints(t *testing.T) {
    	tcases := []struct {
    		name              string
    		allResources      [][]TopologyHint
    		expectedResources [][]TopologyHint
    	}{
    		{
    			name:              "filter empty resources",
    			allResources:      [][]TopologyHint{},
    			expectedResources: [][]TopologyHint(nil),
    		},
    		{
    			name: "filter hints with nil socket mask 1/2",
    			allResources: [][]TopologyHint{
    				{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 09:45:25 UTC 2022
    - 4.6K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/ops/gen/cpp/cpp_generator_test.cc

      string expected_source;
      string source_file_name = io::JoinPath(golden_dir, "testing_ops.cc.golden");
      TF_CHECK_OK(ReadFileToString(env, source_file_name, &expected_source));
    
      // Remove carriage returns (for Windows)
      expected_header.erase(
          std::remove(expected_header.begin(), expected_header.end(), '\r'),
          expected_header.end());
      expected_source.erase(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 18 17:02:28 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  8. cmd/namespace-lock_test.go

    	currentSource := func() string { return getSource(2) }
    	gotSource := currentSource()
    	// Hard coded line number, 35, in the "expectedSource" value
    	expectedSource := "[namespace-lock_test.go:35:TestGetSource()]"
    	if gotSource != expectedSource {
    		t.Errorf("expected : %s, got : %s", expectedSource, gotSource)
    	}
    }
    
    // Test lock race
    func TestNSLockRace(t *testing.T) {
    	t.Skip("long test skip it")
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  9. pkg/adsc/adsc_test.go

    	tests := []struct {
    		desc              string
    		resources         []*anypb.Any
    		expectedResources [][]string
    	}{
    		{
    			desc: "create-resources",
    			resources: []*anypb.Any{
    				constructResource("foo1", "foo1.bar.com", "192.1.1.1", "1"),
    				constructResource("foo2", "foo2.bar.com", "192.1.1.2", "1"),
    			},
    			expectedResources: [][]string{
    				{"foo1", "foo1.bar.com", "192.1.1.1"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/api/meta/restmapper_test.go

    			if err != nil {
    				t.Errorf("%s: unexpected error: %v", tcName, err)
    				continue
    			}
    			if !reflect.DeepEqual(testCase.ExpectedResources, actualResources) {
    				t.Errorf("%s: expected %v, got %v", tcName, testCase.ExpectedResources, actualResources)
    			}
    
    			singleResource, err := mapper.ResourceFor(partialResource)
    			if err == nil && len(testCase.ExpectedResourceErr) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Nov 01 08:38:57 UTC 2020
    - 28.9K bytes
    - Viewed (0)
Back to top