with directory requests

This commit is contained in:
Alexander
2026-08-10 15:58:20 +03:00
parent b56e4adb22
commit 07ed795303
12 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
info:
name: Create Service Without Code
type: http
seq: 2
http:
method: POST
url: "{{baseUrl}}/api/v1/services"
headers:
- name: Content-Type
value: application/json
- name: requestID
value: test-req-1
body:
type: json
data: |-
{
"type": "SYSTEM",
"name": "Сервис управления версиями модулей"
}
auth: inherit
runtime:
scripts:
- type: after-response
code: "test('Status code is 200', function () {\r
\ expect(res.getStatus()).to.equal(200);\r
});\r
\r
let json = res.getBody();\r
\r
test('Status is SUCCESS', function () {\r
\ expect(json.status).to.eql('SUCCESS');\r
});\r
\r
bru.setEnvVar('serviceId', json.data.id);"
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5