forked from mtusi2026/mtusi2026lab4
Prepare verified laboratory 4 implementation and evidence
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
1 | import {resolve} from 'node:path';
|
||||
2 | const root=resolve(import.meta.dir,'..');
|
||||
3 | const before=await Bun.file(resolve(root,'evidence/k3s/restart-before.json')).json();
|
||||
4 | const after=await Bun.file(resolve(root,'evidence/k3s/restart-after.json')).json();
|
||||
5 | if(!before.length||!after.length||after.some((p:any)=>before.some((b:any)=>b.uid===p.uid)))throw new Error('Restart returned while an original workload Pod UID still existed');
|
||||
^
|
||||
error: Restart returned while an original workload Pod UID still existed
|
||||
at /mnt/data/home/bench-saves/vp-k3s-nHACGCQi/lab4/student-tests/restart-evidence.ts:5:102
|
||||
|
||||
Bun v1.4.4 (Linux x64)
|
||||
Reference in New Issue
Block a user