Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for MyUuid (0.12 sec)

  1. tests/test_inherited_custom_class.py

            model_config = {"arbitrary_types_allowed": True}
    
            a_uuid: MyUuid
    
            @field_serializer("a_uuid")
            def serialize_a_uuid(self, v):
                return str(v)
    
        @app.get("/get_custom_class")
        def return_some_user():
            # Test that the fix also works for custom pydantic classes
            return SomeCustomClass(a_uuid=MyUuid("b8799909-f914-42de-91bc-95c819218d01"))
    
        client = TestClient(app)
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. cluster/gce/gci/configure-helper.sh

      local myuuid
      if grep -q "${device}" "${ssdmap}"; then
        #create symlink based on saved uuid
        myuuid=$(grep "${device}" "${ssdmap}" | cut -d ' ' -f 2)
      else
        # generate new uuid and add it to the map
        if ! myuuid=$(uuidgen); then
          echo "Failed to generate valid UUID with uuidgen" >&2
          exit 2
        fi
        echo "${device} ${myuuid}" >> "${ssdmap}"
      fi
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 22:07:47 UTC 2024
    - 141.1K bytes
    - Viewed (0)
  3. pkg/util/pod/pod_test.go

    			func(input v1.PodStatus) v1.PodStatus { return input },
    			true,
    			[]byte(fmt.Sprintf(`{"metadata":{"uid":"myuid"}}`)),
    		},
    		{
    			"message change",
    			func(input v1.PodStatus) v1.PodStatus {
    				input.Message = "random message"
    				return input
    			},
    			false,
    			[]byte(fmt.Sprintf(`{"metadata":{"uid":"myuid"},"status":{"message":"random message"}}`)),
    		},
    		{
    			"pod condition change",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 15:22:29 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/request/admissionreview_test.go

    	versionedObjOld := &appsv1.Deployment{ObjectMeta: metav1.ObjectMeta{ResourceVersion: "1", Name: "myname", Namespace: "myns"}}
    	userInfo := &user.DefaultInfo{
    		Name:   "myuser",
    		Groups: []string{"mygroup"},
    		UID:    "myuid",
    		Extra:  map[string][]string{"extrakey": {"value1", "value2"}},
    	}
    	attrs := admission.NewAttributesRecord(
    		internalObj.DeepCopyObject(),
    		internalObjOld.DeepCopyObject(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 16:56:12 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    		storage.SimpleUpdate(func(obj runtime.Object) (runtime.Object, error) {
    			pod := obj.(*example.Pod)
    			pod.ObjectMeta.UID = "myUID"
    			return pod, nil
    		}), nil); err != nil {
    		t.Errorf("Unexpected failure during updated: %v", err)
    	}
    
    	prec := storage.NewUIDPreconditions("myUID")
    
    	out := &example.Pod{}
    	if err := store.Delete(ctx, key, out, prec, storage.ValidateAllObjectFunc, originalPod); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
  6. pkg/controller/garbagecollector/garbagecollector_test.go

    func verifyGraphInvariants(scenario string, uidToNode map[types.UID]*node, t *testing.T) {
    	for myUID, node := range uidToNode {
    		for dependentNode := range node.dependents {
    			found := false
    			for _, owner := range dependentNode.owners {
    				if owner.UID == myUID {
    					found = true
    					break
    				}
    			}
    			if !found {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
Back to top