feat(registry): expose release detail endpoint
This commit is contained in:
1 parent
7bd04718df
commit
3832ec1db4
6 files changed
+67
-2
No files matched your search
@@ -587,6 +587,16 @@ VOID_TEST(RegistryTests, registry_binary_variant_publish_download_and_materializ
|
||||
Void::Testing::expect(detail->body.find(artifact_sha) != std::string::npos);
|
||||
}
|
||||
|
||||
auto release_detail = send_loopback_http(port, "GET", "/api/v1/packages/demo-bin/1.0.0");
|
||||
Void::Testing::expect(release_detail.has_value() && release_detail->status == 200);
|
||||
if (release_detail) {
|
||||
Void::Testing::expect(release_detail->body.find("\"version\":\"1.0.0\"") !=
|
||||
std::string::npos);
|
||||
Void::Testing::expect(release_detail->body.find(variant_id) != std::string::npos);
|
||||
}
|
||||
auto missing_release = send_loopback_http(port, "GET", "/api/v1/packages/demo-bin/9.9.9");
|
||||
Void::Testing::expect(missing_release.has_value() && missing_release->status == 404);
|
||||
|
||||
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) {
|
||||
|
||||
Reference in new issue
Block a user