toulouse-maelis: add maidenName to RL json schema (#71642)

This commit is contained in:
Nicolas Roche 2022-11-20 20:23:13 +01:00
parent 8b4db641ba
commit f76b14b411
5 changed files with 18 additions and 1 deletions

View File

@ -102,6 +102,10 @@ ID_PROPERTIES = {
'description': 'Nom',
'type': 'string',
},
'maidenName': {
'description': "Nom de jeune fille ",
'oneOf': [{'type': 'string'}, {'type': 'null'}],
},
'birth': BIRTH_SCHEMA,
}

View File

@ -17,6 +17,7 @@
<rl2>
<firstname>JANE</firstname>
<lastname>DOE</lastname>
<maidenName>Smith</maidenName>
<quality>MERE</quality>
<civility>MME</civility>
<birth>

View File

@ -18,6 +18,7 @@
<num>613879</num>
<firstname>JANE</firstname>
<lastname>DOE</lastname>
<maidenName>Smith</maidenName>
<quality>MERE</quality>
<civility>MME</civility>
<birth>

View File

@ -41,6 +41,7 @@
<num>613879</num>
<lastname>DOE</lastname>
<firstname>JANE</firstname>
<maidenName>SMITH</maidenName>
<quality>MERE</quality>
<civility>MME</civility>
<birth>

View File

@ -770,7 +770,7 @@ def test_read_rl2(mocked_post, mocked_get, con, app):
'num': '613879',
'lastname': 'DOE',
'firstname': 'JANE',
'maidenName': None,
'maidenName': 'SMITH',
'quality': 'MERE',
'civility': 'MME',
'birth': {
@ -1624,6 +1624,7 @@ def test_create_rl2(mocked_post, mocked_get, con, app):
'civility': 'MME',
'firstname': 'JANE',
'lastname': 'DOE',
'maidenName': 'Smith',
'quality': 'MERE',
'birth/dateBirth': '1940-06-22',
'adresse/num': '170',
@ -1645,6 +1646,7 @@ def test_create_rl2_not_linked_error(con, app):
'civility': 'MME',
'firstname': 'JANE',
'lastname': 'DOE',
'maidenName': 'Smith',
'quality': 'MERE',
'birth/dateBirth': '1940-06-22',
'adresse/num': '170',
@ -1668,6 +1670,7 @@ def test_create_rl2_connection_error(mocked_post, mocked_get, con, app):
'civility': 'MME',
'firstname': 'JANE',
'lastname': 'DOE',
'maidenName': 'Smith',
'quality': 'MERE',
'birth/dateBirth': '1940-06-22',
'adresse/num': '170',
@ -1692,6 +1695,7 @@ def test_create_rl2_already_exists_error(mocked_post, mocked_get, con, app):
'civility': 'MME',
'firstname': 'JANE',
'lastname': 'DOE',
'maidenName': 'Smith',
'quality': 'MERE',
'birth/dateBirth': '1940-06-22',
'adresse/num': '170',
@ -1716,6 +1720,7 @@ def test_create_rl2_wrong_referential_key_error(mocked_post, mocked_get, con, ap
'civility': 'MME',
'firstname': 'JANE',
'lastname': 'DOE',
'maidenName': 'Smith',
'quality': 'plop',
'birth/dateBirth': '1940-06-22',
'adresse/num': '170',
@ -1740,6 +1745,7 @@ def test_update_rl2(mocked_post, mocked_get, con, app):
'civility': 'MME',
'firstname': 'JANE',
'lastname': 'DOE',
'maidenName': 'Smith',
'quality': 'MERE',
'birth/dateBirth': '1940-06-22',
}
@ -1757,6 +1763,7 @@ def test_update_rl2_not_linked_error(con, app):
'firstname': 'JANE',
'lastname': 'DOE',
'quality': 'MERE',
'maidenName': 'Smith',
'birth/dateBirth': '1940-06-22',
}
@ -1775,6 +1782,7 @@ def test_update_rl2_connection_error(mocked_post, mocked_get, con, app):
'civility': 'MME',
'firstname': 'JANE',
'lastname': 'DOE',
'maidenName': 'Smith',
'quality': 'MERE',
'birth/dateBirth': '1940-06-22',
}
@ -1795,6 +1803,7 @@ def test_update_rl2_not_exists_error(mocked_post, mocked_get, con, app):
'civility': 'MME',
'firstname': 'JANE',
'lastname': 'DOE',
'maidenName': 'Smith',
'quality': 'MERE',
'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',
'firstname': 'JANE',
'lastname': 'DOE',
'maidenName': 'Smith',
'quality': 'plop',
'birth/dateBirth': '1940-06-22',
}