feat(registry): add a binary-variant listing endpoint
This commit is contained in:
1 parent
349ec257f5
commit
8f68ec56e9
7 files changed
+77
-38
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user