fix(deploy): configure outbound image OSS as an optional group

This commit is contained in:
姚章浩
2026-09-11 18:48:15 +08:00
parent 49e0789fa5
commit 6a3f505965
3 changed files with 34 additions and 1 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ func TestRDSCredentialConfiguratorPromptsForExternalDatabase(t *testing.T) {
t.Fatal(err)
}
source := string(data)
for _, required := range []string{"DATABASE_URL", "阿里云RDS", "RDS主机地址", "RDS端口", "数据库名", "数据库账号", "数据库密码", "快速问答Agent ID", "智能推理Agent ID", "getpass.getpass", "os.replace", "0o600"} {
for _, required := range []string{"DATABASE_URL", "阿里云RDS", "RDS主机地址", "RDS端口", "数据库名", "数据库账号", "数据库密码", "快速问答Agent ID", "智能推理Agent ID", "getpass.getpass", "os.replace", "0o600", "OSS整组录入", "DOBOTAI_OUTBOUND_IMAGE_OSS_ACCESS_KEY_SECRET"} {
if !strings.Contains(source, required) {
t.Errorf("RDS configurator missing %q", required)
}