Phase4
Some checks failed
CI / Node — lint, typecheck, test, build (push) Failing after 9s
CI / Go — node-agent tests (push) Failing after 9s
CI / Go — edge-gateway build (push) Successful in 13s

This commit is contained in:
smueller
2026-06-26 12:32:27 +02:00
parent 9b061c3ee7
commit 4262464cd5
101 changed files with 4024 additions and 74 deletions

View File

@@ -0,0 +1,17 @@
import { describe, expect, it } from 'vitest';
import { backupObjectKey, worldUploadObjectKey } from './client';
describe('storage object keys', () => {
it('builds backup keys', () => {
expect(backupObjectKey('srv-1', 'bak-1')).toBe(
'servers/srv-1/backups/bak-1.tar.gz',
);
});
it('builds world upload keys', () => {
expect(worldUploadObjectKey('srv-1', 'up-1')).toBe(
'servers/srv-1/uploads/up-1/world.tar.gz',
);
});
});