Commit Graph

23 Commits

Author SHA1 Message Date
Valentin Deniaud 989fb52719 misc: apply pyupgrade (#61865) 2022-09-29 16:22:29 +02:00
Benjamin Dauvergne 3530430787 atos_genesys; add dossier-by-pair endpoint (#67250) 2022-07-29 19:03:03 +02:00
Benjamin Dauvergne e67cdcdfb4 atos_genesys: add a configurable timeout and report timeout errors (#65701) 2022-05-30 13:38:47 +02:00
Lauréline Guérin 2e59a6c4be
misc: fix useless-object-inheritance pylint error (#62099) 2022-03-25 09:03:36 +01:00
Lauréline Guérin 3dbee7bc63
misc: fix consider-using-with pylint error (#62099) 2022-03-25 09:03:36 +01:00
Lauréline Guérin 59182339ab
misc: fix redundant-u-string-prefix pylint error (#62099) 2022-03-25 09:03:36 +01:00
Lauréline Guérin dbb8416537
misc: add __init__ file to tests dir (#62099) 2022-03-25 08:24:24 +01:00
Nicolas Roche 06db6d8767 misc: apply isort (#52937) 2021-05-07 13:51:13 +02:00
Frédéric Péters 3d9df1e526 trivial: apply black (#49820) 2021-02-20 16:28:47 +01:00
Lauréline Guérin d25d78f615
misc: fix test failures with pytest's --reuse-db param (#36608) 2019-10-17 15:46:32 +02:00
Benjamin Dauvergne b4aad9cd5f atos_genesys: make search endpoint a datasource of contact informations (#33492)
The datasource is only provisionned if the search find one and only one
dossier, otherwise it's empty. We also return if for the given NameID
the person is already paired.
2019-06-20 01:34:22 +02:00
Benjamin Dauvergne 5a0027422a atos-genesys: modify cherche_beneficiaire URL (#33403) 2019-05-24 15:20:26 +02:00
Benjamin Dauvergne d643e759b7 atos-genesys: add new endpoints search and link-by-id-per (#32618)
xml_request had to be factorized to created xml_request_multiple as the
Genesys web-service for search return multiple results
(all other WS returns only one).

call_select_usager was also factorized to serve as basis for
call_select_usager_by_ref.

The search endpoint does a first call to Genesys for listing REF_PER then
for each REF_PER a call to selectUsagerByRefPer to get the ID_PER and
contact informations necessary for appairage.
2019-04-25 13:52:09 +02:00
Benjamin Dauvergne 6427389205 atos-genesys: factorize RESPONSE_SELECT_USAGER in tests (#32618) 2019-04-25 13:49:03 +02:00
Benjamin Dauvergne 33f2a98e25 atos-genesys: normalize webservice url before use (#32618)
All web-services exposed does not have the same prefix some are under the
path WSUsagerPublik/services/PublikService/ but those for intermediation
will be under WSIntermed/services/IntermediationService/. As we used the URL
with prefix included as base_url we must normalize it now
(remove prefix from base_url).
2019-04-25 13:48:27 +02:00
Benjamin Dauvergne 5bee389a63 atos-genesys: do not use threads (#29320)
As threads were hiding errors from asynchronous requests, we now still
hide errors when cache is full, but log them.
2018-12-24 08:47:15 +01:00
Benjamin Dauvergne 236c7b09d8 atos-genesys: convert SEXE to CIVILITE (#28381) 2018-11-27 11:57:51 +01:00
Benjamin Dauvergne 0a61d1bc04 atos-genesys: sort DEMANDES and DROITS rows by COD_APPLI (#28381) 2018-11-27 11:53:37 +01:00
Benjamin Dauvergne a2c4634123 do not use pytest.mark.freeze_time (#27345) 2018-10-21 16:02:48 +02:00
Emmanuel Cazenave 0b3210acac skip atos-genesys test, temporary fix (#27345) 2018-10-18 15:37:53 +02:00
Benjamin Dauvergne 6c4abb1975 atos-genesys: add link_id parameter to WS /dossiers (fixes #27236) 2018-10-12 16:25:15 +02:00
Benjamin Dauvergne 8d901ede71 atos-genesys: make a datasource of "dossiers" WS (fixes #26871)
Also expose the Link.id value to allow calling the unlink WS with it.
2018-10-02 16:41:51 +02:00
Benjamin Dauvergne 34f2a6321d add ATOS Genesys connector (fixes #26333)
It provides the following webservices:
- /codifications, to list Genesys referentials
- /codifications/<category>/, to list values in a specific Genesys
referential
- /link, to create a link between a NameID and an account in Genesys
extranet
- /unlink, to delete a link created using the previous WS,
- /dossiers, to get all datas associates to Genesys extranet accounts
for a given NameID
2018-09-27 15:11:58 +02:00