fix(deploy): 校验云执行器授权配置与稳定启动
build / build (push) Successful in 1m21s

This commit is contained in:
姚章浩
2026-10-31 04:26:54 +08:00
parent 286f1fb375
commit a50cd73423
5 changed files with 163 additions and 4 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ class DeploymentTest(unittest.TestCase):
def test_executor_mounts_socket_and_secret(self):
self.stub('id', "print('0')")
self.stub('sleep', '')
self.stub('docker', "if sys.argv[1:2] == ['inspect']: sys.exit(1)")
self.stub('docker', "if sys.argv[1:2] == ['inspect']:\n if '--format' in sys.argv: print('running 0')\n else: sys.exit(1)")
secret = self.root / 'pgpass'
secret.write_text('localhost:5432:governance:tester:example-only\n')
secret.chmod(0o600)