mirror of
https://github.com/rulego/gflow-engine.git
synced 2026-12-05 16:02:03 +00:00
refactor: Actor.SuperAdmin改名WorkflowAdmin,语义对齐工作流管理员
This commit is contained in:
1 parent
6300fecc8e
commit
fa0a7a42a8
21 files changed
+51
-51
No files matched your search
@@ -316,7 +316,7 @@ func TestMultiReplica_ExecutionCacheInvalidation(t *testing.T) {
|
||||
}
|
||||
rawOld, _ := json.Marshal(def)
|
||||
proc, err := env.replicaA.GetProcessService().Deploy(context.Background(),
|
||||
service.Actor{UserID: "admin", TenantID: miTenantID, SuperAdmin: true},
|
||||
service.Actor{UserID: "admin", TenantID: miTenantID, WorkflowAdmin: true},
|
||||
&model.WfProcess{ProcessKey: "mi_cache_inval", Name: "mi_cache_inval", DefinitionJSON: string(rawOld),
|
||||
Status: string(enums.ProcessStatusActive), TenantID: miTenantID, CreatedBy: "admin"}, true)
|
||||
require.NoError(t, err, "deploy")
|
||||
@@ -332,7 +332,7 @@ func TestMultiReplica_ExecutionCacheInvalidation(t *testing.T) {
|
||||
def["ruleChain"].(map[string]interface{})["name"] = "新名"
|
||||
rawNew, _ := json.Marshal(def)
|
||||
require.NoError(t, env.replicaA.GetProcessService().Update(context.Background(),
|
||||
service.Actor{UserID: "admin", TenantID: miTenantID, SuperAdmin: true},
|
||||
service.Actor{UserID: "admin", TenantID: miTenantID, WorkflowAdmin: true},
|
||||
&model.WfProcess{ID: proc.ID, ProcessKey: proc.ProcessKey, Name: "mi_cache_inval",
|
||||
DefinitionJSON: string(rawNew), Status: string(enums.ProcessStatusActive),
|
||||
TenantID: miTenantID}), "update definition")
|
||||
|
||||
Reference in new issue
Block a user