Mercurial
comparison mrjunejune/test/integration_test.c @ 260:1f9877b637e9
Add Copilot-powered cyberpunk JRPG chat
Integrate the production JRPG chat with Seobeo streaming, Deita persistence, and a Bazel-managed Copilot SDK and LiteLLM inference stack.
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <mrjunejune@users.noreply.github.com> |
|---|---|
| date | Wed, 05 Aug 2026 09:19:41 -0700 |
| parents | 667156fcd3e3 |
| children |
comparison
equal
deleted
inserted
replaced
| 259:667156fcd3e3 | 260:1f9877b637e9 |
|---|---|
| 392 {"/tools/markdown_to_html", 200, NULL, NULL, NULL, 0}, | 392 {"/tools/markdown_to_html", 200, NULL, NULL, NULL, 0}, |
| 393 {"/tools/file_converter", 200, NULL, NULL, NULL, 0}, | 393 {"/tools/file_converter", 200, NULL, NULL, NULL, 0}, |
| 394 {"/tools/hls_player", 200, NULL, NULL, NULL, 0}, | 394 {"/tools/hls_player", 200, NULL, NULL, NULL, 0}, |
| 395 {"/tools/latex_editor", 200, NULL, NULL, NULL, 0}, | 395 {"/tools/latex_editor", 200, NULL, NULL, NULL, 0}, |
| 396 {"/talk", 200, NULL, NULL, NULL, 0}, | 396 {"/talk", 200, NULL, NULL, NULL, 0}, |
| 397 {"/jrpg", 200, NULL, NULL, NULL, 0}, | |
| 397 }; | 398 }; |
| 398 int num_success_tests = sizeof(success_tests) / sizeof(success_tests[0]); | 399 int num_success_tests = sizeof(success_tests) / sizeof(success_tests[0]); |
| 399 | 400 |
| 400 TestCase redirect_tests[] = { | 401 TestCase redirect_tests[] = { |
| 401 {"/index.html", 301, NULL, NULL, NULL, 0}, | 402 {"/index.html", 301, NULL, NULL, NULL, 0}, |
| 403 {"/tools/index.html", 301, NULL, NULL, NULL, 0}, | 404 {"/tools/index.html", 301, NULL, NULL, NULL, 0}, |
| 404 {"/tools/markdown_to_html/index.html", 301, NULL, NULL, NULL, 0}, | 405 {"/tools/markdown_to_html/index.html", 301, NULL, NULL, NULL, 0}, |
| 405 {"/tools/file_converter/index.html", 301, NULL, NULL, NULL, 0}, | 406 {"/tools/file_converter/index.html", 301, NULL, NULL, NULL, 0}, |
| 406 {"/tools/hls_player/index.html", 301, NULL, NULL, NULL, 0}, | 407 {"/tools/hls_player/index.html", 301, NULL, NULL, NULL, 0}, |
| 407 {"/tools/latex_editor/index.html", 301, NULL, NULL, NULL, 0}, | 408 {"/tools/latex_editor/index.html", 301, NULL, NULL, NULL, 0}, |
| 409 {"/jrpg/index.html", 301, NULL, NULL, NULL, 0}, | |
| 408 }; | 410 }; |
| 409 int num_redirect_tests = sizeof(redirect_tests) / sizeof(redirect_tests[0]); | 411 int num_redirect_tests = sizeof(redirect_tests) / sizeof(redirect_tests[0]); |
| 410 | 412 |
| 411 TestCase failure_tests[] = { | 413 TestCase failure_tests[] = { |
| 412 {"/nonexistent", 404, NULL, NULL, NULL, 0}, | 414 {"/nonexistent", 404, NULL, NULL, NULL, 0}, |
| 413 {"/does/not/exist", 404, NULL, NULL, NULL, 0}, | 415 {"/does/not/exist", 404, NULL, NULL, NULL, 0}, |
| 414 {"/missing.html", 404, NULL, NULL, NULL, 0}, | 416 {"/missing.html", 404, NULL, NULL, NULL, 0}, |
| 415 {"/jrpg", 404, NULL, NULL, NULL, 0}, | 417 {"/api/inference/health", 503, NULL, NULL, NULL, 0}, |
| 416 {"/jrpg/index.html", 404, NULL, NULL, NULL, 0}, | |
| 417 }; | 418 }; |
| 418 int num_failure_tests = sizeof(failure_tests) / sizeof(failure_tests[0]); | 419 int num_failure_tests = sizeof(failure_tests) / sizeof(failure_tests[0]); |
| 419 | 420 |
| 420 for (int i = 0; i < num_success_tests; i++) | 421 for (int i = 0; i < num_success_tests; i++) |
| 421 init_test_case(&success_tests[i]); | 422 init_test_case(&success_tests[i]); |