-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.json
105 lines (105 loc) · 3.18 KB
/
configuration.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
"tests": [{
"id": "Test1",
"nom": "Présence des champs obligatoires",
"type": "requery_field",
"fields": ["ID_AJOUR", "INSEE", "LONG_SIG", "COUVERT", "NOM_PROD", "SIRET_PROD", "REF_UTIL", "QUALITE", "BORD_REF", "INTERFACE", "ORI_PENTE", "POS_TOPO", "POS_SOL", "STRUCTURE", "AN_IMPLANT", "TYPE_PROG", "TYPE_TRVX"]
},
{
"id": "Test1.1",
"nom": "Nombre d'enregistrements supérieur à 100",
"critere": "",
"type": "featurecount",
"nombre": 100
},
{
"id": "Test2",
"nom": "Détection des valeurs non renseignées pour les champs suivants : ",
"critere": "",
"type": "notnull",
"fields": ["ID_AJOUR", "INSEE", "LONG_SIG", "COUVERT", "NOM_PROD", "SIRET_PROD", "REF_UTIL", "QUALITE", "BORD_REF"]
},
{
"id": "Test3",
"nom": "Champ COUVERT est de type texte",
"type": "datatype",
"field": "COUVERT",
"datatype": "String"
},
{
"id": "Test3.1",
"nom": "Vérification pour les champs suivants que les valeurs correspondent a celles autorisées",
"critere": "",
"type": "allowedvalues",
"rules": [{
"field": "COUVERT",
"values": ["0", "1", "2", "3"]
}, {
"field": "QUALITE",
"values": ["O", "N"]
}, {
"field": "BORD_REF",
"values": ["BBA", "BBO", "BEAU", "BL", "BP", "BV", "BVC", "BVR"]
}]
},
{
"id": "Test3.2",
"nom": "Vérification absence de doublon pour le champ ID_AJOUR",
"critere": "",
"type": "uniquevalue",
"field": "ID_AJOUR"
},
{
"id": "Test4",
"nom": "Détection des valeurs non renseignées pour les champs suivants SI TYPE_PROG = BB1 ou BB2",
"critere": "TYPE_PROG IN ('BB1', 'BB2')",
"type": "notnull",
"fields": ["INTERFACE", "ORI_PENTE", "POS_TOPO", "POS_SOL", "AN_IMPLANT", "STRUCTURE", "TYPE_PROG", "TYPE_TRVX"]
},
{
"id": "Test4.1",
"nom": "Vérification pour les champs suivants que les valeurs correspondent a celles autorisées si TYPE_PROG = BB1 ou BB2",
"critere": "TYPE_PROG IN ('BB1', 'BB2')",
"type": "allowedvalues",
"rules": [{
"field": "INTERFACE",
"values": ["BBA", "BBO", "BEAU", "BL", "BP", "BV", "BVC", "BPI", "BVR"]
}, {
"field": "ORI_PENTE",
"values": ["OB", "PAR", "PER", "SO"]
}, {
"field": "POS_TOPO",
"values": ["CEI", "CRE", "EPA", "PLA", "VAL", "VER"]
}, {
"field": "POS_SOL",
"values": ["A", "B", "C", "M", "P", "T"]
}, {
"field": "STRUCTURE",
"values": ["HA", "HJ", "HM", "HO", "HT", "SE"]
}, {
"field": "TYPE_TRVX",
"values": ["CH", "CHT", "CHTE", "CRNA", "CT", "RH", "RHT", "RHTE", "RT"]
}]
},
{
"id": "Test4.2",
"nom": "Vérification que la valeur du champ AN_IMPLANT est comprise entre 2007 et 2015 si TYPE_PROG = BB1",
"critere": "TYPE_PROG = 'BB1'",
"type": "allowedvalues",
"rules": [{
"field": "AN_IMPLANT",
"values": ["2007", "2008", "2009", "2010", "2011", "2012", "2013", "2014", "2015"]
}]
},
{
"id": "Test4.3",
"nom": "Vérification que la valeur du champ AN_IMPLANT est comprise entre 2015 et 2022 si TYPE_PROG = BB2",
"critere": "TYPE_PROG = 'BB2'",
"type": "allowedvalues",
"rules": [{
"field": "AN_IMPLANT",
"values": ["2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022"]
}]
}
]
}