summaryrefslogtreecommitdiff
path: root/test/web/host_fs.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/web/host_fs.py')
-rw-r--r--test/web/host_fs.py8
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()