ConusAI vendor v0.1.0-dev.20261016+23adf59b
This commit is contained in:
parent
0da8a2a81b
commit
83fe7877fa
@@ -3,11 +3,12 @@ import { describe, expect, it } from 'vitest'
|
||||
|
||||
// The deployer's default health probe is "/" (deploy_image.rs), which renders
|
||||
// this app's dashboard; the template must ship its real health route in
|
||||
// .conusai.yaml (schema: crates/conusai-repo-config, `health.path`).
|
||||
describe('.conusai.yaml', () => {
|
||||
const yaml = readFileSync(new URL('../.conusai.yaml', import.meta.url), 'utf8')
|
||||
// conusai.json (schema: crates/conusai-presets/src/repo_config.rs,
|
||||
// `health_check.path`).
|
||||
describe('conusai.json', () => {
|
||||
const config = JSON.parse(readFileSync(new URL('../conusai.json', import.meta.url), 'utf8'))
|
||||
|
||||
it('declares the health check path the app actually serves', () => {
|
||||
expect(yaml).toMatch(/^health:\n(\s{2}.*\n)*\s{2}path: \/api\/health\s*$/m)
|
||||
expect(config.health_check.path).toBe('/api/health')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user