Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 159 for newUser (0.44 sec)

  1. tests/create_test.go

    	user.UpdatedAt = curTime
    	DB.Save(&user)
    
    	AssertEqual(t, user.CreatedAt, curTime)
    	AssertEqual(t, user.UpdatedAt, curTime)
    
    	var newUser User
    	DB.First(&newUser, user.ID)
    
    	AssertEqual(t, newUser.CreatedAt, curTime)
    	AssertEqual(t, newUser.UpdatedAt, curTime)
    }
    
    func TestCreateWithNowFuncOverride(t *testing.T) {
    	user := User{Name: "CreateUserTimestampOverride"}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  2. tests/associations_test.go

    		t.Fatalf("invalid %v count %v, expects: %v got %v", name, reason, result, count)
    	}
    
    	var newUser User
    	if user, ok := data.(User); ok {
    		DB.Find(&newUser, "id = ?", user.ID)
    	} else if user, ok := data.(*User); ok {
    		DB.Find(&newUser, "id = ?", user.ID)
    	}
    
    	if newUser.ID != 0 {
    		if count := DB.Model(&newUser).Association(name).Count(); count != result {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Feb 08 08:29:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  3. src/os/user/lookup_windows.go

    			continue
    		}
    		sid, err := lookupGroupName(windows.UTF16PtrToString(entry.Name))
    		if err != nil {
    			return nil, err
    		}
    		sids = append(sids, sid)
    	}
    	return sids, nil
    }
    
    func newUser(uid, gid, dir, username, domain string) (*User, error) {
    	domainAndUser := domain + `\` + username
    	name, e := lookupFullName(domain, username, domainAndUser)
    	if e != nil {
    		return nil, e
    	}
    	u := &User{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 16:42:41 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  4. pkg/registry/certificates/certificates/strategy.go

    	preserveConditionInstances(newCSR, oldCSR, certificates.CertificateApproved)
    	preserveConditionInstances(newCSR, oldCSR, certificates.CertificateDenied)
    
    	populateConditionTimestamps(newCSR, oldCSR)
    }
    
    // preserveConditionInstances copies instances of the specified condition type from oldCSR to newCSR.
    // or returns false if the newCSR added or removed instances
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 18 21:41:43 UTC 2022
    - 11.4K bytes
    - Viewed (0)
  5. pkg/apis/certificates/v1beta1/defaults_test.go

    		"defaults for kubelet-serving": {
    			req:    newCSR(kubeletServerPEMOptions),
    			usages: kubeletServerUsages,
    			exp:    true,
    		},
    		"defaults without key encipherment for kubelet-serving": {
    			req:    newCSR(kubeletServerPEMOptions),
    			usages: kubeletServerUsagesNoRSA,
    			exp:    true,
    		},
    		"does not default to kube-apiserver-client-kubelet if org is not 'system:nodes'": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 27 08:04:25 UTC 2022
    - 16.9K bytes
    - Viewed (0)
  6. pkg/apis/certificates/validation/validation.go

    }
    
    func ValidateCertificateSigningRequestUpdate(newCSR, oldCSR *certificates.CertificateSigningRequest) field.ErrorList {
    	opts := getValidationOptions(newCSR, oldCSR)
    	return validateCertificateSigningRequestUpdate(newCSR, oldCSR, opts)
    }
    
    func ValidateCertificateSigningRequestStatusUpdate(newCSR, oldCSR *certificates.CertificateSigningRequest) field.ErrorList {
    	opts := getValidationOptions(newCSR, oldCSR)
    	opts.allowSettingCertificate = true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  7. cmd/object-api-options.go

    			if err != nil {
    				return
    			}
    			if sse, err = encrypt.NewSSEC(clientKey[:]); err != nil {
    				return
    			}
    			opts.ServerSideEncryption = encrypt.SSECopy(sse)
    			return
    		}
    		return
    	}
    
    	if crypto.SSEC.IsRequested(header) {
    		clientKey, err = crypto.SSEC.ParseHTTP(header)
    		if err != nil {
    			return
    		}
    		if sse, err = encrypt.NewSSEC(clientKey[:]); err != nil {
    			return
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/lastappliedmanager_test.go

          labels:
            app: my-new-label # allowed: update-label
        spec:
          containers:
          - name: my-c
            image: my-image-new # NOT allowed: update image
    `),
    			expectConflictSet: fieldpath.NewSet(
    				fieldpath.MakePathOrDie("metadata", "labels", "app"),
    				fieldpath.MakePathOrDie("spec", "replicas"),
    				fieldpath.MakePathOrDie("spec", "template", "spec", "containers", fieldpath.KeyByFields("name", "my-c"), "image"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 20K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/macho_combine_dwarf.go

    		if err != nil {
    			return nil, nil, err
    		}
    
    		newSec := *sect
    		newSec.Offset = uint32(dwarfseg.Offset) + uint32(buf.Len())
    		newSec.Addr = dwarfseg.Addr + uint64(buf.Len())
    		if compressed {
    			newSec.Name = "__z" + sect.Name[2:]
    			newSec.Size = uint64(len(contents))
    		}
    		sects = append(sects, &newSec)
    		buf.Write(contents)
    	}
    	return sects, buf.Bytes(), nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/core/BuildScanAutoApplyIntegrationTest.groovy

                executer.expectDocumentedDeprecationWarning("Gradle Enterprise plugin $version has been deprecated. Starting with Gradle 9.0, only Gradle Enterprise plugin 3.13.1 or newer is supported. Consult the upgrading guide for further information: https://docs.gradle.org/current/userguide/upgrading_version_8.html#unsupported_ge_plugin_3.13")
            }
    
            and:
            runBuildWithScanRequest()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 08:50:27 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top