github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/ais/test/smoke_test.go (about)

     1  // Package integration_test.
     2  /*
     3   * Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
     4   */
     5  package integration_test
     6  
     7  import (
     8  	"testing"
     9  
    10  	"github.com/NVIDIA/aistore/cmn/cos"
    11  	"github.com/NVIDIA/aistore/core/meta"
    12  )
    13  
    14  func TestSmoke(t *testing.T) {
    15  	objSizes := [3]uint64{3 * cos.KiB, 19 * cos.KiB, 77 * cos.KiB}
    16  
    17  	runProviderTests(t, func(t *testing.T, bck *meta.Bck) {
    18  		for _, objSize := range objSizes {
    19  			name := "size:" + cos.ToSizeIEC(int64(objSize), 0)
    20  			t.Run(name, func(t *testing.T) {
    21  				m := ioContext{
    22  					t:        t,
    23  					bck:      bck.Clone(),
    24  					num:      100,
    25  					fileSize: objSize,
    26  					prefix:   "smoke/obj-",
    27  				}
    28  
    29  				if bck.IsAIS() || bck.IsRemoteAIS() {
    30  					m.num = 1000
    31  				}
    32  
    33  				m.init(true /*cleanup*/)
    34  
    35  				m.puts()
    36  				m.gets(nil, false)
    37  				m.del()
    38  			})
    39  		}
    40  	})
    41  }