Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for AttachPolicy (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. cmd/admin-handlers-users_test.go

    	v, ok := usersMap[accessKey]
    	if !ok {
    		c.Fatalf("user not listed: %s", accessKey)
    	}
    	c.Assert(v.Status, madmin.AccountEnabled)
    
    	// 3. Associate policy and check that user can access
    	_, err = s.adm.AttachPolicy(ctx, madmin.PolicyAssociationReq{
    		Policies: []string{"readwrite"},
    		User:     accessKey,
    	})
    	if err != nil {
    		c.Fatalf("unable to attach policy: %v", err)
    	}
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Oct 15 17:00:45 GMT 2025
    - 50.6K bytes
    - Click Count (0)
Back to Top