Allow portable drafts to publish to the connected server

This commit is contained in:
2026-10-10 02:18:48 +01:00
parent c74f7f3b41
commit 4cae37f950
12 changed files with 242 additions and 20 deletions
+2 -2
View File
@@ -214,13 +214,13 @@ func TestCLIAuthorOpenCodeReferencesGlobalSkillAndLeavesDraft(t *testing.T) {
}
}
func TestCLIBoundedFilesServerMismatchAndNoninteractiveGuards(t *testing.T) {
func TestCLIBoundedFilesPortableDraftsAndNoninteractiveGuards(t *testing.T) {
run, _, url := setup(t)
d, err := draft.Create("test", pipeline.Template([]string{"worker"}, true), url+"-other", true, 0)
if err != nil {
t.Fatal(err)
}
if _, err = run("submit", d.Path); err == nil || !strings.Contains(err.Error(), "belongs") {
if _, err = run("submit", d.Path); err != nil {
t.Fatal(err)
}
os.WriteFile(d.Path, bytes.Repeat([]byte("x"), (1<<20)+1), 0600)