Files
wakapi/testing/wakapi_api_tests/Heartbeats/Create heartbeats (unauthorized).bru

29 lines
429 B
Plaintext

meta {
name: Create heartbeats (unauthorized)
type: http
seq: 11
}
post {
url: {{BASE_URL}}/api/heartbeat
body: json
auth: none
}
body:json {
[{
"entity": "/home/user1/dev/project1/main.go",
"project": "wakapi",
"language": "Go",
"is_write": true,
"type": "file",
"category": null,
"branch": null,
"time": {{tsNowMinus1Min}}
}]
}
assert {
res.status: eq 401
}