feat(registry): add a binary-variant listing endpoint
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 4s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 24s

This commit is contained in:
faumaray committed 2026-12-03 23:18:41 +03:00
1 parent 349ec257f5
commit 8f68ec56e9
7 files changed
+77 -38

No files matched your search

+7
View File
@@ -571,6 +571,13 @@ VOID_TEST(RegistryTests, registry_binary_variant_publish_download_and_materializ
Void::Testing::expect(detail->body.find(artifact_sha) != std::string::npos);
}
auto listed = send_loopback_http(port, "GET", "/api/v1/packages/demo-bin/1.0.0/binaries");
Void::Testing::expect(listed.has_value() && listed->status == 200);
if (listed) {
Void::Testing::expect(listed->body.find(variant_id) != std::string::npos);
Void::Testing::expect(listed->body.find("\"yanked\":false") != std::string::npos);
}
auto downloaded = send_loopback_http(port, "GET", binary_path + "/download");
Void::Testing::expect(downloaded.has_value() && downloaded->status == 200);
if (downloaded) {