uniugm/admin/lib/dfs/dfs_test.go
2025-07-09 10:55:26 +08:00

20 lines
392 B
Go

package dfs
import (
"log"
"testing"
)
func TestDfs(t *testing.T) {
secretId := "AKIDqZ6SbXGsX6UffS4VnskRvEQXWLzQ2Xpu"
secretKey := "BDBlGajfQ2ShjZCbnv581jEZiy3vZ4MR"
region := "ap-chengdu"
cosClient := NewDfsCos(secretId, secretKey, "tools-1359624709", region)
err := cosClient.PutObj("/test", []byte("hello"))
if err != nil {
panic(err)
}
log.Printf("file content put ok")
}