diff options
author | Cyborus <cyborus@cyborus.xyz> | 2024-01-01 23:53:08 +0100 |
---|---|---|
committer | Cyborus <cyborus@cyborus.xyz> | 2024-01-01 23:53:08 +0100 |
commit | dccd4c51ba524bb2d731c8511f76b817dd8ab358 (patch) | |
tree | 57c33c1e8ae3d7e88a364961fdec66a52ed66259 | |
parent | fix archive download methods (diff) | |
download | forgejo-api-dccd4c51ba524bb2d731c8511f76b817dd8ab358.tar.xz forgejo-api-dccd4c51ba524bb2d731c8511f76b817dd8ab358.zip |
add archive tests
-rw-r--r-- | tests/ci_test.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ci_test.rs b/tests/ci_test.rs index 3d98f71..6d6077f 100644 --- a/tests/ci_test.rs +++ b/tests/ci_test.rs @@ -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 |