Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for nonexistent (0.2 sec)

  1. istioctl/pkg/proxystatus/proxystatus_test.go

    		},
    		{ // case 2: supplying nonexistent pod name should result in error with flag
    			args:          strings.Split("deployment/random-gibberish", " "),
    			wantException: true,
    		},
    		{ // case 3: supplying nonexistent deployment name
    			args:          strings.Split("deployment/random-gibberish.default", " "),
    			wantException: true,
    		},
    		{ // case 4: supplying nonexistent deployment name in nonexistent namespace
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  2. istioctl/pkg/proxyconfig/proxyconfig_test.go

    		},
    		{ // supplying nonexistent deployment name should result in error
    			args:           strings.Split("clusters deployment/random-gibberish", " "),
    			expectedString: `"deployment/random-gibberish" does not refer to a pod`,
    			wantException:  true,
    		},
    		{ // supplying nonexistent deployment name in nonexistent namespace
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Apr 10 21:51:29 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  3. internal/config/certs_test.go

    		t.Fatalf("Unable to create temporary file. %v", err)
    	}
    	defer os.Remove(tempFile5)
    
    	testCases := []struct {
    		certFile          string
    		expectedResultLen int
    		expectedErr       bool
    	}{
    		{"nonexistent-file", 0, true},
    		{tempFile1, 0, true},
    		{tempFile2, 0, true},
    		{tempFile3, 0, true},
    		{tempFile4, 1, false},
    		{tempFile5, 2, false},
    	}
    
    	for _, testCase := range testCases {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 21.6K bytes
    - Viewed (0)
  4. cmd/xl-storage_test.go

    // TestXLStorages xlStorage.getDiskInfo()
    func TestXLStorageGetDiskInfo(t *testing.T) {
    	path := t.TempDir()
    
    	testCases := []struct {
    		diskPath    string
    		expectedErr error
    	}{
    		{path, nil},
    		{"/nonexistent-dir", errDiskNotFound},
    	}
    
    	// Check test cases.
    	for _, testCase := range testCases {
    		if _, err := getDiskInfo(testCase.diskPath); err != testCase.expectedErr {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  5. cmd/bucket-lifecycle_test.go

    		{
    			// non-existent storage-class
    			xml:         []byte(`<LifecycleConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Rule><ID>rule</ID><Prefix /><Status>Enabled</Status><Transition><Days>1</Days><StorageClass>"NONEXISTENT"</StorageClass></Transition></Rule></LifecycleConfiguration>`),
    			expectedErr: errInvalidStorageClass,
    		},
    		{
    			// no transition rule
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue May 31 09:57:57 GMT 2022
    - 7K bytes
    - Viewed (0)
  6. cmd/object-handlers_test.go

    		},
    		// Test case - 2.
    		// Abort non-existing upload ID.
    		{
    			bucket:             bucketName,
    			object:             objectName,
    			uploadID:           "nonexistent-upload-id",
    			accessKey:          credentials.AccessKey,
    			secretKey:          credentials.SecretKey,
    			expectedRespStatus: http.StatusNotFound,
    		},
    		// Test case - 3.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 160K bytes
    - Viewed (0)
  7. cni/pkg/install/cniconfig_test.go

    		name            string
    		dir             string
    		inFilename      string
    		outFilename     string
    		fileContents    string
    		expectedFailure bool
    	}{
    		{
    			name:            "inexistent directory",
    			dir:             "/inexistent/directory",
    			expectedFailure: true,
    		},
    		{
    			name:            "empty directory",
    			dir:             tempDir,
    			expectedFailure: true,
    		},
    		{
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed May 17 02:22:22 GMT 2023
    - 15.4K bytes
    - Viewed (0)
  8. cmd/erasure-object.go

    	if bucket == minioMetaBucket {
    		return false
    	}
    	switch {
    	// Check if we have a read quorum issue
    	case errors.Is(err, errErasureReadQuorum):
    		return true
    	// Check if the object is inexistent in most disks but not all of them
    	case errors.Is(err, errFileNotFound) || errors.Is(err, errFileVersionNotFound):
    		for i := range errs {
    			if errs[i] == nil {
    				return true
    			}
    		}
    	}
    	return false
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 76.3K bytes
    - Viewed (2)
  9. schema/schema.go

    		if field.DBName == "" && field.DataType != "" {
    			field.DBName = namer.ColumnName(schema.Table, field.Name)
    		}
    
    		bindName := field.BindName()
    		if field.DBName != "" {
    			// nonexistence or shortest path or first appear prioritized if has permission
    			if v, ok := schema.FieldsByDBName[field.DBName]; !ok || ((field.Creatable || field.Updatable || field.Readable) && len(field.BindNames) < len(v.BindNames)) {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Oct 10 06:50:29 GMT 2023
    - 13.7K bytes
    - Viewed (0)
Back to top