From 7a39132acdd5b035680b413de0ae1b31a01f9002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Mon, 20 Jun 2022 19:19:38 +0200 Subject: [PATCH] Ajout de la config artillery.io --- api/artilleryio-config.yaml | 83 +++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 api/artilleryio-config.yaml diff --git a/api/artilleryio-config.yaml b/api/artilleryio-config.yaml new file mode 100644 index 000000000..2914c7599 --- /dev/null +++ b/api/artilleryio-config.yaml @@ -0,0 +1,83 @@ +# Artillery.io config, run with +# npx artillery run artilleryio-config.yaml + +scenarios: + - name: 'Evaluate' + flow: + - post: + url: '/evaluate' + headers: { 'content-type': 'application/json' } + body: | + { + "expressions": [ + "contrat salarié . prix du travail", + "contrat salarié . rémunération . net", + "contrat salarié . rémunération . net après impôt" + ], + "situation": { + "dirigeant": "non", + "entreprise . catégorie juridique": "non", + "entreprise . imposition": "non", + "contrat salarié . activité partielle": "non", + "impôt . méthode de calcul . par défaut": { + "variations": [ + { + "si": "contrat salarié . rémunération . brut de base <= 6000 €/mois", + "alors": "'taux neutre'" + }, + { "sinon": "'barème standard'" } + ] + }, + "contrat salarié . rémunération . brut de base": { + "valeur": {{$randomNumber(1000,10000)}}, + "unité": "€ / mois" + }, + "contrat salarié": "'CDD'", + "contrat salarié . CDD . durée contrat": { + "explanation": { + "type": "number", + "fullPrecision": true, + "isNullable": false, + "missingVariables": {}, + "nodeValue": 6, + "nodeKind": "constant", + "rawNode": { "constant": { "type": "number", "nodeValue": 6 } } + }, + "unit": { "numerators": ["mois"], "denominators": [] }, + "nodeKind": "unité", + "rawNode": "6 mois" + }, + "contrat salarié . CDD . congés pris": { + "explanation": { + "type": "number", + "fullPrecision": true, + "isNullable": false, + "missingVariables": {}, + "nodeValue": 0, + "nodeKind": "constant", + "rawNode": { "constant": { "type": "number", "nodeValue": 0 } } + }, + "unit": { "numerators": ["jour ouvré"], "denominators": [] }, + "nodeKind": "unité", + "rawNode": "0 jours ouvrés" + } + } + } + +config: + http: + timeout: 30 + target: https://mon-entreprise.urssaf.fr/api/v1 + phases: + - duration: 1 + arrivalRate: 1 + name: Test + - duration: 600 + arrivalRate: 5 + name: Warm up + - duration: 600 + arrivalRate: 15 + name: Ramp up load + - duration: 600 + arrivalRate: 30 + name: Sustained load