feat(daemon,registry): list lowered actions and expose binary variant detail
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 2s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 15s

This commit is contained in:
faumaray committed 2026-12-04 02:42:33 +03:00
1 parent 69d1a8d274
commit 34fe148eb4
10 files changed
+252 -3

No files matched your search

+12
View File
@@ -620,6 +620,18 @@ VOID_TEST(RegistryTests, registry_binary_variant_publish_download_and_materializ
Void::Testing::expect(listed->body.find("\"yanked\":false") != std::string::npos);
}
auto binary_detail = send_loopback_http(port, "GET", binary_path);
Void::Testing::expect(binary_detail.has_value() && binary_detail->status == 200);
if (binary_detail) {
Void::Testing::expect(binary_detail->body.find("\"variant_id\":\"" + variant_id + "\"") !=
std::string::npos);
Void::Testing::expect(binary_detail->body.find("\"signature\":\"" + *signature + "\"") !=
std::string::npos);
Void::Testing::expect(binary_detail->body.find("\"download_url\":") != std::string::npos);
}
auto missing_binary = send_loopback_http(port, "GET", binary_path + "-missing");
Void::Testing::expect(missing_binary.has_value() && missing_binary->status == 404);
auto downloaded = send_loopback_http(port, "GET", binary_path + "/download");
Void::Testing::expect(downloaded.has_value() && downloaded->status == 200);
if (downloaded) {