Add new test based on token auth

This commit is contained in:
2022-09-02 08:59:07 +02:00
parent 62fa71ea6e
commit 886843d087
13 changed files with 462 additions and 5 deletions

7
src/base/err_utils.rs Normal file
View File

@ -0,0 +1,7 @@
use std::error::Error;
use std::io::ErrorKind;
/// Encapsulate errors in [`std::io::Error`] with a message
pub fn encpasulate_error<E: Error>(e: E, msg: &str) -> std::io::Error {
std::io::Error::new(ErrorKind::Other, format!("{}: {}", msg, e))
}