Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for usersMap (0.05 sec)

  1. cmd/admin-handlers-users_test.go

    	if err != nil {
    		c.Fatalf("Unable to set user: %v", err)
    	}
    
    	// 2. Check new user appears in listing
    	usersMap, err := s.adm.ListUsers(ctx)
    	if err != nil {
    		c.Fatalf("error listing: %v", err)
    	}
    	v, ok := usersMap[accessKey]
    	if !ok {
    		c.Fatalf("user not listed: %s", accessKey)
    	}
    	c.Assert(v.Status, madmin.AccountEnabled)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  2. tests/scan_test.go

    		Manager: &User{
    			Name:    "TestScanToEmbedded_1_m1",
    			Manager: &User{Name: "TestScanToEmbedded_1_m1_m1"},
    		},
    	}
    	DB.Create(&user)
    
    	type UserScan struct {
    		ID        uint
    		Name      string
    		ManagerID *uint
    	}
    	var user2 UserScan
    	err := DB.Raw("SELECT * FROM users INNER JOIN users Manager ON users.manager_id = Manager.id WHERE users.id = ?", user.ID).Scan(&user2).Error
    	AssertEqual(t, err, nil)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top