Mount host repositories for Docker execution with host user ownership
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"git.a-wan.net/alan/pipelines/internal/stage"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -60,4 +61,8 @@ func TestClientSelectedRepositoryWorkspaceAndAudit(t *testing.T) {
|
||||
t.Fatal("invalid run directory accepted", path)
|
||||
}
|
||||
}
|
||||
missing := filepath.Join(root, "missing")
|
||||
if _, err := r.start(protocol.Message{PipelineID: items[0].ID, Version: 1, RequestKey: "missing-diagnostic", Input: map[string]any{"prompt": "task"}, Workspace: missing}); err == nil || !strings.Contains(err.Error(), missing) || !strings.Contains(err.Error(), "mount this host directory") {
|
||||
t.Fatal("missing workspace error hid requested path or Docker remedy", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user