Skip to content

Commit 789b7d1

Browse files
sorccuclaude
andcommitted
fix(examples): port SSL check templates to property-scoped grammar
The advanced-project and advanced-project-js templates still called the flat SslAssertionBuilder methods (certExpiresInDays, chainTrusted, hostnameVerified, tlsVersion) removed by the property-scoped grammar refactor. These are not documentation-only: create-checkly downloads them as github:checkly/checkly-cli/examples/<template>#<version> and pins checkly to 'latest', so once the new grammar ships, scaffolding the recommended template and running checkly test/deploy would fail with "SslAssertionBuilder.certExpiresInDays is not a function". Semantics are unchanged; the synthesized wire payload is equivalent. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 5ac71b8 commit 789b7d1

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

examples/advanced-project-js/src/__checks__/uptime/ssl.check.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ new SslMonitor('example-com-ssl', {
1818
alertDaysBeforeExpiry: 30,
1919
},
2020
assertions: [
21-
SslAssertionBuilder.certExpiresInDays().greaterThan(30),
22-
SslAssertionBuilder.chainTrusted().equals(true),
23-
SslAssertionBuilder.hostnameVerified().equals(true),
24-
SslAssertionBuilder.tlsVersion().equals('TLS1.3'),
21+
SslAssertionBuilder.certificate('daysUntilExpiry').greaterThan(30),
22+
SslAssertionBuilder.connection('chainTrusted').equals(true),
23+
SslAssertionBuilder.connection('hostnameVerified').equals(true),
24+
SslAssertionBuilder.connection('tlsVersion').equals('TLS1.3'),
2525
],
2626
},
2727
})

examples/advanced-project/src/__checks__/uptime/ssl.check.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ new SslMonitor('example-com-ssl', {
1818
alertDaysBeforeExpiry: 30,
1919
},
2020
assertions: [
21-
SslAssertionBuilder.certExpiresInDays().greaterThan(30),
22-
SslAssertionBuilder.chainTrusted().equals(true),
23-
SslAssertionBuilder.hostnameVerified().equals(true),
24-
SslAssertionBuilder.tlsVersion().equals('TLS1.3'),
21+
SslAssertionBuilder.certificate('daysUntilExpiry').greaterThan(30),
22+
SslAssertionBuilder.connection('chainTrusted').equals(true),
23+
SslAssertionBuilder.connection('hostnameVerified').equals(true),
24+
SslAssertionBuilder.connection('tlsVersion').equals('TLS1.3'),
2525
],
2626
},
2727
})

0 commit comments

Comments
 (0)