toulouse-maelis: add maidenName to RL json schema (#71642)
This commit is contained in:
parent
8b4db641ba
commit
f76b14b411
|
@ -102,6 +102,10 @@ ID_PROPERTIES = {
|
||||||
'description': 'Nom',
|
'description': 'Nom',
|
||||||
'type': 'string',
|
'type': 'string',
|
||||||
},
|
},
|
||||||
|
'maidenName': {
|
||||||
|
'description': "Nom de jeune fille ",
|
||||||
|
'oneOf': [{'type': 'string'}, {'type': 'null'}],
|
||||||
|
},
|
||||||
'birth': BIRTH_SCHEMA,
|
'birth': BIRTH_SCHEMA,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
<rl2>
|
<rl2>
|
||||||
<firstname>JANE</firstname>
|
<firstname>JANE</firstname>
|
||||||
<lastname>DOE</lastname>
|
<lastname>DOE</lastname>
|
||||||
|
<maidenName>Smith</maidenName>
|
||||||
<quality>MERE</quality>
|
<quality>MERE</quality>
|
||||||
<civility>MME</civility>
|
<civility>MME</civility>
|
||||||
<birth>
|
<birth>
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
<num>613879</num>
|
<num>613879</num>
|
||||||
<firstname>JANE</firstname>
|
<firstname>JANE</firstname>
|
||||||
<lastname>DOE</lastname>
|
<lastname>DOE</lastname>
|
||||||
|
<maidenName>Smith</maidenName>
|
||||||
<quality>MERE</quality>
|
<quality>MERE</quality>
|
||||||
<civility>MME</civility>
|
<civility>MME</civility>
|
||||||
<birth>
|
<birth>
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
<num>613879</num>
|
<num>613879</num>
|
||||||
<lastname>DOE</lastname>
|
<lastname>DOE</lastname>
|
||||||
<firstname>JANE</firstname>
|
<firstname>JANE</firstname>
|
||||||
|
<maidenName>SMITH</maidenName>
|
||||||
<quality>MERE</quality>
|
<quality>MERE</quality>
|
||||||
<civility>MME</civility>
|
<civility>MME</civility>
|
||||||
<birth>
|
<birth>
|
||||||
|
|
|
@ -770,7 +770,7 @@ def test_read_rl2(mocked_post, mocked_get, con, app):
|
||||||
'num': '613879',
|
'num': '613879',
|
||||||
'lastname': 'DOE',
|
'lastname': 'DOE',
|
||||||
'firstname': 'JANE',
|
'firstname': 'JANE',
|
||||||
'maidenName': None,
|
'maidenName': 'SMITH',
|
||||||
'quality': 'MERE',
|
'quality': 'MERE',
|
||||||
'civility': 'MME',
|
'civility': 'MME',
|
||||||
'birth': {
|
'birth': {
|
||||||
|
@ -1624,6 +1624,7 @@ def test_create_rl2(mocked_post, mocked_get, con, app):
|
||||||
'civility': 'MME',
|
'civility': 'MME',
|
||||||
'firstname': 'JANE',
|
'firstname': 'JANE',
|
||||||
'lastname': 'DOE',
|
'lastname': 'DOE',
|
||||||
|
'maidenName': 'Smith',
|
||||||
'quality': 'MERE',
|
'quality': 'MERE',
|
||||||
'birth/dateBirth': '1940-06-22',
|
'birth/dateBirth': '1940-06-22',
|
||||||
'adresse/num': '170',
|
'adresse/num': '170',
|
||||||
|
@ -1645,6 +1646,7 @@ def test_create_rl2_not_linked_error(con, app):
|
||||||
'civility': 'MME',
|
'civility': 'MME',
|
||||||
'firstname': 'JANE',
|
'firstname': 'JANE',
|
||||||
'lastname': 'DOE',
|
'lastname': 'DOE',
|
||||||
|
'maidenName': 'Smith',
|
||||||
'quality': 'MERE',
|
'quality': 'MERE',
|
||||||
'birth/dateBirth': '1940-06-22',
|
'birth/dateBirth': '1940-06-22',
|
||||||
'adresse/num': '170',
|
'adresse/num': '170',
|
||||||
|
@ -1668,6 +1670,7 @@ def test_create_rl2_connection_error(mocked_post, mocked_get, con, app):
|
||||||
'civility': 'MME',
|
'civility': 'MME',
|
||||||
'firstname': 'JANE',
|
'firstname': 'JANE',
|
||||||
'lastname': 'DOE',
|
'lastname': 'DOE',
|
||||||
|
'maidenName': 'Smith',
|
||||||
'quality': 'MERE',
|
'quality': 'MERE',
|
||||||
'birth/dateBirth': '1940-06-22',
|
'birth/dateBirth': '1940-06-22',
|
||||||
'adresse/num': '170',
|
'adresse/num': '170',
|
||||||
|
@ -1692,6 +1695,7 @@ def test_create_rl2_already_exists_error(mocked_post, mocked_get, con, app):
|
||||||
'civility': 'MME',
|
'civility': 'MME',
|
||||||
'firstname': 'JANE',
|
'firstname': 'JANE',
|
||||||
'lastname': 'DOE',
|
'lastname': 'DOE',
|
||||||
|
'maidenName': 'Smith',
|
||||||
'quality': 'MERE',
|
'quality': 'MERE',
|
||||||
'birth/dateBirth': '1940-06-22',
|
'birth/dateBirth': '1940-06-22',
|
||||||
'adresse/num': '170',
|
'adresse/num': '170',
|
||||||
|
@ -1716,6 +1720,7 @@ def test_create_rl2_wrong_referential_key_error(mocked_post, mocked_get, con, ap
|
||||||
'civility': 'MME',
|
'civility': 'MME',
|
||||||
'firstname': 'JANE',
|
'firstname': 'JANE',
|
||||||
'lastname': 'DOE',
|
'lastname': 'DOE',
|
||||||
|
'maidenName': 'Smith',
|
||||||
'quality': 'plop',
|
'quality': 'plop',
|
||||||
'birth/dateBirth': '1940-06-22',
|
'birth/dateBirth': '1940-06-22',
|
||||||
'adresse/num': '170',
|
'adresse/num': '170',
|
||||||
|
@ -1740,6 +1745,7 @@ def test_update_rl2(mocked_post, mocked_get, con, app):
|
||||||
'civility': 'MME',
|
'civility': 'MME',
|
||||||
'firstname': 'JANE',
|
'firstname': 'JANE',
|
||||||
'lastname': 'DOE',
|
'lastname': 'DOE',
|
||||||
|
'maidenName': 'Smith',
|
||||||
'quality': 'MERE',
|
'quality': 'MERE',
|
||||||
'birth/dateBirth': '1940-06-22',
|
'birth/dateBirth': '1940-06-22',
|
||||||
}
|
}
|
||||||
|
@ -1757,6 +1763,7 @@ def test_update_rl2_not_linked_error(con, app):
|
||||||
'firstname': 'JANE',
|
'firstname': 'JANE',
|
||||||
'lastname': 'DOE',
|
'lastname': 'DOE',
|
||||||
'quality': 'MERE',
|
'quality': 'MERE',
|
||||||
|
'maidenName': 'Smith',
|
||||||
'birth/dateBirth': '1940-06-22',
|
'birth/dateBirth': '1940-06-22',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1775,6 +1782,7 @@ def test_update_rl2_connection_error(mocked_post, mocked_get, con, app):
|
||||||
'civility': 'MME',
|
'civility': 'MME',
|
||||||
'firstname': 'JANE',
|
'firstname': 'JANE',
|
||||||
'lastname': 'DOE',
|
'lastname': 'DOE',
|
||||||
|
'maidenName': 'Smith',
|
||||||
'quality': 'MERE',
|
'quality': 'MERE',
|
||||||
'birth/dateBirth': '1940-06-22',
|
'birth/dateBirth': '1940-06-22',
|
||||||
}
|
}
|
||||||
|
@ -1795,6 +1803,7 @@ def test_update_rl2_not_exists_error(mocked_post, mocked_get, con, app):
|
||||||
'civility': 'MME',
|
'civility': 'MME',
|
||||||
'firstname': 'JANE',
|
'firstname': 'JANE',
|
||||||
'lastname': 'DOE',
|
'lastname': 'DOE',
|
||||||
|
'maidenName': 'Smith',
|
||||||
'quality': 'MERE',
|
'quality': 'MERE',
|
||||||
'birth/dateBirth': '1940-06-22',
|
'birth/dateBirth': '1940-06-22',
|
||||||
}
|
}
|
||||||
|
@ -1815,6 +1824,7 @@ def test_update_rl2_wrong_referential_key_error(mocked_post, mocked_get, con, ap
|
||||||
'civility': 'MME',
|
'civility': 'MME',
|
||||||
'firstname': 'JANE',
|
'firstname': 'JANE',
|
||||||
'lastname': 'DOE',
|
'lastname': 'DOE',
|
||||||
|
'maidenName': 'Smith',
|
||||||
'quality': 'plop',
|
'quality': 'plop',
|
||||||
'birth/dateBirth': '1940-06-22',
|
'birth/dateBirth': '1940-06-22',
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue