forked from mtusi2026/mtusi2026lab6
Prepare verified laboratory 6 implementation and evidence
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
bun test v1.4.4 (38afee6c8)
|
||||
|
||||
student-tests/grafana-scheduler.test.ts:
|
||||
1 | import{test,expect}from'bun:test';import{validateGrafanaRuleIntervals}from'../scripts/lib/grafana-scheduler';
|
||||
2 | test('rejects actual provisioning failure1s under native13.3.1 scheduler10s',()=>{expect(()=>validateGrafanaRuleIntervals([{interval:'1s'}],10)).toThrow();});
|
||||
^
|
||||
error: expect(received).toThrow()
|
||||
|
||||
Received function did not throw
|
||||
Received value: undefined
|
||||
|
||||
at <anonymous> (/Users/rey/mtuci/vp/lab6/student-tests/grafana-scheduler.test.ts:2:146)
|
||||
(fail) rejects actual provisioning failure1s under native13.3.1 scheduler10s [0.39ms]
|
||||
1 | import{test,expect}from'bun:test';import{validateGrafanaRuleIntervals}from'../scripts/lib/grafana-scheduler';
|
||||
2 | test('rejects actual provisioning failure1s under native13.3.1 scheduler10s',()=>{expect(()=>validateGrafanaRuleIntervals([{interval:'1s'}],10)).toThrow();});
|
||||
3 | test('rejects zero and nonmultiple intervals before native startup',()=>{for(const interval of['0s','15s','unknown'])expect(()=>validateGrafanaRuleIntervals([{interval}],10)).toThrow();});
|
||||
^
|
||||
error: expect(received).toThrow()
|
||||
|
||||
Received function did not throw
|
||||
Received value: undefined
|
||||
|
||||
at <anonymous> (/Users/rey/mtuci/vp/lab6/student-tests/grafana-scheduler.test.ts:3:176)
|
||||
(fail) rejects zero and nonmultiple intervals before native startup [0.08ms]
|
||||
(pass) accepts native10s and its20s multiple [0.01ms]
|
||||
|
||||
1 pass
|
||||
2 fail
|
||||
3 expect() calls
|
||||
Ran 3 tests across 1 file. [14.00ms]
|
||||
Reference in New Issue
Block a user