Detach legacy model mounts and migrate verified GGUF references
This commit is contained in:
1 parent
08e70c9113
commit
8cefa0b043
7 files changed
+260
-7
No files matched your search
+2
-2
@@ -14,7 +14,7 @@ class InstallTests(unittest.TestCase):
|
||||
root=Path(d);(root/'deploy').mkdir();(root/'deploy/Dockerfile.app-update').write_text('COPY app/ /app/');(root/'server.py').write_text('approved');(root/'private-token.txt').write_text('not-approved')
|
||||
def check(*args,**kwargs):
|
||||
context=Path(args[-1]);self.assertEqual((context/'app/server.py').read_text(),'approved');self.assertFalse((context/'app/private-token.txt').exists())
|
||||
with patch.object(installer,'ROOT',root),patch.object(installer,'FILES',['server.py','deploy/Dockerfile.app-update']),patch.object(installer,'run',side_effect=check):installer.build('runtime:existing')
|
||||
with patch.object(installer,'ROOT',root),patch.object(installer,'FILES',['server.py','deploy/Dockerfile.app-update']),patch.object(installer,'compact_runtime_image',side_effect=lambda image:image),patch.object(installer,'run',side_effect=check):installer.build('runtime:existing')
|
||||
def test_refuses_foreign_container(self):
|
||||
with patch.object(installer,'inspect',return_value={'Config':{'Labels':{}}}):
|
||||
with self.assertRaises(RuntimeError):installer.owned('athena-deck-test',Path('/opt/test'))
|
||||
@@ -47,7 +47,7 @@ class InstallTests(unittest.TestCase):
|
||||
self.assertTrue(all('mike-ai' not in ' '.join(c) for c in calls))
|
||||
def test_standalone_never_attempts_ssh(self):
|
||||
with patch.dict(os.environ,{'DECK_NETWORK_MODE':'disabled'}):client=NetworkClient()
|
||||
with patch('network.client.subprocess.run') as remote:
|
||||
with patch('network.client.request') as remote:
|
||||
self.assertFalse(client.status()['install_supported'])
|
||||
with self.assertRaises(ValueError):client.call('connect')
|
||||
with self.assertRaises(ValueError):client.install('x'*16,'y'*32)
|
||||
|
||||
Reference in new issue
Block a user