@platformatic/watt-extra 1.4.0-alpha.3 → 1.4.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Read(//work/workspaces/workspace-platformatic/platformatic/**)",
5
+ "Bash(npx borp:*)",
6
+ "Bash(timeout 30 npx borp -c 1 --timeout=20000 ./test/trigger-flamegraphs.test.js)"
7
+ ],
8
+ "deny": [],
9
+ "ask": []
10
+ }
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/watt-extra",
3
- "version": "1.4.0-alpha.3",
3
+ "version": "1.4.0-alpha.4",
4
4
  "description": "The Platformatic runtime manager",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -52,8 +52,6 @@ test('should send alert when service becomes unhealthy', async (t) => {
52
52
  const app = await start()
53
53
  app.getAuthorizationHeader = getAuthorizationHeader
54
54
 
55
- await app.setupAlerts()
56
-
57
55
  t.after(async () => {
58
56
  await app.close()
59
57
  await icc.close()
@@ -131,8 +129,6 @@ test('should not send alert when service is healthy', async (t) => {
131
129
  const app = await start()
132
130
  app.getAuthorizationHeader = getAuthorizationHeader
133
131
 
134
- await app.setupAlerts()
135
-
136
132
  t.after(async () => {
137
133
  await app.close()
138
134
  await icc.close()
@@ -199,8 +195,6 @@ test('should cache health data and include it in alerts', async (t) => {
199
195
  const app = await start()
200
196
  app.getAuthorizationHeader = getAuthorizationHeader
201
197
 
202
- await app.setupAlerts()
203
-
204
198
  t.after(async () => {
205
199
  await app.close()
206
200
  await icc.close()
@@ -314,8 +308,6 @@ test('should not fail when health info is missing', async (t) => {
314
308
  const app = await start()
315
309
  app.getAuthorizationHeader = getAuthorizationHeader
316
310
 
317
- await app.setupAlerts()
318
-
319
311
  t.after(async () => {
320
312
  await app.close()
321
313
  await icc.close()
@@ -365,8 +357,6 @@ test('should respect alert retention window', async (t) => {
365
357
 
366
358
  app.getAuthorizationHeader = getAuthorizationHeader
367
359
 
368
- await app.setupAlerts()
369
-
370
360
  t.after(async () => {
371
361
  await app.close()
372
362
  await icc.close()
@@ -489,8 +479,6 @@ test('should send alert when flamegraphs are disabled', async (t) => {
489
479
  const app = await start()
490
480
  app.getAuthorizationHeader = getAuthorizationHeader
491
481
 
492
- await app.setupAlerts()
493
-
494
482
  t.after(async () => {
495
483
  await app.close()
496
484
  await icc.close()
@@ -568,8 +556,6 @@ test('should send alert when failed to send a flamegraph', async (t) => {
568
556
  const app = await start()
569
557
  app.getAuthorizationHeader = getAuthorizationHeader
570
558
 
571
- await app.setupAlerts()
572
-
573
559
  t.after(async () => {
574
560
  await app.close()
575
561
  await icc.close()