From d4844a2df16a73cd3d542c5602b6fad57dd47a30 Mon Sep 17 00:00:00 2001 From: Josue Kouka Date: Wed, 31 May 2017 13:39:01 +0200 Subject: [PATCH 4/7] cityweb: add tests data (#15883) --- tests/data/cityweb/cityweb.xsd | 181 +++++++++++++++++++++++++ tests/data/cityweb/formdata_dec.json | 183 +++++++++++++++++++++++++ tests/data/cityweb/formdata_mar.json | 242 ++++++++++++++++++++++++++++++++++ tests/data/cityweb/formdata_nais.json | 184 ++++++++++++++++++++++++++ 4 files changed, 790 insertions(+) create mode 100644 tests/data/cityweb/cityweb.xsd create mode 100644 tests/data/cityweb/formdata_dec.json create mode 100644 tests/data/cityweb/formdata_mar.json create mode 100644 tests/data/cityweb/formdata_nais.json diff --git a/tests/data/cityweb/cityweb.xsd b/tests/data/cityweb/cityweb.xsd new file mode 100644 index 0000000..be64220 --- /dev/null +++ b/tests/data/cityweb/cityweb.xsd @@ -0,0 +1,181 @@ + + + + + + Root element + + + + + + + utile si différent de l'interessé + + + + + copie intégrale, extrait avec ou sans filiation, plurilingue + + + + + + + + + origine de la demande pour l'état civil : courrier, guichet ou internet + + + + + champ commentaire + + + + + + + + + Naissance, mariage, décès, reconnaissance + + + + + + + + + + + + + + + + + + + + + + + Informations sur le demandeur + + + + + avocat, notaire, père, mère... + + + + + + + + permet de gérer le sexe indeterminé + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Seulement pour les mariages + + + + + naissance, mariage, décès, reconnaissance + + + + + necessaire pour les reconnaissances seulement, l'interessé pouvant etre le parent ou le reconnu, il faut donc préciser. + + + + + + + + + + + + + précission sur le nom d'usage: nom d'épouse, veuve, d'usage... + + + + + + + + + + + + + + + + + + + + + + + + + + Permet de gérer les dates incomplètes + + + + diff --git a/tests/data/cityweb/formdata_dec.json b/tests/data/cityweb/formdata_dec.json new file mode 100644 index 0000000..57996d7 --- /dev/null +++ b/tests/data/cityweb/formdata_dec.json @@ -0,0 +1,183 @@ +{ + "criticality_level": 0, + "display_id": "17-1", + "display_name": "Demande d'un acte de d\u00e9c\u00e8s #17-1", + "evolution": [ + { + "status": "2", + "time": "2016-10-20T14:41:20Z", + "who": { + "email": "chelsea@whatever.com", + "id": "2", + "name": "chelsea" + } + } + ], + "extra": { + "code_insee": "54395", + "code_postal": "54000", + "event_city": "Nantes", + "event_country": "France", + "event_kind": "Deces", + "event_kind_raw": "DEC" + }, + "fields": { + "applicant_address_1": "37 Rue du Cheval Blanc", + "applicant_address_2": "", + "applicant_address_city": "Nancy", + "applicant_address_country": "France", + "applicant_address_district": "Meurthe-et-Moselle", + "applicant_address_mail": "chelsea@whatever.com", + "applicant_address_tel": "+33 6 55 44 22 11", + "applicant_address_zipcode": "54000", + "applicant_birth_city": "Nantes", + "applicant_birth_country": "France", + "applicant_birth_date": "11/07/1989", + "applicant_birth_district": "Loire-Atlantique", + "applicant_firstnames": "Kim Chelsea", + "applicant_gender": "Femelle", + "applicant_gender_raw": "F", + "applicant_kind": "personne concern\u00e9", + "applicant_names_common": "Whatever", + "applicant_names_family": "Whatever", + "applicant_names_use": "nom d'epouse", + "applicant_title": "Madame", + "applicant_title_raw": "Mme", + "canal": "internet", + "concerned_address_1": "", + "concerned_address_2": "", + "concerned_address_city": "", + "concerned_address_country": "", + "concerned_address_district": "", + "concerned_address_mail": "", + "concerned_address_tel": "", + "concerned_address_zipcode": "", + "concerned_birth_city": "Harare", + "concerned_birth_country": "Zimbabwe", + "concerned_birth_date": "1980-02-29", + "concerned_birth_district": "", + "concerned_father_address_1": "21 Bvd Henri Orion", + "concerned_father_address_2": "Batiment A, Apt 18", + "concerned_father_address_city": "Nantes", + "concerned_father_address_country": "France", + "concerned_father_address_district": "Loite-Atlantique", + "concerned_father_address_mail": "", + "concerned_father_address_tel": "", + "concerned_father_address_zipcode": "44000", + "concerned_father_birth_city": "Orvault", + "concerned_father_birth_country": "France", + "concerned_father_birth_date": "11-04-1955", + "concerned_father_birth_district": "Loire-Atlantique", + "concerned_father_firstnames": "John Oliver", + "concerned_father_gender": "Male", + "concerned_father_gender_raw": "M", + "concerned_father_names_common": "Smith", + "concerned_father_names_family": "Smith", + "concerned_father_names_use": "Smith", + "concerned_father_title": "Monsieur", + "concerned_father_title_raw": "M", + "concerned_firstnames": "Kevin", + "concerned_gender_raw": "M", + "concerned_mother_address_1": "21 Bvd Henri Orion", + "concerned_mother_address_2": "Batiment A, Apt 18", + "concerned_mother_address_city": "Nantes", + "concerned_mother_address_country": "France", + "concerned_mother_address_district": "Loite-Atlantique", + "concerned_mother_address_mail": "kim@gmail.com", + "concerned_mother_address_tel": "", + "concerned_mother_address_zipcode": "44000", + "concerned_mother_birth_city": "Seoul", + "concerned_mother_birth_country": "South Korea", + "concerned_mother_birth_date": "10-05-1960", + "concerned_mother_birth_district": "", + "concerned_mother_firstnames": "Kim", + "concerned_mother_gender": "", + "concerned_mother_kind": "", + "concerned_mother_names_common": "Smith", + "concerned_mother_names_family": "Smith", + "concerned_mother_names_use": "nom d'\u00e9pouse", + "concerned_mother_title": "Mme", + "concerned_names_common": "Whatever", + "concerned_names_family": "Whatever", + "concerned_names_use": "", + "concerned_title_raw": "M", + "copies": "1", + "document_kind": "Copie Integrale", + "document_kind_raw": "CPI", + "event_date_end": "", + "event_date_start": "2012-07-14", + "event_district": "Val-de-Marne", + "reason": "They are just messy" + }, + "id": "demande-d-un-acte-de-deces/1", + "last_update_time": "2016-10-20T14:41:20Z", + "receipt_time": "2016-10-20T14:41:20Z", + "roles": { + "_receiver": [ + { + "allows_backoffice_access": true, + "details": "", + "emails": [], + "emails_to_members": false, + "id": "22", + "name": "Etat civil Acte", + "slug": "etat-civil-acte", + "text": "Etat civil Acte" + } + ], + "actions": [ + { + "allows_backoffice_access": true, + "details": "", + "emails": [], + "emails_to_members": false, + "id": "3", + "name": "agent", + "slug": "agent", + "text": "agent" + } + ], + "concerned": [ + { + "allows_backoffice_access": true, + "details": "", + "emails": [], + "emails_to_members": false, + "id": "3", + "name": "agent", + "slug": "agent", + "text": "agent" + }, + { + "allows_backoffice_access": true, + "details": "", + "emails": [], + "emails_to_members": false, + "id": "22", + "name": "Etat civil Acte", + "slug": "etat-civil-acte", + "text": "Etat civil Acte" + } + ] + }, + "submission": { + "backoffice": false, + "channel": "web" + }, + "url": "http://wcs.debian.local/demande-d-un-acte-de-deces/1/", + "user": { + "email": "chelsea@whatever.com", + "id": "2", + "name": "chelsea" + }, + "workflow": { + "fields": { + "aec_type": null, + "aec_type_raw": null + }, + "status": { + "id": "2", + "name": "new" + } + } +} diff --git a/tests/data/cityweb/formdata_mar.json b/tests/data/cityweb/formdata_mar.json new file mode 100644 index 0000000..7e23e42 --- /dev/null +++ b/tests/data/cityweb/formdata_mar.json @@ -0,0 +1,242 @@ +{ + "criticality_level": 0, + "display_id": "16-1", + "display_name": "Demande d'un acte de mariage #16-1", + "evolution": [ + { + "status": "2", + "time": "2016-10-20T15:17:05Z", + "who": { + "email": "chelsea@whatever.com", + "id": "2", + "name": "chelsea" + } + } + ], + "extra": { + "code_insee": "54395", + "code_postal": "54000", + "event_city": "Nantes", + "event_country": "France", + "event_kind": "Mariage", + "event_kind_raw": "MAR" + }, + "fields": { + "applicant_is_concerned": true, + "applicant_address_1": "37 Rue du Cheval Blanc", + "applicant_address_2": "", + "applicant_address_city": "Nancy", + "applicant_address_country": "France", + "applicant_address_district": "Meurthe-et-Moselle", + "applicant_address_mail": "chelsea@whatever.com", + "applicant_address_tel": "+33 6 55 44 22 11", + "applicant_address_zipcode": "54000", + "applicant_birth_city": "Nantes", + "applicant_birth_country": "France", + "applicant_birth_date": "11/07/1989", + "applicant_birth_district": "Loire-Atlantique", + "applicant_firstnames": "Kim Chelsea", + "applicant_gender": "Femelle", + "applicant_gender_raw": "F", + "applicant_kind": "personne concern\u00e9", + "applicant_names_common": "Whatever", + "applicant_names_family": "Whatever", + "applicant_names_use": "nom d'epouse", + "applicant_title": "Madame", + "applicant_title_raw": "Mme", + "canal": "internet", + "concerned_address_1": "", + "concerned_address_2": "", + "concerned_address_city": "", + "concerned_address_country": "", + "concerned_address_district": "", + "concerned_address_mail": "", + "concerned_address_tel": "", + "concerned_address_zipcode": "", + "concerned_birth_city": "", + "concerned_birth_country": "", + "concerned_birth_date": "", + "concerned_birth_district": "", + "concerned_father_address_1": "21 Bvd Henri Orion", + "concerned_father_address_2": "Batiment A, Apt 18", + "concerned_father_address_city": "Nantes", + "concerned_father_address_country": "France", + "concerned_father_address_district": "Loite-Atlantique", + "concerned_father_address_mail": "", + "concerned_father_address_tel": "", + "concerned_father_address_zipcode": "44000", + "concerned_father_birth_city": "Orvault", + "concerned_father_birth_country": "France", + "concerned_father_birth_date": "11-04-1955", + "concerned_father_birth_district": "Loire-Atlantique", + "concerned_father_firstnames": "John Oliver", + "concerned_father_gender": "Male", + "concerned_father_gender_raw": "M", + "concerned_father_names_common": "Smith", + "concerned_father_names_family": "Smith", + "concerned_father_names_use": "Smith", + "concerned_father_title": "Monsieur", + "concerned_father_title_raw": "M", + "concerned_firstnames": "", + "concerned_gender": "", + "concerned_kind": "", + "concerned_mother_address_1": "21 Bvd Henri Orion", + "concerned_mother_address_2": "Batiment A, Apt 18", + "concerned_mother_address_city": "Nantes", + "concerned_mother_address_country": "France", + "concerned_mother_address_district": "Loite-Atlantique", + "concerned_mother_address_mail": "kim@gmail.com", + "concerned_mother_address_tel": "", + "concerned_mother_address_zipcode": "44000", + "concerned_mother_birth_city": "Seoul", + "concerned_mother_birth_country": "South Korea", + "concerned_mother_birth_date": "10-05-1960", + "concerned_mother_birth_district": "", + "concerned_mother_firstnames": "Kim", + "concerned_mother_gender": "", + "concerned_mother_kind": "", + "concerned_mother_names_common": "Smith", + "concerned_mother_names_family": "Smith", + "concerned_mother_names_use": "nom d'\u00e9pouse", + "concerned_mother_title": "Mme", + "concerned_names_common": "", + "concerned_names_family": "", + "concerned_names_use": "", + "concerned_title": "", + "copies": "2", + "document_kind": "Copie Integrale", + "document_kind_raw": "CPI", + "event_date_end": "", + "event_date_start": "2012-07-14", + "event_district": "Val-de-Marne", + "partner_address_1": "37 Rue du cheval Blanc", + "partner_address_2": "", + "partner_address_city": "Nancy", + "partner_address_country": "France", + "partner_address_district": "Meurthe-et-Moselle", + "partner_address_mail": "kevin@lost.com", + "partner_address_tel": "", + "partner_address_zipcode": "54000", + "partner_birth_city": "Paris", + "partner_birth_country": "France", + "partner_birth_date": "25-11-1985", + "partner_birth_district": "", + "partner_father_address_1": "West 12th Avenue", + "partner_father_address_2": "", + "partner_father_address_city": "Vancouver", + "partner_father_address_country": "Canada", + "partner_father_address_district": "British Columbia", + "partner_father_address_mail": "", + "partner_father_address_tel": "", + "partner_father_address_zipcode": "BC V5Y 1V4", + "partner_father_birth_city": "Vancouver", + "partner_father_birth_country": "Canada", + "partner_father_birth_date": "23-02-1957", + "partner_father_birth_district": "British Columbia", + "partner_father_firstnames": "Eric Eliot", + "partner_father_gender": "Male", + "partner_father_gender_raw": "M", + "partner_father_names_common": "Whatever", + "partner_father_names_family": "Whatever", + "partner_father_names_use": "", + "partner_father_title": "Monsieur", + "partner_father_title_raw": "M", + "partner_firstnames": "Kevin Johnny", + "partner_gender": "Male", + "partner_gender_raw": "M", + "partner_mother_address_1": "", + "partner_mother_address_2": "", + "partner_mother_address_city": "", + "partner_mother_address_country": "", + "partner_mother_address_district": "", + "partner_mother_address_mail": "", + "partner_mother_address_tel": "", + "partner_mother_address_zipcode": "", + "partner_mother_birth_city": "Sao Paolo", + "partner_mother_birth_country": "Brazil", + "partner_mother_birth_date": "11/06/1962", + "partner_mother_birth_district": "", + "partner_mother_firstnames": "Clara", + "partner_mother_gender": "F", + "partner_mother_names_common": "Whatever", + "partner_mother_names_family": "Da Silva", + "partner_mother_names_use": "nom d'epouse", + "partner_mother_title": "Madame", + "partner_mother_title_raw": "M", + "partner_names_common": "Whatever", + "partner_names_family": "Whatever", + "partner_title": "M", + "reason": "They are just messy" + }, + "id": "demande-d-un-acte-de-mariage/1", + "last_update_time": "2016-10-20T15:17:05Z", + "receipt_time": "2016-10-20T15:17:05Z", + "roles": { + "_receiver": [ + { + "allows_backoffice_access": true, + "details": "", + "emails": [], + "emails_to_members": false, + "id": "22", + "name": "Etat civil Acte", + "slug": "etat-civil-acte", + "text": "Etat civil Acte" + } + ], + "actions": [ + { + "allows_backoffice_access": true, + "details": "", + "emails": [], + "emails_to_members": false, + "id": "3", + "name": "agent", + "slug": "agent", + "text": "agent" + } + ], + "concerned": [ + { + "allows_backoffice_access": true, + "details": "", + "emails": [], + "emails_to_members": false, + "id": "3", + "name": "agent", + "slug": "agent", + "text": "agent" + }, + { + "allows_backoffice_access": true, + "details": "", + "emails": [], + "emails_to_members": false, + "id": "22", + "name": "Etat civil Acte", + "slug": "etat-civil-acte", + "text": "Etat civil Acte" + } + ] + }, + "submission": { + "backoffice": false, + "channel": "web" + }, + "url": "http://wcs.debian.local/demande-d-un-acte-de-mariage/1/", + "user": { + "email": "chelsea@whatever.com", + "id": "2", + "name": "chelsea" + }, + "workflow": { + "fields": { + "aec_type": null, + "aec_type_raw": null + }, + "status": { + "id": "2", + "name": "new" + } + } +} diff --git a/tests/data/cityweb/formdata_nais.json b/tests/data/cityweb/formdata_nais.json new file mode 100644 index 0000000..3bb8e81 --- /dev/null +++ b/tests/data/cityweb/formdata_nais.json @@ -0,0 +1,184 @@ +{ + "criticality_level": 0, + "display_id": "15-4", + "display_name": "Demande d'un acte de naissance #15-4", + "evolution": [ + { + "status": "2", + "time": "2016-10-19T14:00:19Z", + "who": { + "email": "chelsea@whatever.com", + "id": "2", + "name": "chelsea" + } + } + ], + "extra": { + "code_insee": "54395", + "code_postal": "54000", + "event_city": "Nantes", + "event_country": "France", + "event_kind": "Naissance", + "event_kind_raw": "NAI" + }, + "fields": { + "applicant_address_1": "37 Rue du Cheval Blanc", + "applicant_address_2": "", + "applicant_address_city": "Nancy", + "applicant_address_country": "France", + "applicant_address_district": "Meurthe-et-Moselle", + "applicant_address_mail": "chelsea@whatever.com", + "applicant_address_tel": "+33 6 55 44 22 11", + "applicant_address_zipcode": "54000", + "applicant_birth_city": "Nantes", + "applicant_birth_country": "France", + "applicant_birth_date": "11/07/1989", + "applicant_birth_district": "Loire-Atlantique", + "applicant_firstnames": "Kim Chelsea", + "applicant_gender": "Femelle", + "applicant_gender_raw": "F", + "applicant_is_concerned": "true", + "applicant_kind": "personne concern\u00e9", + "applicant_names_common": "Whatever", + "applicant_names_family": "Whatever", + "applicant_names_use": "nom d'epouse", + "applicant_title": "Madame", + "applicant_title_raw": "Mme", + "canal": "internet", + "concerned_address_1": "", + "concerned_address_2": "", + "concerned_address_city": "", + "concerned_address_country": "", + "concerned_address_district": "", + "concerned_address_mail": "", + "concerned_address_tel": "", + "concerned_address_zipcode": "", + "concerned_birth_city": "Harare", + "concerned_birth_country": "Zimbabwe", + "concerned_birth_date": "1980-02-29", + "concerned_birth_district": "", + "concerned_father_address_1": "21 Bvd Henri Orion", + "concerned_father_address_2": "Batiment A, Apt 18", + "concerned_father_address_city": "Nantes", + "concerned_father_address_country": "France", + "concerned_father_address_district": "Loite-Atlantique", + "concerned_father_address_mail": "", + "concerned_father_address_tel": "", + "concerned_father_address_zipcode": "44000", + "concerned_father_birth_city": "Orvault", + "concerned_father_birth_country": "France", + "concerned_father_birth_date": "11-04-1955", + "concerned_father_birth_district": "Loire-Atlantique", + "concerned_father_firstnames": "John Oliver", + "concerned_father_gender": "Male", + "concerned_father_gender_raw": "M", + "concerned_father_names_common": "Smith", + "concerned_father_names_family": "Smith", + "concerned_father_names_use": "Smith", + "concerned_father_title": "Monsieur", + "concerned_father_title_raw": "M", + "concerned_firstnames": "Kevin", + "concerned_gender_raw": "M", + "concerned_mother_address_1": "21 Bvd Henri Orion", + "concerned_mother_address_2": "Batiment A, Apt 18", + "concerned_mother_address_city": "Nantes", + "concerned_mother_address_country": "France", + "concerned_mother_address_district": "Loite-Atlantique", + "concerned_mother_address_mail": "kim@gmail.com", + "concerned_mother_address_tel": "", + "concerned_mother_address_zipcode": "44000", + "concerned_mother_birth_city": "Seoul", + "concerned_mother_birth_country": "South Korea", + "concerned_mother_birth_date": "10-05-1960", + "concerned_mother_birth_district": "", + "concerned_mother_firstnames": "Kim", + "concerned_mother_gender": "", + "concerned_mother_kind": "", + "concerned_mother_names_common": "Smith", + "concerned_mother_names_family": "Smith", + "concerned_mother_names_use": "nom d'\u00e9pouse", + "concerned_mother_title": "Mme", + "concerned_names_common": "Whatever", + "concerned_names_family": "Whatever", + "concerned_names_use": "", + "concerned_title_raw": "M", + "copies": "1", + "document_kind": "Copie Integrale", + "document_kind_raw": "CPI", + "event_date_end": "", + "event_date_start": "2012-07-14", + "event_district": "Val-de-Marne", + "reason": "They are just messy" + }, + "id": "demande-d-un-acte-de-naissance/4", + "last_update_time": "2016-10-19T14:00:19Z", + "receipt_time": "2016-10-19T14:00:19Z", + "roles": { + "_receiver": [ + { + "allows_backoffice_access": true, + "details": "", + "emails": [], + "emails_to_members": false, + "id": "22", + "name": "Etat civil Acte", + "slug": "etat-civil-acte", + "text": "Etat civil Acte" + } + ], + "actions": [ + { + "allows_backoffice_access": true, + "details": "", + "emails": [], + "emails_to_members": false, + "id": "3", + "name": "agent", + "slug": "agent", + "text": "agent" + } + ], + "concerned": [ + { + "allows_backoffice_access": true, + "details": "", + "emails": [], + "emails_to_members": false, + "id": "3", + "name": "agent", + "slug": "agent", + "text": "agent" + }, + { + "allows_backoffice_access": true, + "details": "", + "emails": [], + "emails_to_members": false, + "id": "22", + "name": "Etat civil Acte", + "slug": "etat-civil-acte", + "text": "Etat civil Acte" + } + ] + }, + "submission": { + "backoffice": false, + "channel": "web" + }, + "url": "http://wcs.debian.local/demande-d-un-acte-de-naissance/4/", + "user": { + "email": "chelsea@whatever.com", + "id": "2", + "name": "chelsea" + }, + "workflow": { + "fields": { + "aec_type": "Acte de naissance", + "aec_type_raw": "NAISSANCE" + }, + "status": { + "id": "2", + "name": "new" + } + } +} -- 2.11.0