From 896c6c14cbf2c83c2d917dcab5c5d89fdf784c07 Mon Sep 17 00:00:00 2001 From: xiangning Date: Thu, 9 Jul 2026 12:52:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A5=E9=BD=90=20buildflow:form=20?= =?UTF-8?q?=E6=9D=83=E9=99=90=E7=A7=8D=E5=AD=90=20+=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E5=A4=A7=E5=B0=8F=E5=86=99=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - SeedData 补 6 个表单分享/导入导出权限码,修复架构测试 - 清理 git 索引中 workflow/Workflow 大小写重复路径 - ImServerFixture 恢复 filter-repo 误替换的测试库连接常量 --- .../platform/Infrastructure/Persistence/SeedData.cs | 7 +++++++ tests/BuildFlow.IM.Integration.Tests/ImServerFixture.cs | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/modules/platform/Infrastructure/Persistence/SeedData.cs b/src/modules/platform/Infrastructure/Persistence/SeedData.cs index a3e837e..0b53e94 100644 --- a/src/modules/platform/Infrastructure/Persistence/SeedData.cs +++ b/src/modules/platform/Infrastructure/Persistence/SeedData.cs @@ -146,6 +146,13 @@ public static class SeedData new SeedPermission(Guid.Parse("10000000-0000-0000-0000-000000000053"), "执行按钮", "buildflow:button:execute", "BuildFlow"), new SeedPermission(Guid.Parse("10000000-0000-0000-0000-000000000059"), "发布按钮", "buildflow:button:publish", "BuildFlow"), new SeedPermission(Guid.Parse("10000000-0000-0000-0000-000000000060"), "禁用按钮", "buildflow:button:disable", "BuildFlow"), + // 表单运行时扩展:分享与导入导出(端点声明见 Workflow/BuildFlow/Shares、Exports、Imports) + new SeedPermission(Guid.Parse("10000000-0000-0000-0000-000000000064"), "导出表单", "buildflow:form:export", "BuildFlow"), + new SeedPermission(Guid.Parse("10000000-0000-0000-0000-000000000065"), "导入表单", "buildflow:form:import", "BuildFlow"), + new SeedPermission(Guid.Parse("10000000-0000-0000-0000-000000000066"), "读取导入记录", "buildflow:form:import:read", "BuildFlow"), + new SeedPermission(Guid.Parse("10000000-0000-0000-0000-000000000067"), "创建表单分享", "buildflow:form:share", "BuildFlow"), + new SeedPermission(Guid.Parse("10000000-0000-0000-0000-000000000068"), "删除表单分享", "buildflow:form:share:delete", "BuildFlow"), + new SeedPermission(Guid.Parse("10000000-0000-0000-0000-000000000069"), "读取表单分享", "buildflow:form:share:read", "BuildFlow"), // 脚本函数(Scripting 模块,取代旧 buildflow:function:* 权限码) new SeedPermission(Guid.Parse("10000000-0000-0000-0000-000000000054"), "读取脚本", "scripts.read", "Scripting"), new SeedPermission(Guid.Parse("10000000-0000-0000-0000-000000000055"), "创建脚本", "scripts.create", "Scripting"), diff --git a/tests/BuildFlow.IM.Integration.Tests/ImServerFixture.cs b/tests/BuildFlow.IM.Integration.Tests/ImServerFixture.cs index 7af83c1..747915d 100644 --- a/tests/BuildFlow.IM.Integration.Tests/ImServerFixture.cs +++ b/tests/BuildFlow.IM.Integration.Tests/ImServerFixture.cs @@ -39,12 +39,12 @@ namespace BuildFlow.IM.Integration.Tests; public sealed class ImServerFixture : IAsyncLifetime { /// 本地基础设施连接串。指向独立测试库,与开发库(im_system)隔离。 - private const string PostgresConnection = "Host=localhost;Port=5432;Database=im_system_test;Username=rag;Password=REDACTED_DEV_PASSWORD"; + private const string PostgresConnection = "Host=localhost;Port=5432;Database=im_system_test;Username=rag;Password=rag123"; private const string MongoConnection = "mongodb://mongo:mongo123@localhost:27017/im_system_test?authSource=admin"; private const string RedisConnection = "localhost:6379,abortConnect=false"; /// JWT 对称密钥,与 appsettings.json 中的 Jwt:SigningKey 保持一致,使 Hub 验签通过。 - private const string SigningKey = "REDACTED_JWT_SIGNING_KEY_MIN_32_CHARS!!"; + private const string SigningKey = "RagJwtSecretKey2026MustBeAtLeast32CharsLong!"; /// 测试用固定用户:发送者 / 接收者 / 群管理员 / 局外人。 public static readonly Guid AliceId = Guid.Parse("22222222-2222-2222-2222-222222222222");