Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for MyUuid (0.1 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. 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)
  4. 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