Commit 40e3b8c9 by 叶立庆

修复测试方法

1 parent a5aa961e
......@@ -24,7 +24,7 @@ class OssConfigTest {
OssBucketProperties cfg = new OssBucketProperties();
cfg.setBucket(name);
cfg.setEndpoint(endpoint);
cfg.setRegionId("cn-shenzhen");
cfg.setRegion("cn-shenzhen");
cfg.setAccessKeyId("ak-" + name);
cfg.setAccessKeySecret("sk-" + name);
return cfg;
......@@ -34,6 +34,9 @@ class OssConfigTest {
OssProperties properties = new OssProperties();
properties.setBuckets(buckets);
properties.setDefaultBucket(defaultBucket);
// 手动触发索引建立(Spring 容器中由 afterPropertiesSet 完成),
// bucketMap 为空会导致 resolve/bucketNames 与重复/缺密钥检测全部失效
properties.rebuild();
return properties;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!