Skip to content

Commit 41069d7

Browse files
authored
fix: added missing version_check_result for cargo tests (#42)
Signed-off-by: Joerg Zeidler <62105035+JoergZeidler@users.noreply.github.com>
1 parent b557cab commit 41069d7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/middleware.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ fn unauthorized_error(req: ServiceRequest) -> ServiceResponse {
135135

136136
#[cfg(test)]
137137
mod tests {
138+
use crate::api::VersionCheckResult;
139+
138140
use super::*;
139141

140142
use actix_http::StatusCode;
@@ -290,6 +292,11 @@ mod tests {
290292
index_html: Path::new("/some/index/html/path").to_path_buf(),
291293
keycloak_public_key_url: "https://some/keycloak/public/key/url".to_string(),
292294
tenant: "cp".to_string(),
295+
version_check_result: VersionCheckResult {
296+
req_ods_version: ">0.39.0".to_string(),
297+
cur_ods_version: "0.40.0".to_string(),
298+
version_mismatch: false,
299+
},
293300
};
294301

295302
test::init_service(

0 commit comments

Comments
 (0)