mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix order by parameter (#19849)
Upgrade builder to v0.3.11 Upgrade xorm to v1.3.1 and fixed some hidden bugs. Replace #19821 Replace #19834 Included #19850 Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
		@@ -116,12 +116,14 @@ func TestCreateUserKey(t *testing.T) {
 | 
			
		||||
 | 
			
		||||
	var newPublicKey api.PublicKey
 | 
			
		||||
	DecodeJSON(t, resp, &newPublicKey)
 | 
			
		||||
	fingerprint, err := asymkey_model.CalcFingerprint(rawKeyBody.Key)
 | 
			
		||||
	assert.NoError(t, err)
 | 
			
		||||
	unittest.AssertExistsAndLoadBean(t, &asymkey_model.PublicKey{
 | 
			
		||||
		ID:      newPublicKey.ID,
 | 
			
		||||
		OwnerID: user.ID,
 | 
			
		||||
		Name:    rawKeyBody.Title,
 | 
			
		||||
		Content: rawKeyBody.Key,
 | 
			
		||||
		Mode:    perm.AccessModeWrite,
 | 
			
		||||
		ID:          newPublicKey.ID,
 | 
			
		||||
		OwnerID:     user.ID,
 | 
			
		||||
		Name:        rawKeyBody.Title,
 | 
			
		||||
		Fingerprint: fingerprint,
 | 
			
		||||
		Mode:        perm.AccessModeWrite,
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	// Search by fingerprint
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user