Projet

Général

Profil

0004-cityweb-add-tests-data-15883.patch

Josué Kouka, 31 mai 2017 13:44

Télécharger (31,3 ko)

Voir les différences:

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
tests/data/cityweb/cityweb.xsd
1
<?xml version="1.0" encoding="utf-8"?>
2
<!-- edited with XMLSpy v2005 U (http://www.xmlspy.com) by judlin (digitech) -->
3
<xs:schema xmlns="http://tempuri.org/XMLSchema.xsd" xmlns:mstns="http://tempuri.org/XMLSchema.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://tempuri.org/XMLSchema.xsd" elementFormDefault="qualified">
4
	<xs:element name="demandeEtatCivil">
5
		<xs:annotation>
6
			<xs:documentation>Root element</xs:documentation>
7
		</xs:annotation>
8
		<xs:complexType>
9
			<xs:sequence>
10
				<xs:element name="identifiant" type="xs:string" />
11
				<xs:element name="demandeur" type="demandeurType" minOccurs="0">
12
					<xs:annotation>
13
						<xs:documentation>utile si différent de l'interessé</xs:documentation>
14
					</xs:annotation>
15
				</xs:element>
16
				<xs:element name="natureDocument" type="natureDocumentType">
17
					<xs:annotation>
18
						<xs:documentation>copie intégrale, extrait avec ou sans	filiation, plurilingue</xs:documentation>
19
					</xs:annotation>
20
				</xs:element>
21
				<xs:element name="nbExemplaire" type="xs:int" minOccurs="0" />
22
				<xs:element name="dateDemande" type="xs:dateTime" />
23
				<xs:element name="evenement" type="evenementType" />
24
				<xs:element name="motif" type="xs:string" minOccurs="0" />
25
				<xs:element name="origine" type="origineECType" minOccurs="0">
26
					<xs:annotation>
27
						<xs:documentation>origine de la demande pour l'état civil : courrier, guichet ou internet</xs:documentation>
28
					</xs:annotation>
29
				</xs:element>
30
				<xs:element name="commentaire" type="xs:string" minOccurs="0" >
31
					<xs:annotation>
32
						<xs:documentation>champ commentaire</xs:documentation>
33
					</xs:annotation>
34
				</xs:element>
35
			</xs:sequence>
36
			<xs:attribute name="version" type="xs:string" default="1.0"/>
37
		</xs:complexType>
38
	</xs:element>
39
	<xs:simpleType name="natureEvenementType">
40
		<xs:annotation>
41
			<xs:documentation>Naissance, mariage, décès, reconnaissance</xs:documentation>
42
		</xs:annotation>
43
		<xs:restriction base="xs:string">
44
			<xs:enumeration value="NAI"/>
45
			<xs:enumeration value="DEC"/>
46
			<xs:enumeration value="MAR"/>
47
			<xs:enumeration value="REC"/>
48
		</xs:restriction>
49
	</xs:simpleType>
50
	<xs:complexType name="individuType">
51
		<xs:sequence>
52
			<xs:element name="noms" type="nomsType"/>
53
			<xs:element name="prenoms" type="xs:string" minOccurs="0"/>
54
			<xs:element name="genre" type="genreType" minOccurs="0"/>
55
			<xs:element name="adresse" type="adresseType" minOccurs="0"/>
56
			<xs:element name="sexe" type="sexeType" minOccurs="0"/>
57
			<xs:element name="pere" type="individuType" minOccurs="0"/>
58
			<xs:element name="mere" type="individuType" minOccurs="0"/>
59
			<xs:element name="naissance" type="naissanceType" minOccurs="0"/>
60
		</xs:sequence>
61
	</xs:complexType>
62
	<xs:complexType name="demandeurType">
63
		<xs:annotation>
64
			<xs:documentation>Informations sur le demandeur</xs:documentation>
65
		</xs:annotation>
66
		<xs:sequence>
67
			<xs:element name="qualiteDemandeur" type="xs:string">
68
				<xs:annotation>
69
					<xs:documentation>avocat, notaire, père, mère...</xs:documentation>
70
				</xs:annotation>
71
			</xs:element>
72
			<xs:element name="individu" type="individuType"/>
73
		</xs:sequence>
74
	</xs:complexType>
75
	<xs:simpleType name="sexeType">
76
		<xs:annotation>
77
			<xs:documentation>permet de gérer le sexe indeterminé</xs:documentation>
78
		</xs:annotation>
79
		<xs:restriction base="xs:string">
80
			<xs:enumeration value="F"/>
81
			<xs:enumeration value="M"/>
82
			<xs:enumeration value="NA"/>
83
		</xs:restriction>
84
	</xs:simpleType>
85
	<xs:simpleType name="genreType">
86
		<xs:restriction base="xs:string">
87
			<xs:enumeration value="M"/>
88
			<xs:enumeration value="Mme"/>
89
			<xs:enumeration value="Mlle"/>
90
		</xs:restriction>
91
	</xs:simpleType>
92
	<xs:complexType name="adresseType">
93
		<xs:sequence>
94
			<xs:element name="ligneAdr1" type="xs:string" minOccurs="0"/>
95
			<xs:element name="ligneAdr2" type="xs:string" minOccurs="0"/>
96
			<xs:element name="codePostal" type="xs:string" minOccurs="0"/>
97
			<xs:element name="lieu" type="lieuType"/>
98
			<xs:element name="mail" type="xs:string" minOccurs="0"/>
99
			<xs:element name="tel" type="xs:string" minOccurs="0"/>
100
		</xs:sequence>
101
	</xs:complexType>
102
	<xs:simpleType name="typeInteresseType">
103
		<xs:restriction base="xs:string">
104
			<xs:enumeration value="reconnu"/>
105
			<xs:enumeration value="auteur"/>
106
		</xs:restriction>
107
	</xs:simpleType>
108
	<xs:simpleType name="natureDocumentType">
109
		<xs:restriction base="xs:string">
110
			<xs:enumeration value="CPI"/>
111
			<xs:enumeration value="EXTAF"/>
112
			<xs:enumeration value="EXTSF"/>
113
			<xs:enumeration value="EXTPL"/>
114
		</xs:restriction>
115
	</xs:simpleType>
116
	<xs:simpleType name="origineECType">
117
		<xs:restriction base="xs:string">
118
			<xs:enumeration value="internet"/>
119
			<xs:enumeration value="guichet"/>
120
			<xs:enumeration value="courrier"/>
121
		</xs:restriction>
122
	</xs:simpleType>
123
	<xs:complexType name="evenementType">
124
		<xs:sequence>
125
			<xs:element name="interesse" type="individuType"/>
126
			<xs:element name="conjoint" type="individuType" minOccurs="0">
127
				<xs:annotation>
128
					<xs:documentation>Seulement pour les mariages</xs:documentation>
129
				</xs:annotation>
130
			</xs:element>
131
			<xs:element name="natureEvenement" type="natureEvenementType">
132
				<xs:annotation>
133
					<xs:documentation>naissance, mariage, décès, reconnaissance</xs:documentation>
134
				</xs:annotation>
135
			</xs:element>
136
			<xs:element name="typeInteresse" type="typeInteresseType" minOccurs="0">
137
				<xs:annotation>
138
					<xs:documentation>necessaire pour les reconnaissances seulement, l'interessé pouvant etre le parent ou le reconnu, il faut donc préciser.</xs:documentation>
139
				</xs:annotation>
140
			</xs:element>
141
			<xs:element name="dateEvenement" type="dateEvenementType"/>
142
			<xs:element name="lieuEvenement" type="lieuType"/>
143
		</xs:sequence>
144
	</xs:complexType>
145
	<xs:complexType name="nomsType">
146
		<xs:sequence>
147
			<xs:element name="nomDeFamille" type="xs:string"/>
148
			<xs:element name="nomUsage" type="xs:string" minOccurs="0"/>
149
			<xs:element name="typeUsage" type="xs:string" minOccurs="0">
150
				<xs:annotation>
151
					<xs:documentation>précission sur le nom d'usage: nom d'épouse, veuve, d'usage...</xs:documentation>
152
				</xs:annotation>
153
			</xs:element>
154
		</xs:sequence>
155
	</xs:complexType>
156
	<xs:complexType name="naissanceType">
157
		<xs:sequence>
158
			<xs:element name="date" type="dateCiviqueType"/>
159
			<xs:element name="lieu" type="lieuType" minOccurs="0"/>
160
		</xs:sequence>
161
	</xs:complexType>
162
	<xs:complexType name="lieuType">
163
		<xs:sequence>
164
			<xs:element name="ville" type="xs:string"/>
165
			<xs:element name="province" type="xs:string" minOccurs="0"/>
166
			<xs:element name="pays" type="xs:string" minOccurs="0"/>
167
		</xs:sequence>
168
	</xs:complexType>
169
	<xs:complexType name="dateEvenementType">
170
		<xs:sequence>
171
			<xs:element name="dateDebut" type="xs:date"/>
172
			<xs:element name="dateFin" type="xs:date" minOccurs="0"/>
173
		</xs:sequence>
174
	</xs:complexType>
175
	<xs:simpleType name="dateCiviqueType">
176
		<xs:annotation>
177
			<xs:documentation>Permet de gérer les dates incomplètes</xs:documentation>
178
		</xs:annotation>
179
		<xs:union memberTypes="xs:date xs:gYear xs:gYearMonth"/>
180
	</xs:simpleType>
181
</xs:schema>
tests/data/cityweb/formdata_dec.json
1
{
2
    "criticality_level": 0,
3
    "display_id": "17-1",
4
    "display_name": "Demande d'un acte de d\u00e9c\u00e8s #17-1",
5
    "evolution": [
6
        {
7
            "status": "2",
8
            "time": "2016-10-20T14:41:20Z",
9
            "who": {
10
                "email": "chelsea@whatever.com",
11
                "id": "2",
12
                "name": "chelsea"
13
            }
14
        }
15
    ],
16
    "extra": {
17
        "code_insee": "54395",
18
        "code_postal": "54000",
19
        "event_city": "Nantes",
20
        "event_country": "France",
21
        "event_kind": "Deces",
22
        "event_kind_raw": "DEC"
23
    },
24
    "fields": {
25
        "applicant_address_1": "37 Rue du Cheval Blanc",
26
        "applicant_address_2": "",
27
        "applicant_address_city": "Nancy",
28
        "applicant_address_country": "France",
29
        "applicant_address_district": "Meurthe-et-Moselle",
30
        "applicant_address_mail": "chelsea@whatever.com",
31
        "applicant_address_tel": "+33 6 55 44 22 11",
32
        "applicant_address_zipcode": "54000",
33
        "applicant_birth_city": "Nantes",
34
        "applicant_birth_country": "France",
35
        "applicant_birth_date": "11/07/1989",
36
        "applicant_birth_district": "Loire-Atlantique",
37
        "applicant_firstnames": "Kim Chelsea",
38
        "applicant_gender": "Femelle",
39
        "applicant_gender_raw": "F",
40
        "applicant_kind": "personne concern\u00e9",
41
        "applicant_names_common": "Whatever",
42
        "applicant_names_family": "Whatever",
43
        "applicant_names_use": "nom d'epouse",
44
        "applicant_title": "Madame",
45
        "applicant_title_raw": "Mme",
46
        "canal": "internet",
47
        "concerned_address_1": "",
48
        "concerned_address_2": "",
49
        "concerned_address_city": "",
50
        "concerned_address_country": "",
51
        "concerned_address_district": "",
52
        "concerned_address_mail": "",
53
        "concerned_address_tel": "",
54
        "concerned_address_zipcode": "",
55
        "concerned_birth_city": "Harare",
56
        "concerned_birth_country": "Zimbabwe",
57
        "concerned_birth_date": "1980-02-29",
58
        "concerned_birth_district": "",
59
        "concerned_father_address_1": "21 Bvd Henri Orion",
60
        "concerned_father_address_2": "Batiment A, Apt 18",
61
        "concerned_father_address_city": "Nantes",
62
        "concerned_father_address_country": "France",
63
        "concerned_father_address_district": "Loite-Atlantique",
64
        "concerned_father_address_mail": "",
65
        "concerned_father_address_tel": "",
66
        "concerned_father_address_zipcode": "44000",
67
        "concerned_father_birth_city": "Orvault",
68
        "concerned_father_birth_country": "France",
69
        "concerned_father_birth_date": "11-04-1955",
70
        "concerned_father_birth_district": "Loire-Atlantique",
71
        "concerned_father_firstnames": "John Oliver",
72
        "concerned_father_gender": "Male",
73
        "concerned_father_gender_raw": "M",
74
        "concerned_father_names_common": "Smith",
75
        "concerned_father_names_family": "Smith",
76
        "concerned_father_names_use": "Smith",
77
        "concerned_father_title": "Monsieur",
78
        "concerned_father_title_raw": "M",
79
        "concerned_firstnames": "Kevin",
80
        "concerned_gender_raw": "M",
81
        "concerned_mother_address_1": "21 Bvd Henri Orion",
82
        "concerned_mother_address_2": "Batiment A, Apt 18",
83
        "concerned_mother_address_city": "Nantes",
84
        "concerned_mother_address_country": "France",
85
        "concerned_mother_address_district": "Loite-Atlantique",
86
        "concerned_mother_address_mail": "kim@gmail.com",
87
        "concerned_mother_address_tel": "",
88
        "concerned_mother_address_zipcode": "44000",
89
        "concerned_mother_birth_city": "Seoul",
90
        "concerned_mother_birth_country": "South Korea",
91
        "concerned_mother_birth_date": "10-05-1960",
92
        "concerned_mother_birth_district": "",
93
        "concerned_mother_firstnames": "Kim",
94
        "concerned_mother_gender": "",
95
        "concerned_mother_kind": "",
96
        "concerned_mother_names_common": "Smith",
97
        "concerned_mother_names_family": "Smith",
98
        "concerned_mother_names_use": "nom d'\u00e9pouse",
99
        "concerned_mother_title": "Mme",
100
        "concerned_names_common": "Whatever",
101
        "concerned_names_family": "Whatever",
102
        "concerned_names_use": "",
103
        "concerned_title_raw": "M",
104
        "copies": "1",
105
        "document_kind": "Copie Integrale",
106
        "document_kind_raw": "CPI",
107
        "event_date_end": "",
108
        "event_date_start": "2012-07-14",
109
        "event_district": "Val-de-Marne",
110
        "reason": "They are just messy"
111
    },
112
    "id": "demande-d-un-acte-de-deces/1",
113
    "last_update_time": "2016-10-20T14:41:20Z",
114
    "receipt_time": "2016-10-20T14:41:20Z",
115
    "roles": {
116
        "_receiver": [
117
            {
118
                "allows_backoffice_access": true,
119
                "details": "",
120
                "emails": [],
121
                "emails_to_members": false,
122
                "id": "22",
123
                "name": "Etat civil Acte",
124
                "slug": "etat-civil-acte",
125
                "text": "Etat civil Acte"
126
            }
127
        ],
128
        "actions": [
129
            {
130
                "allows_backoffice_access": true,
131
                "details": "",
132
                "emails": [],
133
                "emails_to_members": false,
134
                "id": "3",
135
                "name": "agent",
136
                "slug": "agent",
137
                "text": "agent"
138
            }
139
        ],
140
        "concerned": [
141
            {
142
                "allows_backoffice_access": true,
143
                "details": "",
144
                "emails": [],
145
                "emails_to_members": false,
146
                "id": "3",
147
                "name": "agent",
148
                "slug": "agent",
149
                "text": "agent"
150
            },
151
            {
152
                "allows_backoffice_access": true,
153
                "details": "",
154
                "emails": [],
155
                "emails_to_members": false,
156
                "id": "22",
157
                "name": "Etat civil Acte",
158
                "slug": "etat-civil-acte",
159
                "text": "Etat civil Acte"
160
            }
161
        ]
162
    },
163
    "submission": {
164
        "backoffice": false,
165
        "channel": "web"
166
    },
167
    "url": "http://wcs.debian.local/demande-d-un-acte-de-deces/1/",
168
    "user": {
169
        "email": "chelsea@whatever.com",
170
        "id": "2",
171
        "name": "chelsea"
172
    },
173
    "workflow": {
174
        "fields": {
175
            "aec_type": null,
176
            "aec_type_raw": null
177
        },
178
        "status": {
179
            "id": "2",
180
            "name": "new"
181
        }
182
    }
183
}
tests/data/cityweb/formdata_mar.json
1
{
2
    "criticality_level": 0,
3
    "display_id": "16-1",
4
    "display_name": "Demande d'un acte de mariage #16-1",
5
    "evolution": [
6
        {
7
            "status": "2",
8
            "time": "2016-10-20T15:17:05Z",
9
            "who": {
10
                "email": "chelsea@whatever.com",
11
                "id": "2",
12
                "name": "chelsea"
13
            }
14
        }
15
    ],
16
    "extra": {
17
        "code_insee": "54395",
18
        "code_postal": "54000",
19
        "event_city": "Nantes",
20
        "event_country": "France",
21
        "event_kind": "Mariage",
22
        "event_kind_raw": "MAR"
23
    },
24
    "fields": {
25
        "applicant_is_concerned": true,
26
        "applicant_address_1": "37 Rue du Cheval Blanc",
27
        "applicant_address_2": "",
28
        "applicant_address_city": "Nancy",
29
        "applicant_address_country": "France",
30
        "applicant_address_district": "Meurthe-et-Moselle",
31
        "applicant_address_mail": "chelsea@whatever.com",
32
        "applicant_address_tel": "+33 6 55 44 22 11",
33
        "applicant_address_zipcode": "54000",
34
        "applicant_birth_city": "Nantes",
35
        "applicant_birth_country": "France",
36
        "applicant_birth_date": "11/07/1989",
37
        "applicant_birth_district": "Loire-Atlantique",
38
        "applicant_firstnames": "Kim Chelsea",
39
        "applicant_gender": "Femelle",
40
        "applicant_gender_raw": "F",
41
        "applicant_kind": "personne concern\u00e9",
42
        "applicant_names_common": "Whatever",
43
        "applicant_names_family": "Whatever",
44
        "applicant_names_use": "nom d'epouse",
45
        "applicant_title": "Madame",
46
        "applicant_title_raw": "Mme",
47
        "canal": "internet",
48
        "concerned_address_1": "",
49
        "concerned_address_2": "",
50
        "concerned_address_city": "",
51
        "concerned_address_country": "",
52
        "concerned_address_district": "",
53
        "concerned_address_mail": "",
54
        "concerned_address_tel": "",
55
        "concerned_address_zipcode": "",
56
        "concerned_birth_city": "",
57
        "concerned_birth_country": "",
58
        "concerned_birth_date": "",
59
        "concerned_birth_district": "",
60
        "concerned_father_address_1": "21 Bvd Henri Orion",
61
        "concerned_father_address_2": "Batiment A, Apt 18",
62
        "concerned_father_address_city": "Nantes",
63
        "concerned_father_address_country": "France",
64
        "concerned_father_address_district": "Loite-Atlantique",
65
        "concerned_father_address_mail": "",
66
        "concerned_father_address_tel": "",
67
        "concerned_father_address_zipcode": "44000",
68
        "concerned_father_birth_city": "Orvault",
69
        "concerned_father_birth_country": "France",
70
        "concerned_father_birth_date": "11-04-1955",
71
        "concerned_father_birth_district": "Loire-Atlantique",
72
        "concerned_father_firstnames": "John Oliver",
73
        "concerned_father_gender": "Male",
74
        "concerned_father_gender_raw": "M",
75
        "concerned_father_names_common": "Smith",
76
        "concerned_father_names_family": "Smith",
77
        "concerned_father_names_use": "Smith",
78
        "concerned_father_title": "Monsieur",
79
        "concerned_father_title_raw": "M",
80
        "concerned_firstnames": "",
81
        "concerned_gender": "",
82
        "concerned_kind": "",
83
        "concerned_mother_address_1": "21 Bvd Henri Orion",
84
        "concerned_mother_address_2": "Batiment A, Apt 18",
85
        "concerned_mother_address_city": "Nantes",
86
        "concerned_mother_address_country": "France",
87
        "concerned_mother_address_district": "Loite-Atlantique",
88
        "concerned_mother_address_mail": "kim@gmail.com",
89
        "concerned_mother_address_tel": "",
90
        "concerned_mother_address_zipcode": "44000",
91
        "concerned_mother_birth_city": "Seoul",
92
        "concerned_mother_birth_country": "South Korea",
93
        "concerned_mother_birth_date": "10-05-1960",
94
        "concerned_mother_birth_district": "",
95
        "concerned_mother_firstnames": "Kim",
96
        "concerned_mother_gender": "",
97
        "concerned_mother_kind": "",
98
        "concerned_mother_names_common": "Smith",
99
        "concerned_mother_names_family": "Smith",
100
        "concerned_mother_names_use": "nom d'\u00e9pouse",
101
        "concerned_mother_title": "Mme",
102
        "concerned_names_common": "",
103
        "concerned_names_family": "",
104
        "concerned_names_use": "",
105
        "concerned_title": "",
106
        "copies": "2",
107
        "document_kind": "Copie Integrale",
108
        "document_kind_raw": "CPI",
109
        "event_date_end": "",
110
        "event_date_start": "2012-07-14",
111
        "event_district": "Val-de-Marne",
112
        "partner_address_1": "37 Rue du cheval Blanc",
113
        "partner_address_2": "",
114
        "partner_address_city": "Nancy",
115
        "partner_address_country": "France",
116
        "partner_address_district": "Meurthe-et-Moselle",
117
        "partner_address_mail": "kevin@lost.com",
118
        "partner_address_tel": "",
119
        "partner_address_zipcode": "54000",
120
        "partner_birth_city": "Paris",
121
        "partner_birth_country": "France",
122
        "partner_birth_date": "25-11-1985",
123
        "partner_birth_district": "",
124
        "partner_father_address_1": "West 12th Avenue",
125
        "partner_father_address_2": "",
126
        "partner_father_address_city": "Vancouver",
127
        "partner_father_address_country": "Canada",
128
        "partner_father_address_district": "British Columbia",
129
        "partner_father_address_mail": "",
130
        "partner_father_address_tel": "",
131
        "partner_father_address_zipcode": "BC V5Y 1V4",
132
        "partner_father_birth_city": "Vancouver",
133
        "partner_father_birth_country": "Canada",
134
        "partner_father_birth_date": "23-02-1957",
135
        "partner_father_birth_district": "British Columbia",
136
        "partner_father_firstnames": "Eric Eliot",
137
        "partner_father_gender": "Male",
138
        "partner_father_gender_raw": "M",
139
        "partner_father_names_common": "Whatever",
140
        "partner_father_names_family": "Whatever",
141
        "partner_father_names_use": "",
142
        "partner_father_title": "Monsieur",
143
        "partner_father_title_raw": "M",
144
        "partner_firstnames": "Kevin Johnny",
145
        "partner_gender": "Male",
146
        "partner_gender_raw": "M",
147
        "partner_mother_address_1": "",
148
        "partner_mother_address_2": "",
149
        "partner_mother_address_city": "",
150
        "partner_mother_address_country": "",
151
        "partner_mother_address_district": "",
152
        "partner_mother_address_mail": "",
153
        "partner_mother_address_tel": "",
154
        "partner_mother_address_zipcode": "",
155
        "partner_mother_birth_city": "Sao Paolo",
156
        "partner_mother_birth_country": "Brazil",
157
        "partner_mother_birth_date": "11/06/1962",
158
        "partner_mother_birth_district": "",
159
        "partner_mother_firstnames": "Clara",
160
        "partner_mother_gender": "F",
161
        "partner_mother_names_common": "Whatever",
162
        "partner_mother_names_family": "Da Silva",
163
        "partner_mother_names_use": "nom d'epouse",
164
        "partner_mother_title": "Madame",
165
        "partner_mother_title_raw": "M",
166
        "partner_names_common": "Whatever",
167
        "partner_names_family": "Whatever",
168
        "partner_title": "M",
169
        "reason": "They are just messy"
170
    },
171
    "id": "demande-d-un-acte-de-mariage/1",
172
    "last_update_time": "2016-10-20T15:17:05Z",
173
    "receipt_time": "2016-10-20T15:17:05Z",
174
    "roles": {
175
        "_receiver": [
176
            {
177
                "allows_backoffice_access": true,
178
                "details": "",
179
                "emails": [],
180
                "emails_to_members": false,
181
                "id": "22",
182
                "name": "Etat civil Acte",
183
                "slug": "etat-civil-acte",
184
                "text": "Etat civil Acte"
185
            }
186
        ],
187
        "actions": [
188
            {
189
                "allows_backoffice_access": true,
190
                "details": "",
191
                "emails": [],
192
                "emails_to_members": false,
193
                "id": "3",
194
                "name": "agent",
195
                "slug": "agent",
196
                "text": "agent"
197
            }
198
        ],
199
        "concerned": [
200
            {
201
                "allows_backoffice_access": true,
202
                "details": "",
203
                "emails": [],
204
                "emails_to_members": false,
205
                "id": "3",
206
                "name": "agent",
207
                "slug": "agent",
208
                "text": "agent"
209
            },
210
            {
211
                "allows_backoffice_access": true,
212
                "details": "",
213
                "emails": [],
214
                "emails_to_members": false,
215
                "id": "22",
216
                "name": "Etat civil Acte",
217
                "slug": "etat-civil-acte",
218
                "text": "Etat civil Acte"
219
            }
220
        ]
221
    },
222
    "submission": {
223
        "backoffice": false,
224
        "channel": "web"
225
    },
226
    "url": "http://wcs.debian.local/demande-d-un-acte-de-mariage/1/",
227
    "user": {
228
        "email": "chelsea@whatever.com",
229
        "id": "2",
230
        "name": "chelsea"
231
    },
232
    "workflow": {
233
        "fields": {
234
            "aec_type": null,
235
            "aec_type_raw": null
236
        },
237
        "status": {
238
            "id": "2",
239
            "name": "new"
240
        }
241
    }
242
}
tests/data/cityweb/formdata_nais.json
1
{
2
    "criticality_level": 0,
3
    "display_id": "15-4",
4
    "display_name": "Demande d'un acte de naissance #15-4",
5
    "evolution": [
6
        {
7
            "status": "2",
8
            "time": "2016-10-19T14:00:19Z",
9
            "who": {
10
                "email": "chelsea@whatever.com",
11
                "id": "2",
12
                "name": "chelsea"
13
            }
14
        }
15
    ],
16
    "extra": {
17
        "code_insee": "54395",
18
        "code_postal": "54000",
19
        "event_city": "Nantes",
20
        "event_country": "France",
21
        "event_kind": "Naissance",
22
        "event_kind_raw": "NAI"
23
    },
24
    "fields": {
25
        "applicant_address_1": "37 Rue du Cheval Blanc",
26
        "applicant_address_2": "",
27
        "applicant_address_city": "Nancy",
28
        "applicant_address_country": "France",
29
        "applicant_address_district": "Meurthe-et-Moselle",
30
        "applicant_address_mail": "chelsea@whatever.com",
31
        "applicant_address_tel": "+33 6 55 44 22 11",
32
        "applicant_address_zipcode": "54000",
33
        "applicant_birth_city": "Nantes",
34
        "applicant_birth_country": "France",
35
        "applicant_birth_date": "11/07/1989",
36
        "applicant_birth_district": "Loire-Atlantique",
37
        "applicant_firstnames": "Kim Chelsea",
38
        "applicant_gender": "Femelle",
39
        "applicant_gender_raw": "F",
40
        "applicant_is_concerned": "true",
41
        "applicant_kind": "personne concern\u00e9",
42
        "applicant_names_common": "Whatever",
43
        "applicant_names_family": "Whatever",
44
        "applicant_names_use": "nom d'epouse",
45
        "applicant_title": "Madame",
46
        "applicant_title_raw": "Mme",
47
        "canal": "internet",
48
        "concerned_address_1": "",
49
        "concerned_address_2": "",
50
        "concerned_address_city": "",
51
        "concerned_address_country": "",
52
        "concerned_address_district": "",
53
        "concerned_address_mail": "",
54
        "concerned_address_tel": "",
55
        "concerned_address_zipcode": "",
56
        "concerned_birth_city": "Harare",
57
        "concerned_birth_country": "Zimbabwe",
58
        "concerned_birth_date": "1980-02-29",
59
        "concerned_birth_district": "",
60
        "concerned_father_address_1": "21 Bvd Henri Orion",
61
        "concerned_father_address_2": "Batiment A, Apt 18",
62
        "concerned_father_address_city": "Nantes",
63
        "concerned_father_address_country": "France",
64
        "concerned_father_address_district": "Loite-Atlantique",
65
        "concerned_father_address_mail": "",
66
        "concerned_father_address_tel": "",
67
        "concerned_father_address_zipcode": "44000",
68
        "concerned_father_birth_city": "Orvault",
69
        "concerned_father_birth_country": "France",
70
        "concerned_father_birth_date": "11-04-1955",
71
        "concerned_father_birth_district": "Loire-Atlantique",
72
        "concerned_father_firstnames": "John Oliver",
73
        "concerned_father_gender": "Male",
74
        "concerned_father_gender_raw": "M",
75
        "concerned_father_names_common": "Smith",
76
        "concerned_father_names_family": "Smith",
77
        "concerned_father_names_use": "Smith",
78
        "concerned_father_title": "Monsieur",
79
        "concerned_father_title_raw": "M",
80
        "concerned_firstnames": "Kevin",
81
        "concerned_gender_raw": "M",
82
        "concerned_mother_address_1": "21 Bvd Henri Orion",
83
        "concerned_mother_address_2": "Batiment A, Apt 18",
84
        "concerned_mother_address_city": "Nantes",
85
        "concerned_mother_address_country": "France",
86
        "concerned_mother_address_district": "Loite-Atlantique",
87
        "concerned_mother_address_mail": "kim@gmail.com",
88
        "concerned_mother_address_tel": "",
89
        "concerned_mother_address_zipcode": "44000",
90
        "concerned_mother_birth_city": "Seoul",
91
        "concerned_mother_birth_country": "South Korea",
92
        "concerned_mother_birth_date": "10-05-1960",
93
        "concerned_mother_birth_district": "",
94
        "concerned_mother_firstnames": "Kim",
95
        "concerned_mother_gender": "",
96
        "concerned_mother_kind": "",
97
        "concerned_mother_names_common": "Smith",
98
        "concerned_mother_names_family": "Smith",
99
        "concerned_mother_names_use": "nom d'\u00e9pouse",
100
        "concerned_mother_title": "Mme",
101
        "concerned_names_common": "Whatever",
102
        "concerned_names_family": "Whatever",
103
        "concerned_names_use": "",
104
        "concerned_title_raw": "M",
105
        "copies": "1",
106
        "document_kind": "Copie Integrale",
107
        "document_kind_raw": "CPI",
108
        "event_date_end": "",
109
        "event_date_start": "2012-07-14",
110
        "event_district": "Val-de-Marne",
111
        "reason": "They are just messy"
112
    },
113
    "id": "demande-d-un-acte-de-naissance/4",
114
    "last_update_time": "2016-10-19T14:00:19Z",
115
    "receipt_time": "2016-10-19T14:00:19Z",
116
    "roles": {
117
        "_receiver": [
118
            {
119
                "allows_backoffice_access": true,
120
                "details": "",
121
                "emails": [],
122
                "emails_to_members": false,
123
                "id": "22",
124
                "name": "Etat civil Acte",
125
                "slug": "etat-civil-acte",
126
                "text": "Etat civil Acte"
127
            }
128
        ],
129
        "actions": [
130
            {
131
                "allows_backoffice_access": true,
132
                "details": "",
133
                "emails": [],
134
                "emails_to_members": false,
135
                "id": "3",
136
                "name": "agent",
137
                "slug": "agent",
138
                "text": "agent"
139
            }
140
        ],
141
        "concerned": [
142
            {
143
                "allows_backoffice_access": true,
144
                "details": "",
145
                "emails": [],
146
                "emails_to_members": false,
147
                "id": "3",
148
                "name": "agent",
149
                "slug": "agent",
150
                "text": "agent"
151
            },
152
            {
153
                "allows_backoffice_access": true,
154
                "details": "",
155
                "emails": [],
156
                "emails_to_members": false,
157
                "id": "22",
158
                "name": "Etat civil Acte",
159
                "slug": "etat-civil-acte",
160
                "text": "Etat civil Acte"
161
            }
162
        ]
163
    },
164
    "submission": {
165
        "backoffice": false,
166
        "channel": "web"
167
    },
168
    "url": "http://wcs.debian.local/demande-d-un-acte-de-naissance/4/",
169
    "user": {
170
        "email": "chelsea@whatever.com",
171
        "id": "2",
172
        "name": "chelsea"
173
    },
174
    "workflow": {
175
        "fields": {
176
            "aec_type": "Acte de naissance",
177
            "aec_type_raw": "NAISSANCE"
178
        },
179
        "status": {
180
            "id": "2",
181
            "name": "new"
182
        }
183
    }
184
}
0
-