Add Bruno tests
This commit is contained in:
1 parent
1c00dbdb85
commit
223cfe086c
7 files changed
+76
-69
No files matched your search
@@ -0,0 +1,42 @@
|
||||
meta {
|
||||
name: Create user
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: http://localhost:8000/api/user/create
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
headers {
|
||||
Accept: application/json
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"name": "{{name}}",
|
||||
"email": "{{email}}",
|
||||
"password": "{{password}}"
|
||||
}
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
name: name
|
||||
email: test@test.com
|
||||
password: test
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
docs {
|
||||
Créer un utilisateur test
|
||||
}
|
||||
Reference in new issue
Block a user