mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-08 14:35:49 +01:00
19 lines
471 B
TypeScript
19 lines
471 B
TypeScript
|
|
import { ApiCheck, AssertionBuilder } from 'checkly/constructs'
|
||
|
|
|
||
|
|
new ApiCheck('homepage-api-check-1', {
|
||
|
|
name: 'Fetch Book List',
|
||
|
|
alertChannels: [],
|
||
|
|
degradedResponseTime: 10000,
|
||
|
|
maxResponseTime: 20000,
|
||
|
|
request: {
|
||
|
|
url: 'https://danube-web.shop/api/books',
|
||
|
|
method: 'GET',
|
||
|
|
followRedirects: true,
|
||
|
|
skipSSL: false,
|
||
|
|
assertions: [
|
||
|
|
AssertionBuilder.statusCode().equals(200),
|
||
|
|
AssertionBuilder.jsonBody('$[0].id').isNotNull(),
|
||
|
|
],
|
||
|
|
}
|
||
|
|
})
|