-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat-update-sentry-ui
- Loading branch information
Showing
70 changed files
with
2,245 additions
and
3,741 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
181 changes: 181 additions & 0 deletions
181
server/src/common/apis/apiReferentielCatalogue.fixture.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,181 @@ | ||
export const apiReferentielCatalogueFixture = { | ||
siret: "52151363000017", | ||
_meta: { | ||
anomalies: [ | ||
{ key: "500", type: "erreur", details: "[SireneApi] Request failed with status code 500", job: "collect", sources: ["sirene"], date_collecte: "2023-10-02T04:12:20.357Z" }, | ||
{ key: "ECONNRESET", type: "erreur", details: "[SireneApi] read ECONNRESET", job: "collect", sources: ["sirene"], date_collecte: "2023-06-05T04:11:07.419Z" }, | ||
{ | ||
key: "ENOTFOUND", | ||
type: "erreur", | ||
details: "[SireneApi] getaddrinfo ENOTFOUND api.insee.fr", | ||
job: "collect", | ||
sources: ["sirene"], | ||
date_collecte: "2023-05-04T04:11:39.640Z", | ||
}, | ||
{ | ||
key: "ETIMEDOUT", | ||
type: "erreur", | ||
details: "[SireneApi] connect ETIMEDOUT 143.196.255.207:443", | ||
job: "collect", | ||
sources: ["sirene"], | ||
date_collecte: "2022-10-17T12:16:47.914Z", | ||
}, | ||
], | ||
date_import: "2021-12-17T18:17:55.829Z", | ||
date_dernier_import: "2025-01-16T05:03:08.761Z", | ||
date_collecte: "2025-01-16T05:07:58.002Z", | ||
uai_probable: "0561986E", | ||
nouveau: false, | ||
}, | ||
certifications: [ | ||
{ | ||
type: "rncp", | ||
code: "RNCP28573", | ||
label: "Brevet Professionnel de la Jeunesse, de l'Éducation Populaire et du Sport - spécialité Éducateur Sportif - 8 mentions( cf liste dans base légale)", | ||
sources: ["catalogue"], | ||
date_collecte: "2025-01-09T04:44:35.642Z", | ||
}, | ||
{ | ||
type: "rncp", | ||
code: "RNCP35901", | ||
label: "Brevet professionnel de la jeunesse, de l’éducation populaire et du sport spécialité « éducateur sportif » mention parachutisme", | ||
sources: ["catalogue"], | ||
date_collecte: "2025-01-15T04:38:56.255Z", | ||
}, | ||
{ | ||
type: "rncp", | ||
code: "RNCP36248", | ||
label: "spécialité « éducateur sportif » mention «Activités aquatiques et de la natation »", | ||
sources: ["catalogue"], | ||
date_collecte: "2025-01-16T04:39:34.561Z", | ||
}, | ||
{ | ||
type: "rncp", | ||
code: "RNCP36249", | ||
label: "BP-brevet professionnel de la jeunesse, de l'éducation populaire et du sport spécialité éducateur sportif mention rugby à XV", | ||
sources: ["catalogue"], | ||
date_collecte: "2025-01-16T04:39:34.543Z", | ||
}, | ||
{ | ||
type: "rncp", | ||
code: "RNCP36957", | ||
label: "Brevet professionnel de la jeunesse, de l’éducation populaire et du sport spécialité « éducateur sportif » mention « aviron et disciplines associées »", | ||
sources: ["catalogue"], | ||
date_collecte: "2025-01-10T04:38:54.864Z", | ||
}, | ||
{ | ||
type: "rncp", | ||
code: "RNCP36958", | ||
label: "brevet professionnel de la jeunesse, de l’éducation populaire et du sport spécialité « éducateur sportif » mention « tennis de table »", | ||
sources: ["catalogue"], | ||
date_collecte: "2025-01-14T04:38:59.932Z", | ||
}, | ||
{ | ||
type: "rncp", | ||
code: "RNCP37106", | ||
label: "Brevet professionnel de la jeunesse, de l'éducation populaire et du sportspécialité « éducateur sportif » mention « activités de la forme »", | ||
sources: ["catalogue"], | ||
date_collecte: "2025-01-16T04:45:42.947Z", | ||
}, | ||
{ | ||
type: "rncp", | ||
code: "RNCP37191", | ||
label: "Brevet professionnel de la jeunesse, de l’éducation populaire et du sport spécialité « éducateur sportif » mention « activités physiques pour tous »", | ||
sources: ["catalogue"], | ||
date_collecte: "2025-01-16T04:45:46.290Z", | ||
}, | ||
{ | ||
type: "rncp", | ||
code: "RNCP37387", | ||
label: "Brevet professionnel de la jeunesse, de l’éducation populaire et du sport spécialité « éducateur sportif » mention « lutte et disciplines associées »", | ||
sources: ["catalogue"], | ||
date_collecte: "2025-01-16T04:39:34.316Z", | ||
}, | ||
{ | ||
type: "rncp", | ||
code: "RNCP37477", | ||
label: | ||
"Brevet professionnel de la jeunesse, de l’éducation populaire et du sport spécialité « éducateur sportif » mention « ski nautique-wakeboard, disciplines associées et tous supports de glisse tractés »", | ||
sources: ["catalogue"], | ||
date_collecte: "2025-01-11T04:38:59.645Z", | ||
}, | ||
{ | ||
type: "rncp", | ||
code: "RNCP39926", | ||
label: "Spécialité Animateur mention Animation socio-éducative ou culturelle", | ||
sources: ["catalogue"], | ||
date_collecte: "2025-01-16T04:30:06.597Z", | ||
}, | ||
], | ||
contacts: [ | ||
{ email: "[email protected]", confirmé: false, sources: ["catalogue"], date_collecte: "2025-01-16T04:30:06.597Z" }, | ||
{ email: "[email protected]", confirmé: false, sources: ["acce"], date_collecte: "2025-01-15T05:47:52.786Z" }, | ||
], | ||
diplomes: [ | ||
{ type: "cfd", code: "44633506", niveau: "446", label: "BP JEPS", sources: ["catalogue"], date_collecte: "2025-01-16T04:45:46.290Z" }, | ||
{ type: "cfd", code: "44633518", niveau: "446", label: "BP JEPS", sources: ["catalogue"], date_collecte: "2025-01-16T04:39:34.561Z" }, | ||
{ type: "cfd", code: "44633522", niveau: "446", label: "BP JEPS", sources: ["catalogue"], date_collecte: "2025-01-16T04:39:34.542Z" }, | ||
{ type: "cfd", code: "44633523", niveau: "446", label: "BP JEPS", sources: ["catalogue"], date_collecte: "2025-01-16T04:30:06.597Z" }, | ||
{ type: "cfd", code: "44633524", niveau: "446", label: "BP JEPS", sources: ["catalogue"], date_collecte: "2025-01-16T04:39:34.316Z" }, | ||
{ type: "cfd", code: "44633527", niveau: "446", label: "BP JEPS", sources: ["catalogue"], date_collecte: "2025-01-16T04:45:42.947Z" }, | ||
], | ||
lieux_de_formation: [ | ||
{ | ||
code: "-2.5899487_47.7327681", | ||
adresse: { | ||
label: "-2.5899487_47.7327681", | ||
code_postal: "56250", | ||
code_insee: "56053", | ||
localite: "Elven", | ||
geojson: { type: "Feature", geometry: { type: "Point", coordinates: [-2.589803, 47.732663] }, properties: { score: 0.9999998980024534, source: "geo-adresse-api" } }, | ||
departement: { code: "56", nom: "Morbihan" }, | ||
region: { code: "53", nom: "Bretagne" }, | ||
academie: { code: "14", nom: "Rennes" }, | ||
}, | ||
uai: "0561986E", | ||
uai_fiable: false, | ||
sources: ["catalogue"], | ||
date_collecte: "2025-01-16T04:45:46.290Z", | ||
siret: "52151363000017", | ||
}, | ||
{ | ||
code: "-2.752094_48.185211", | ||
adresse: { | ||
label: "-2.752094_48.185211", | ||
code_postal: "22600", | ||
code_insee: "22136", | ||
localite: "Loudéac", | ||
geojson: { type: "Feature", geometry: { type: "Point", coordinates: [-2.75207, 48.185268] }, properties: { score: 0.9999999826867761, source: "geo-adresse-api" } }, | ||
departement: { code: "22", nom: "Côtes-d'Armor" }, | ||
region: { code: "53", nom: "Bretagne" }, | ||
academie: { code: "14", nom: "Rennes" }, | ||
}, | ||
uai_fiable: false, | ||
sources: ["catalogue"], | ||
date_collecte: "2025-01-16T04:45:46.276Z", | ||
}, | ||
], | ||
referentiels: ["catalogue-etablissements", "datagouv"], | ||
relations: [], | ||
reseaux: [], | ||
uai_potentiels: [{ uai: "0561986E", sources: ["deca", "tableau-de-bord", "catalogue-etablissements", "ideo2"], date_collecte: "2025-01-16T05:08:33.449Z" }], | ||
etat_administratif: "actif", | ||
forme_juridique: { code: "5710", label: "SAS, société par actions simplifiée" }, | ||
raison_sociale: "INSTITUT BRETON DU SPORT ET DE L'ANIMATION", | ||
siege_social: true, | ||
enseigne: "IBSA FORMATION", | ||
adresse: { | ||
academie: { code: "14", nom: "Rennes" }, | ||
code_insee: "56053", | ||
code_postal: "56250", | ||
departement: { code: "56", nom: "Morbihan" }, | ||
geojson: { geometry: { coordinates: [-2.585947, 47.749302], type: "Point" }, properties: { score: 0.6743845454545453, source: "geo-adresse-api" }, type: "Feature" }, | ||
label: "PONT BILIO 56250 ELVEN", | ||
localite: "Elven", | ||
region: { code: "53", nom: "Bretagne" }, | ||
}, | ||
nature: "responsable_formateur", | ||
numero_declaration_activite: "53560851656", | ||
qualiopi: true, | ||
uai: "0561986E", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,16 @@ exports[`POST /etablissement/creation > Création d'entreprise > Vérifie que le | |
} | ||
`; | ||
|
||
exports[`POST /etablissement/creation > Création de CFA > Vérifie qu un email ne peut pas créer 2 comptes CFA 1`] = ` | ||
{ | ||
"email": "[email protected]", | ||
"first_name": "John", | ||
"last_name": "Doe", | ||
"origin": "lba", | ||
"phone": "0612345678", | ||
} | ||
`; | ||
|
||
exports[`POST /etablissement/creation > Création de CFA > Vérifie que le CFA est créé 1`] = ` | ||
{ | ||
"email": "[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.