Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for mustHeadObject (0.14 sec)

  1. cmd/admin-handlers-users_test.go

    	}
    	defer r.Close()
    
    	_, err = io.Copy(io.Discard, r)
    	if err != nil {
    		c.Fatalf("user was unable to download the object: %v", err)
    	}
    }
    
    func (c *check) mustHeadObject(ctx context.Context, client *minio.Client, bucket, object string, tagCount int) {
    	c.Helper()
    
    	oinfo, err := client.StatObject(ctx, bucket, object, minio.StatObjectOptions{})
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 45.7K bytes
    - Viewed (0)
  2. cmd/sts-handlers_test.go

    		c.Fatalf("Error initializing client: %v", err)
    	}
    
    	// Validate sts creds can access the object
    	c.mustPutObjectWithTags(ctx, minioClient, bucket, object)
    	c.mustGetObject(ctx, minioClient, bucket, object)
    	c.mustHeadObject(ctx, minioClient, bucket, object, 2)
    
    	// Validate that the client can remove objects
    	if err = minioClient.RemoveObjectTagging(ctx, bucket, object, minio.RemoveObjectTaggingOptions{}); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 18:45:50 UTC 2024
    - 90K bytes
    - Viewed (0)
Back to top