feat: add config for workflow domain (#1847)

This commit is contained in:
Zhj
2025-08-27 17:04:42 +08:00
committed by GitHub
parent 5562800958
commit 77e1931494
12 changed files with 135 additions and 48 deletions

View File

@@ -18,6 +18,7 @@ package adaptor
import (
"context"
"github.com/coze-dev/coze-studio/backend/domain/workflow/config"
"io"
"net"
"net/http"
@@ -752,6 +753,15 @@ func TestCodeAndPluginNodes(t *testing.T) {
defer ctrl.Finish()
mockCodeRunner := mockcode.NewMockRunner(ctrl)
mockey.Mock(code.GetCodeRunner).Return(mockCodeRunner).Build()
mockRepo := mockWorkflow.NewMockRepository(ctrl)
mockRepo.EXPECT().GetNodeOfCodeConfig().Return(&config.NodeOfCodeConfig{
SupportThirdPartModules: []string{"httpx", "numpy"},
}).AnyTimes()
mockey.Mock(workflow.GetRepository).Return(mockRepo).Build()
mockCodeRunner.EXPECT().Run(gomock.Any(), gomock.Any()).Return(&coderunner.RunResponse{
Result: map[string]any{
"key0": "value0",