Skip to content

Commit

Permalink
chore: add a TcpCheck to e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sorccu committed Jan 21, 2025
1 parent d93762d commit 8862d07
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/cli/e2e/__tests__/deploy.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ Update and Unchanged:
ApiCheck: api-check-high-freq
HeartbeatCheck: heartbeat-check-1
BrowserCheck: homepage-browser-check
TcpCheck: tcp-check
CheckGroup: my-group-1
Dashboard: dashboard-1
MaintenanceWindow: maintenance-window-1
Expand All @@ -252,6 +253,7 @@ Update and Unchanged:
HeartbeatCheck: heartbeat-check-1
BrowserCheck: homepage-browser-check
BrowserCheck: snapshot-test.test.ts
TcpCheck: tcp-check
CheckGroup: my-group-1
Dashboard: dashboard-1
MaintenanceWindow: maintenance-window-1
Expand Down
13 changes: 13 additions & 0 deletions packages/cli/e2e/__tests__/fixtures/deploy-project/tcp.check.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* eslint-disable no-new */
import { TcpCheck } from 'checkly/constructs'

new TcpCheck('tcp-check', {
name: 'TCP Check',
activated: false,
request: {
hostname: 'api.checklyhq.com',
port: 443,
},
degradedResponseTime: 5000,
maxResponseTime: 20000,
})

0 comments on commit 8862d07

Please sign in to comment.