feat: normaliser les URL recette par entité
This commit is contained in:
@@ -22,7 +22,7 @@ jobs:
|
||||
- name: Health check
|
||||
run: |
|
||||
sleep 30
|
||||
STATUS=$(curl -s -o /dev/null -w "%{http_code}" https://veille.santinova-soft.org)
|
||||
STATUS=$(curl -s -o /dev/null -w "%{http_code}" https://veille-itinova.santinova-soft.org)
|
||||
echo "HTTP status: $STATUS"
|
||||
if [ "$STATUS" != "200" ]; then
|
||||
echo "❌ Health check failed (HTTP $STATUS)"
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
- name: Health check
|
||||
run: |
|
||||
sleep 30
|
||||
STATUS=$(curl -s -o /dev/null -w "%{http_code}" https://veille.recette.santinova-soft.org)
|
||||
STATUS=$(curl -s -o /dev/null -w "%{http_code}" https://veille-itinova.recette.santinova-soft.org)
|
||||
echo "HTTP status: $STATUS"
|
||||
if [ "$STATUS" != "200" ]; then
|
||||
echo "❌ Health check failed (HTTP $STATUS)"
|
||||
|
||||
4
app.json
4
app.json
@@ -6,8 +6,8 @@
|
||||
"activeConfigurationPath": "/api/ai/active-configuration"
|
||||
},
|
||||
"urls": {
|
||||
"recette": "https://veille.recette.santinova-soft.org",
|
||||
"prod": "https://veille.santinova-soft.org"
|
||||
"recette": "https://veille-itinova.recette.santinova-soft.org",
|
||||
"prod": "https://veille-itinova.santinova-soft.org"
|
||||
},
|
||||
"containerName": "veille-reglementaire-recette",
|
||||
"image": "images/veille-reglementaire.png",
|
||||
|
||||
@@ -25,8 +25,8 @@ services:
|
||||
- AZURE_AD_CLIENT_ID=f496da82-e18f-4567-bf05-8551ae6669b2
|
||||
- AZURE_AD_CLIENT_SECRET=d.T8Q~RR9iobI9bin2hqecoBWDjvyD7I11U5QcPR
|
||||
- AZURE_AD_TENANT_ID=487d0a81-de35-44ce-8847-03bb74ec553e
|
||||
- AZURE_AD_REDIRECT_URI=https://veille.recette.santinova-soft.org/api/auth/azure/callback
|
||||
- REFERENTIEL_IA_BASE_URL=${REFERENTIEL_IA_BASE_URL:?REFERENTIEL_IA_BASE_URL requis}
|
||||
- AZURE_AD_REDIRECT_URI=https://veille-itinova.recette.santinova-soft.org/api/auth/azure/callback
|
||||
- REFERENTIEL_IA_BASE_URL=https://referentiel-ia-santinova.recette.santinova-soft.org
|
||||
- REFERENTIEL_IA_TOKEN=${REFERENTIEL_IA_TOKEN:?REFERENTIEL_IA_TOKEN requis}
|
||||
- REFERENTIEL_IA_APP_SLUG=${REFERENTIEL_IA_APP_SLUG:?REFERENTIEL_IA_APP_SLUG requis}
|
||||
depends_on:
|
||||
@@ -38,7 +38,7 @@ services:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=web"
|
||||
- "traefik.http.routers.veille-recette-secure.entrypoints=websecure"
|
||||
- "traefik.http.routers.veille-recette-secure.rule=Host(`veille.recette.santinova-soft.org`)"
|
||||
- "traefik.http.routers.veille-recette-secure.rule=Host(`veille.recette.santinova-soft.org`) || Host(`veille-itinova.recette.santinova-soft.org`)"
|
||||
- "traefik.http.routers.veille-recette-secure.service=veille-recette-svc"
|
||||
- "traefik.http.routers.veille-recette-secure.tls=true"
|
||||
- "traefik.http.routers.veille-recette-secure.tls.certresolver=letsencrypt"
|
||||
|
||||
@@ -15,7 +15,7 @@ const recommendation = {
|
||||
|
||||
describe("client Référentiel IA", () => {
|
||||
it("résout le moteur du Référentiel puis transmet son slug exact", async () => {
|
||||
ENV.aiReferentielUrl = "https://referentiel-ia.recette.santinova-soft.org";
|
||||
ENV.aiReferentielUrl = "https://referentiel-ia-santinova.recette.santinova-soft.org";
|
||||
ENV.aiReferentielToken = "token-de-test";
|
||||
ENV.aiReferentielAppSlug = "veille-reglementaire";
|
||||
const fetcher = vi.fn()
|
||||
@@ -42,7 +42,7 @@ describe("client Référentiel IA", () => {
|
||||
});
|
||||
|
||||
it("refuse une décision rattachée à une autre application", async () => {
|
||||
ENV.aiReferentielUrl = "https://referentiel-ia.recette.santinova-soft.org";
|
||||
ENV.aiReferentielUrl = "https://referentiel-ia-santinova.recette.santinova-soft.org";
|
||||
ENV.aiReferentielToken = "token-de-test";
|
||||
ENV.aiReferentielAppSlug = "veille-reglementaire";
|
||||
const fetcher = vi.fn().mockResolvedValue(new Response(JSON.stringify({ ...recommendation, application: { slug: "autre-app" } }), { status: 200 }));
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import { getAiEngineStatus } from "./ai-reference";
|
||||
|
||||
const config = { url: "https://referentiel-ia.recette.santinova-soft.org", token: "jeton-test", applicationSlug: "veille-reglementaire" };
|
||||
const config = { url: "https://referentiel-ia-santinova.recette.santinova-soft.org", token: "jeton-test", applicationSlug: "veille-reglementaire" };
|
||||
const decision = { application: { slug: "veille-reglementaire" }, decision: { selected: { origin: "manual", engine: { name: "Manus Forge", provider: "Manus", slug: "manus-forge" }, connection: { configured: true, model: "gemini-2.5-flash", testStatus: "success" } } } };
|
||||
|
||||
describe("statut Référentiel IA", () => {
|
||||
|
||||
Reference in New Issue
Block a user