diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-12 17:15:03 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:16 -0300 |
| commit | 7a07e24916cd5bc762996d81aa1faf550177cd6f (patch) | |
| tree | 4530a8562fb3f068cc4340f1fab1f6c599721735 /test/web/host_fs.py | |
| parent | f9ca3fb5ba767300bec3f1fbb13fc5e6552a90e3 (diff) | |
| download | cloud9-7a07e24916cd5bc762996d81aa1faf550177cd6f.tar.gz cloud9-7a07e24916cd5bc762996d81aa1faf550177cd6f.zip | |
9web: serve prefixed sites through the composed 9P namespace
Post only the pure site/control/discovery tree, with a separate host-only adapter and no duplicate supervision. Serve websites, metadata and legacy controls through the ordinary 9P mux; retain whole-root filesystem browsing and compatibility paths. Pin public file descriptors across publication.
Add opt-in build-time HTML/CSS prefix packaging with separate atomic preview generations and unchanged JavaScript/default output. Optional compatibility ports use ?u16. Deploy all five workstation sites on [::]:8090, with /mnt/9p/9web controls. Document Plan 9 references, companion build commits, shared-origin trust and live validation.
Validated catalogue, host/FUSE, HTTP FS, mux, prefix and Chromium suites; original E2E 32 scenarios; all five live sites, blog navigation, IPv4/IPv6 and real cafe build through 9P.
Diffstat (limited to 'test/web/host_fs.py')
| -rw-r--r-- | test/web/host_fs.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/web/host_fs.py b/test/web/host_fs.py index 7a55eec..ea39cc9 100644 --- a/test/web/host_fs.py +++ b/test/web/host_fs.py @@ -137,7 +137,13 @@ def main(): eventually(lambda: b'host-build' in http(p, '/fs/_9web/sites/fixture/log')[2]) assert http(config['sites'][0]['port'])[2] == b'site still works' assert http(p, '/_cloud9/catalog.json')[0] == 200 - assert json.loads(http(p, '/_cloud9/catalog.json')[2])['namespace'] == '/_9web' + assert json.loads(http(p, '/_cloud9/catalog.json')[2])['namespace'] == '/mnt/9p/9web' + assert http(p, '/fs/mnt/9p/9web/sites/fixture/public/index.html')[2] == b'site still works' + assert http(p, '/sites/fixture/')[2] == b'site still works' + pure = Nine(str(registry/'9web')) + assert pure.list('sites') == ['fixture'] + assert pure.read('sites/fixture/public/index.html') == b'site still works' + pure.s.close() assert http(p, target+'/renamed', 'DELETE')[0] == 204 assert http(p, target, 'DELETE')[0] == 204 nine.s.close() |
