This commit is contained in:
kankys committed 2026-09-15 20:50:51 +02:00
1 parent 4b7af6ee7a
commit 2e185b47ef
12 files changed
+213 -6

No files matched your search

@@ -0,0 +1,43 @@
info:
name: AI - Get random quote
type: http
seq: 1
http:
method: GET
url: http://localhost:3000/quote
auth: inherit
runtime:
scripts:
- type: tests
code: |-
const status = res.getStatus()
const body = res.getBody()
test("Status code is 200", function() {
expect(status).to.equal(200);
});
test("Response should contain author key", function(){
expect(body).to.contain.key("author")
})
test("Response should contain quote key", function(){
expect(body).to.contain.key("quote")
})
test("Author should not be empty", function(){
expect(body.author).not.to.be.empty
})
test("Quote should not be empty", function(){
expect(body.quote).not.to.be.empty
})
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
forwardAuthorizationHeader: false