1
0
Fork 0

add archive tests

This commit is contained in:
Cyborus 2024-01-01 17:53:08 -05:00
parent d022f4f1bd
commit dccd4c51ba
No known key found for this signature in database

View file

@ -243,6 +243,14 @@ async fn repo(api: &forgejo_api::Forgejo) -> eyre::Result<()> {
== Some(b"This is a file!"),
"couldn't download attachment"
);
ensure!(
api.download_zip_archive("TestingAdmin", "test", "v1.0").await?.is_some(),
"couldn't download zip archive"
);
ensure!(
api.download_tarball_archive("TestingAdmin", "test", "v1.0").await?.is_some(),
"couldn't download tape archive"
);
api.delete_release_attachment("TestingAdmin", "test", release.id, attachment.id)
.await