* Boot a 0.0.0.0 server using the REAL auth impl (no fixed-token override) so * the password `verifyPassword` path is exercised. `KIMI_CODE_PASSWORD` is set * so the M6.3 gate passes and the password is itself a valid bearer.
()
| 262 | * so the M6.3 gate passes and the password is itself a valid bearer. |
| 263 | */ |
| 264 | async function bootPublicReal(): Promise<RunningServer> { |
| 265 | process.env['KIMI_CODE_PASSWORD'] = 'test-pw'; |
| 266 | const { lockPath, homeDir } = tmpPaths(); |
| 267 | const server = await startServer({ |
| 268 | host: '0.0.0.0', |
| 269 | port: 0, |
| 270 | lockPath, |
| 271 | insecureNoTls: true, |
| 272 | logger: pino({ level: 'silent' }), |
| 273 | coreProcessOptions: { homeDir }, |
| 274 | }); |
| 275 | running.push(server); |
| 276 | return server; |
| 277 | } |
| 278 | |
| 279 | /** Boot a 0.0.0.0 server with a deterministic fixed token. */ |
| 280 | async function bootPublicFixed(token = 'real-token'): Promise<RunningServer> { |
no test coverage detected