feat(daemon,registry): list lowered actions and expose binary variant detail
This commit is contained in:
1 parent
69d1a8d274
commit
34fe148eb4
10 files changed
+252
-3
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user