Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for keyExists (0.27 sec)

  1. pkg/apis/core/v1/helper/helpers_test.go

    			},
    			terms:  []v1.NodeSelectorTerm{},
    			exists: false,
    		},
    	}
    	for _, test := range tests {
    		keyExists := NodeSelectorRequirementKeysExistInNodeSelectorTerms(test.reqs, test.terms)
    		if test.exists != keyExists {
    			t.Errorf("test %s failed. Expected %v but got %v", test.name, test.exists, keyExists)
    		}
    	}
    }
    
    func TestHugePageUnitSizeFromByteSize(t *testing.T) {
    	tests := []struct {
    		size     int64
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 23:03:54 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/dryrun_test.go

    	}
    
    	err = s.Create(context.Background(), "key", obj, out, 0, true)
    	if e, ok := err.(*storage.StorageError); !ok || e.Code != storage.ErrCodeKeyExists {
    		t.Errorf("Expected KeyExists error: %v", err)
    	}
    
    }
    
    func TestDryRunUpdateMissingObjectFails(t *testing.T) {
    	s, destroy := NewDryRunnableTestStorage(t)
    	defer destroy()
    
    	obj := UnstructuredOrDie(`{"kind": "Pod"}`)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  3. pkg/kubelet/config/file_linux.go

    		if err != nil {
    			return fmt.Errorf("can't process config file %q: %v", e.fileName, err)
    		}
    		return s.store.Add(pod)
    	case podDelete:
    		if objKey, keyExist := s.fileKeyMapping[e.fileName]; keyExist {
    			pod, podExist, err := s.store.GetByKey(objKey)
    			if err != nil {
    				return err
    			}
    			if !podExist {
    				return fmt.Errorf("the pod with key %s doesn't exist in cache", objKey)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 17:27:26 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. test-site/activator-launch-1.3.2.jar

    <clinit>(); public static BooleanProp valueIsTrue(String); public static BooleanProp keyExists(String); private void BooleanProp$(); } scala/sys/BooleanProp$$anonfun$valueIsTrue$1.class package scala.sys; public final synchronized class BooleanProp$$anonfun$valueIsTrue$1 extends scala.runtime.AbstractFunction1 implements scala.Serializable { public void BooleanProp$$anonfun$valueIsTrue$1(); } scala/sys/BooleanProp$$anonfun$keyExists$1.class package scala.sys; public final synchronized class BooleanProp$$anonfun$keyExists$1...
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Mon Apr 20 08:41:37 UTC 2015
    - 1.2M bytes
    - Viewed (1)
Back to top