-
-
Save morintd/115b54c0c76b91a8c0050abc4ece10b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config: | |
environments: | |
nest-fastify: | |
target: '[NEST FASTIFY URL]' | |
nest-express: | |
target: '[NEST EXPRESS URL]' | |
fastify: | |
target: '[FASTIFY URL]' | |
express: | |
target: '[EXPRESS URL]' | |
processor: './artillery-processor.js' | |
plugins: | |
expect: {} | |
scenarios: | |
- name: 'create a new user and article flow' | |
flow: | |
- post: | |
url: '/auth/register' | |
beforeRequest: register | |
json: | |
email: '{{ email }}' | |
password: '{{ password }}' | |
expect: | |
- statusCode: 201 | |
- post: | |
url: '/auth/login' | |
json: | |
email: '{{ email }}' | |
password: '{{ password }}' | |
expect: | |
- statusCode: 201 | |
- post: | |
url: '/article' | |
beforeRequest: generateArticle | |
json: | |
title: '{{ title }}' | |
content: '{{ content }}' | |
expect: | |
- statusCode: 201 | |
- get: | |
url: '/article?page=1' | |
expect: | |
- statusCode: 200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment