-
Notifications
You must be signed in to change notification settings - Fork 5
Description
1、Prometheus的metrics能否增加支持认证,如果暴漏在互联网,/metrics没有认证,有点不安全
2、Grafana可以考虑给个json,可以直接导入使用
3、test_virtual_bucket_s3.py 测试发现上传总是失败,但是我用aws s3命令就可以增删改查,不知道啥原因
=== 测试列出存储桶中的对象 ===
存储桶中有 1 个对象:
- hello.txt (大小: 3 字节, 修改时间: 2025-11-01 22:29:47.998694+08:00)
✓ 列出对象成功
=== 测试上传对象 'test1.txt' ===
✗ 上传对象失败: An error occurred (403) when calling the PutObject operation: Forbidden
=== 测试上传对象 'test2.txt' ===
✗ 上传对象失败: An error occurred (403) when calling the PutObject operation: Forbidden
=== 测试上传对象 'test3.txt' ===
✗ 上传对象失败: An error occurred (403) when calling the PutObject operation: Forbidden
=== 测试上传对象 'folder/test4.txt' ===
✗ 上传对象失败: An error occurred (403) when calling the PutObject operation: Forbidden
=== 测试上传对象 'folder/subfolder/test5.txt' ===
✗ 上传对象失败: An error occurred (403) when calling the PutObject operation: Forbidden
=== 测试列出存储桶中的对象 ===
存储桶中有 1 个对象:
- hello.txt (大小: 3 字节, 修改时间: 2025-11-01 22:29:47.998694+08:00)
✓ 列出对象成功
=== 测试分片上传 'multipart_test.txt' ===
分片 1 大小: 5.0 MiB ✓
分片 2 大小: 5.0 MiB ✓
最后分片大小: 1.0 MiB (允许小于5MiB)
初始化分片上传成功, UploadId: AHMHFnOkJWJEdf_0SK8MCGuMYl-_nVJCM2mRyBPeZs_HLz5dYAXgH_0FfsLfXZBJ8JAy9oSU0z801QDb0cNsKB4fG6IAigdRLwUxt9SXubj1z6EYLgS-koDGx7xGTxY1IcOI6wXl77EwoxEBHIQWvay7J6CS0ZZZgn3vdHgYdQFjWfAYNVI0xxfME0ev16lZ1VPB84tv-yVkgXW6lgfO7l-6eV-9f-bK9GPAkkLS6hh7JBfoz63Tjs1QWOOX1jE5Z5a-qwPjmn_y0tnr1LiD_30M0-A4R8r2C7kn-DM6k9sQvmIE7gN_Ua6R8_qbhVUSk4aiZ6wNVJDGeZ0mD9WI0wo
正在上传分片 1 (5.0 MiB)...
✗ 分片上传失败: An error occurred (403) when calling the UploadPart operation: Forbidden
=== 测试对象版本控制 'test1.txt' ===
没有找到版本信息
✓ 版本控制测试成功
=== 测试大文件操作 ===
=== 测试上传对象 'large_file_1762013100.txt' ===
✗ 上传对象失败: An error occurred (403) when calling the PutObject operation: Forbidden
=== 测试删除对象 'test1.txt' ===
✓ 删除对象成功
=== 测试删除对象 'test2.txt' ===
✓ 删除对象成功
=== 测试删除对象 'test3.txt' ===
✓ 删除对象成功
=== 测试删除对象 'folder/test4.txt' ===
✓ 删除对象成功
=== 测试删除对象 'folder/subfolder/test5.txt' ===
✓ 删除对象成功
=== 测试删除对象 'multipart_test.txt' ===
✓ 删除对象成功
=== 测试列出存储桶中的对象 ===
存储桶中有 1 个对象:
- hello.txt (大小: 3 字节, 修改时间: 2025-11-01 22:29:47.998694+08:00)
✓ 列出对象成功
============================================================
测试结果汇总
列出存储桶 ✓ 通过
检查存储桶 ✓ 通过
初始列出对象 ✓ 通过
上传 test1.txt ✗ 失败
上传 test2.txt ✗ 失败
上传 test3.txt ✗ 失败
上传 folder/test4.txt ✗ 失败
上传 folder/subfolder/test5.txt ✗ 失败
列出所有对象 ✓ 通过
分片上传 ✗ 失败
版本控制 ✓ 通过
大文件操作 ✗ 失败
清理测试对象 ✓ 通过
最终列出对象 ✓ 通过
总计: 14 个测试
通过: 7 个
失败: 7 个
❌ 有 7 个测试失败,请检查配置和服务状态。