17 Commits

Author SHA1 Message Date
Marcin Czenko
b98f3ec9cc
adds integration test for the archive downloader 2025-10-23 04:36:26 +02:00
Marcin Czenko
afaf8e52ab
adds a more robust test to test cancellation of the triggerDownload operation 2025-10-23 03:41:56 +02:00
Marcin Czenko
a3e2ad0341
adds tests, fixes a number of problems and adds zap logger for logging 2025-10-23 03:28:02 +02:00
Marcin Czenko
8a16db8f30
use go library function for sorting 2025-10-23 02:06:05 +02:00
Marcin Czenko
b1e38bc697
adds a callback called before download starts (helps testing the sorting of the archives) 2025-10-23 02:01:49 +02:00
Marcin Czenko
e703d06366
refactor the archive downloader tests to use testify in the test suite mode 2025-10-23 01:37:45 +02:00
Marcin Czenko
59c4aecaf0
comparing testify with native go testing 2025-10-22 21:56:45 +02:00
Marcin Czenko
3db63a3aab
Adds basic test for archive downloader with the mocking setup 2025-10-22 21:18:31 +02:00
Marcin Czenko
3e135f3c53
moves tests to a separate package to discorage testing of the implementation details and avoid import cycles in the future when using mocks 2025-10-22 21:02:28 +02:00
Marcin Czenko
57f7b873ac
simplifies CodexArchiveDownloader 2025-10-22 04:50:52 +02:00
Marcin Czenko
774660639b
Renames LocalDownload to TriggerDownload and brings back the original LocalDownload 2025-10-22 03:44:49 +02:00
Marcin Czenko
4dc98d22e3
Prepares archive downloader for testing - sets up the protobuf infra 2025-10-22 03:19:15 +02:00
Marcin Czenko
c47f9c4436
Fixes LocalDownload in CodexClient 2025-10-22 03:18:27 +02:00
Marcin Czenko
d8b762ea06
updates API from "has" to "exists" 2025-10-21 16:14:12 +02:00
Marcin Czenko
ca8b1dd5f6
updates README 2025-10-21 14:45:15 +02:00
Marcin Czenko
754215e9f7
adds "HasCid" and "RemoveCid" methods to CodexClient 2025-10-21 05:22:23 +02:00
Marcin Czenko
bdde71e871
initial commit 2025-10-20 02:46:50 +02:00