uploadtestserver

command
v0.68.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2026 License: MIT Imports: 41 Imported by: 0

Documentation

Overview

Command uploadtestserver serves the media upload and read APIs over an isolated MinIO/RGW namespace for the browser SDK's integration tests (sdk/ui/test) and e2e specs. It reads the CONTENTKIT_TEST_S3_* variables, presigns for -public (a proxy the test controls), prints "READY <url> <namespace>" and runs until stdin closes. CONTENTKIT_TEST_S3_BUCKET selects an existing bucket; cleanup removes only the test namespace. CONTENTKIT_TEST_URL supplies PostgreSQL for the real recovery journal and manifest lock; the fixture migrates and drops its own isolated schema.

/upload/...            the upload API; X-Test-Actor names the caller ("reader" may not upload)
/upload-on-upload/...  the same with ProcessOnUpload
/read/...              the read API; "reader" reads as a viewer, everyone else as an editor
/ck/...                contentkit.Runtime.Handler: content, media, codes, taxonomy (content.go);
                       signed-out visitors comment, react and vote
/ck-members/...        the same over the same schema with the default: signed-out visitors only read
GET /object?kind&id&path|public   {"size","sha256"} of a stored file: an
                       item's file by path (or stem), or a public name

It has no libvips or ffmpeg: a stand-in worker (standIn) processes items.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL