From 7e0e7f9f30a8ed3e379205926ca91bc713b2b0b3 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Wed, 15 Apr 2015 21:56:56 +0200 Subject: First sketches about data validation. OpenHFT's maps sound be a good memory-mapped indexes --- src/main/conf/data_handling.yaml | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/main/conf/data_handling.yaml diff --git a/src/main/conf/data_handling.yaml b/src/main/conf/data_handling.yaml new file mode 100644 index 0000000..98b68f1 --- /dev/null +++ b/src/main/conf/data_handling.yaml @@ -0,0 +1,41 @@ + +mappers: + - todo + +validators: + - where: src_1 + mode: warn + notif: mail + checks: + - attr: sn + kind: regex_matcher + value: ^[A-Z][a-z]*(?:( [A-Z]|['-])?[a-z]*)*$ + + - where: src_1 + mode: skip # Skip at source could lead to supression at dest + notif: mail + checks: + - attr: supannMailPerso + kind: regex_matcher + value: ^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$ + + - where: dest + mode: abort # Pbmatique avec la sémantique de l'iterator + notif: mail + checks: + - attr: uidNumber + kind: int_greater_than + value: 1000 + - attr: uidNumber + kind: unicity + - attr: gidNumber + kind: int_greater_than + value: 1000 + + + +# Idées : +# null dest pour du check only +# statistiques pour trouvver ce qui fait ramer une synchro +# comment checker les attributs qui ne sont pas pour toutes les classes de population... +# trouver une façon de dénoter des ensemble ou des paires d'attributs (même regex ou bien cés composées) -- cgit v1.2.3