mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-14 06:17:27 +00:00
fix: preserve Docker legacy API key during rotation
This commit is contained in:
1 parent
6088ebaa09
commit
30971ebb28
22 files changed
+928
-18
No files matched your search
@@ -54,6 +54,8 @@ describe('docker executor', () => {
|
||||
expect(calls[0].options?.env?.CCS_DASHBOARD_PORT).toBe('4000');
|
||||
expect(calls[0].options?.env?.CCS_CLIPROXY_PORT).toBe('9317');
|
||||
expect(calls[0].options?.env?.CCS_DOCKER_BIND_HOST).toBe('127.0.0.1');
|
||||
expect(calls[0].options?.env?.CCS_DOCKER_LEGACY_KEY_GRACE_DAYS).toBe('');
|
||||
expect(calls[0].options?.env?.CCS_DOCKER_RESTORE_LEGACY_API_KEY).toBe('');
|
||||
expect(calls[0].options?.timeoutMs).toBe(300_000);
|
||||
});
|
||||
|
||||
@@ -91,6 +93,8 @@ describe('docker executor', () => {
|
||||
expect(calls[2].args[1]).toContain("export CCS_DASHBOARD_PORT='3000'");
|
||||
expect(calls[2].args[1]).toContain("export CCS_CLIPROXY_PORT='8317'");
|
||||
expect(calls[2].args[1]).toContain("export CCS_DOCKER_BIND_HOST='127.0.0.1'");
|
||||
expect(calls[2].args[1]).toContain("export CCS_DOCKER_LEGACY_KEY_GRACE_DAYS=''");
|
||||
expect(calls[2].args[1]).toContain("export CCS_DOCKER_RESTORE_LEGACY_API_KEY=''");
|
||||
expect(calls[2].args[1]).toContain('docker-compose version >/dev/null 2>&1');
|
||||
expect(calls[2].options?.timeoutMs).toBe(300_000);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user