Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for testpass (0.12 sec)

  1. cmd/xl-storage_test.go

    			expectedErr: errFileNameTooLong,
    		},
    	}
    
    	for i, testCase := range testCases {
    		if err := xlStorage.RenameFile(context.Background(), testCase.srcVol, testCase.srcPath, testCase.destVol, testCase.destPath); err != testCase.expectedErr {
    			t.Fatalf("TestXLStorage %d:  Expected the error to be : \"%v\", got: \"%v\".", i+1, testCase.expectedErr, err)
    		}
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 11 17:45:28 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  2. cmd/object-api-listobjects_test.go

    				resultV, err = obj.ListObjectVersions(context.Background(), testCase.bucketName,
    					testCase.prefix, testCase.marker, "", testCase.delimiter, testCase.maxKeys)
    			} else {
    				t.Log("ListObjects, bucket:", testCase.bucketName, "prefix:",
    					testCase.prefix, "marker:", testCase.marker, "delimiter:",
    					testCase.delimiter, "maxkeys:", testCase.maxKeys)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 11:07:40 UTC 2024
    - 73.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    			expectedErr: "",
    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			// only the KMSv2 feature flag is enabled
    			_, err := LoadEncryptionConfig(testContext(t), testCase.filePath, false, "")
    
    			if len(testCase.expectedErr) > 0 && !strings.Contains(errString(err), testCase.expectedErr) {
    				t.Fatalf("expected error %q, got %q", testCase.expectedErr, errString(err))
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  4. cmd/sts-handlers_test.go

    		// Init and run test on ErasureSet backend.
    		{serverType: "ErasureSet", signer: signerV4},
    	}
    	testCases := []*TestSuiteIAM{}
    	for _, bt := range baseTestCases {
    		testCases = append(testCases,
    			newTestSuiteIAM(bt, false),
    			newTestSuiteIAM(bt, true),
    		)
    	}
    	for i, testCase := range testCases {
    		etcdStr := ""
    		if testCase.withEtcdBackend {
    			etcdStr = " (with etcd backend)"
    		}
    		t.Run(
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 18:45:50 UTC 2024
    - 90K bytes
    - Viewed (0)
  5. cmd/object-api-multipart_test.go

    	}
    
    	// Validate all the test cases.
    	for i, testCase := range testCases {
    		actualInfo, actualErr := obj.PutObjectPart(context.Background(), testCase.bucketName, testCase.objName, testCase.uploadID, testCase.PartID, mustGetPutObjReader(t, bytes.NewBufferString(testCase.inputReaderData), testCase.inputDataSize, testCase.inputMd5, testCase.inputSHA256), opts)
    		// All are test cases above are expected to fail.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 77.1K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/devicemanager/manager_test.go

    		},
    	}
    
    	for _, testCase := range testCases {
    		allocDevices, err := testManager.devicesToAllocate(testCase.podUID, testCase.contName, testCase.resource, testCase.required, testCase.reusableDevices)
    		if !reflect.DeepEqual(err, testCase.expErr) {
    			t.Errorf("devicePluginManager error (%v). expected error: %v but got: %v",
    				testCase.description, testCase.expErr, err)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  7. pkg/controller/endpointslice/endpointslice_controller_test.go

    				},
    			},
    		},
    	}
    
    	for _, testcase := range testcases {
    		t.Run(testcase.name, func(t *testing.T) {
    			client, esController := newController(t, []string{"node-1"}, time.Duration(0))
    
    			for _, pod := range testcase.pods {
    				esController.podStore.Add(pod)
    			}
    			esController.serviceStore.Add(testcase.service)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  8. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest.h

    };
    
    // A test case, which consists of a vector of TestInfos.
    //
    // TestCase is not copyable.
    class GTEST_API_ TestCase {
     public:
      // Creates a TestCase with the given name.
      //
      // TestCase does NOT have a default constructor.  Always use this
      // constructor to create a TestCase object.
      //
      // Arguments:
      //
      //   name:         name of the test case
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 86.4K bytes
    - Viewed (0)
  9. pkg/registry/core/pod/strategy_test.go

    		},
    	}
    	for _, testCase := range testCases {
    		m := MatchPod(labels.Everything(), testCase.fieldSelector)
    		result, err := m.Matches(testCase.in)
    		if err != nil {
    			t.Errorf("Unexpected error %v", err)
    		}
    		if result != testCase.expectMatch {
    			t.Errorf("Result %v, Expected %v, Selector: %v, Pod: %v", result, testCase.expectMatch, testCase.fieldSelector.String(), testCase.in)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    		{"0", "0", 0},
    		{"100m", "50m", 1},
    		{"50m", "100m", -1},
    		{"10000T", "100Gi", 1},
    	}
    	for _, testCase := range table {
    		q1 := MustParse(testCase.x)
    		q2 := MustParse(testCase.y)
    		if result := q1.Cmp(q2); result != testCase.expect {
    			t.Errorf("X: %v, Y: %v, Expected: %v, Actual: %v", testCase.x, testCase.y, testCase.expect, result)
    		}
    	}
    	// Test when i is {0,0}
    	table2 := []struct {
    		x      *inf.Dec
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
Back to top