node-laravel-encryptor
Version:
node version Laravel Illuminate/Encryption/Encrypter.php
32 lines (29 loc) • 771 B
YAML
config:
target: 'http://localhost:9999'
plugins:
expect: {}
phases:
- duration: 10
arrivalRate: 11
processor: "./artillery-func.js"
scenarios:
- name: "Integration Test, parallel request"
flow:
- loop:
- get:
url: "/?id={{$loopCount}}"
afterResponse: "encryptor"
capture:
- json: "$.id"
as: id
- json: "$.encrypted"
as: encrypted
expect:
- statusCode: 200
- contentType: json
- hasProperty: encrypted
- hasProperty: id
- equals:
- "{{ id }}"
- "{{ $loopCount }}"
count: 10