DownloadLink
This commit is contained in:
@@ -15,7 +15,13 @@ struct DocumentInfo {
|
||||
|
||||
#[derive(Deserialize)]
|
||||
struct DocumentVersion {
|
||||
download_path: String,
|
||||
download: DownloadLink,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
struct DownloadLink {
|
||||
url: String,
|
||||
expires_at: i64,
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
@@ -46,7 +52,8 @@ async fn document_download_redirects_when_proxy_disabled() -> Result<()> {
|
||||
.current_version
|
||||
.as_ref()
|
||||
.expect("missing version")
|
||||
.download_path
|
||||
.download
|
||||
.url
|
||||
.clone();
|
||||
|
||||
let redirect = app.get(&download_path, None).await?;
|
||||
|
||||
Reference in New Issue
Block a user