Projet

Général

Profil

Development #70933

Ajouter un flag aux classes Anonymous*Service pour les différencier des autres utilisateurs

Ajouté par Benjamin Dauvergne il y a plus d'un an. Mis à jour il y a plus d'un an.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
02 novembre 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Ça évitera de jouer avec le retour de '__str__' ou d'avoir à importer les classes.


Fichiers


Demandes liées

Lié à Authentic 2 - Development #67901: web-service 'keepalive' pour décaler l'expiration d'un compteFermé03 août 2022

Actions

Révisions associées

Révision 6bea1179 (diff)
Ajouté par Benjamin Dauvergne il y a plus d'un an

rest_authentication: add flag to differentiate anonymous service users (#70933)

Révision 0f804859 (diff)
Ajouté par Benjamin Dauvergne il y a plus d'un an

tests: improve determinism of some asserts (#70933)

Historique

#1

Mis à jour par Benjamin Dauvergne il y a plus d'un an

Ça fait suite au commentaire de Fred #67901-8

#4

Mis à jour par Benjamin Dauvergne il y a plus d'un an

  • Lié à Development #67901: web-service 'keepalive' pour décaler l'expiration d'un compte ajouté
#5

Mis à jour par Frédéric Péters il y a plus d'un an

J'imagine qu'il faut rebaser pour avoir jenkins ok.

#6

Mis à jour par Benjamin Dauvergne il y a plus d'un an

Là les tests plantent parce qu'un assert est un peu trop laxiste :

>           assert resp.text.count('2.0') == 1
E           assert 3 == 1
    <link rel="stylesheet" type="text/css" media="all" href="/static/css/gadjo.css?20221112.0944 "/>
...                                                                                       ^^^ 
    <script src="/static/js/gadjo.js?20221112.0944"></script>
                                            ^^^
#8

Mis à jour par Frédéric Péters il y a plus d'un an

  • Statut changé de Solution proposée à Solution validée
#9

Mis à jour par Benjamin Dauvergne il y a plus d'un an

  • Statut changé de Solution validée à Résolu (à déployer)
commit 0f8048596824815154a14183220e64ce253636e7
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Sat Nov 12 10:51:30 2022 +0100

    tests: improve determinism of some asserts (#70933)

commit 6bea11793f3bf8a45090cefed615658ef926d213
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Wed Nov 2 14:17:07 2022 +0100

    rest_authentication: add flag to differentiate anonymous service users (#70933)
#10

Mis à jour par Transition automatique il y a plus d'un an

  • Statut changé de Résolu (à déployer) à Solution déployée
#11

Mis à jour par Transition automatique il y a environ un an

Automatic expiration

Formats disponibles : Atom PDF