S1-B 收口#3: storage 命名归一 minio.go→s3.go/MinIOStore→S3Store/NewMinIO→NewS3(RustFS 切换 Phase C;调用面=gateway 装配+集成测试两处)
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
)
|
||||
|
||||
func TestStorage_RustFS_S3Compat(t *testing.T) {
|
||||
s, err := storage.NewMinIO(context.Background(), "127.0.0.1:19010", "go-sms", "go-sms123456", "gosms-it", false)
|
||||
s, err := storage.NewS3(context.Background(), "127.0.0.1:19010", "go-sms", "go-sms123456", "gosms-it", false)
|
||||
if err != nil {
|
||||
t.Skipf("对象存储(19010)不可达,跳过(make up): %v", err)
|
||||
}
|
||||
@@ -31,7 +31,7 @@ func TestStorage_RustFS_S3Compat(t *testing.T) {
|
||||
t.Fatalf("Put 幂等覆盖失败: %v", err)
|
||||
}
|
||||
// 二次构造(桶已存在分支)
|
||||
if _, err := storage.NewMinIO(ctx, "127.0.0.1:19010", "go-sms", "go-sms123456", "gosms-it", false); err != nil {
|
||||
if _, err := storage.NewS3(ctx, "127.0.0.1:19010", "go-sms", "go-sms123456", "gosms-it", false); err != nil {
|
||||
t.Fatalf("桶已存在时应幂等成功: %v", err)
|
||||
}
|
||||
t.Log("RustFS S3 兼容面通过: MakeBucket 幂等/Put/覆盖写")
|
||||
|
||||
Reference in New Issue
Block a user