Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestAssumePVC (0.11 sec)

  1. pkg/scheduler/framework/plugins/volumebinding/assume_cache_test.go

    	pvc, err := cache.GetPVC(pvcKey)
    	if err != nil {
    		return err
    	}
    	if pvc != expectedPVC {
    		return fmt.Errorf("GetPVC() returned %p, expected %p", pvc, expectedPVC)
    	}
    	return nil
    }
    
    func TestAssumePVC(t *testing.T) {
    	logger, _ := ktesting.NewTestContext(t)
    	scenarios := map[string]struct {
    		oldPVC        *v1.PersistentVolumeClaim
    		newPVC        *v1.PersistentVolumeClaim
    		shouldSucceed bool
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 12.8K bytes
    - Viewed (0)
Back to top