Add end2end tests #2

Merged
pierre merged 10 commits from e2e-tests into master 2022-09-02 13:15:59 +00:00
12 changed files with 12 additions and 12 deletions
Showing only changes of commit 6f8055f1c7 - Show all commits

View File

@ -11,7 +11,7 @@ fn port(index: u16) -> u16 {
get_port_number(PortsAllocation::ClientTryTLSWhileThereIsNoTLS, index)
}
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
#[tokio::test()]
async fn test() {
let _ = env_logger::builder().is_test(true).try_init();

View File

@ -7,7 +7,7 @@ fn port(index: u16) -> u16 {
get_port_number(PortsAllocation::TestsWithoutPortOpened, index)
}
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
#[tokio::test()]
async fn test() {
let _ = env_logger::builder().is_test(true).try_init();

View File

@ -12,7 +12,7 @@ fn port(index: u16) -> u16 {
get_port_number(PortsAllocation::InvalidWithTokenAuth, index)
}
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
#[tokio::test()]
async fn invalid_with_token_auth() {
let _ = env_logger::builder().is_test(true).try_init();

View File

@ -8,7 +8,7 @@ fn port(index: u16) -> u16 {
get_port_number(PortsAllocation::TestsWithoutPortOpened, index)
}
#[tokio::test(flavor = "multi_thread")]
#[tokio::test()]
async fn test() {
let _ = env_logger::builder().is_test(true).try_init();

View File

@ -13,7 +13,7 @@ fn port(index: u16) -> u16 {
get_port_number(PortsAllocation::ValidTokenWithCustomIncrement, index)
}
#[tokio::test(flavor = "multi_thread")]
#[tokio::test()]
async fn test() {
let _ = env_logger::builder().is_test(true).try_init();

View File

@ -13,7 +13,7 @@ fn port(index: u16) -> u16 {
get_port_number(PortsAllocation::ValidWithTokenFile, index)
}
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
#[tokio::test()]
async fn valid_with_multiple_token_auth() {
let _ = env_logger::builder().is_test(true).try_init();

View File

@ -13,7 +13,7 @@ fn port(index: u16) -> u16 {
get_port_number(PortsAllocation::ValidWithTokenAuth, index)
}
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
#[tokio::test()]
async fn valid_with_token_auth() {
let _ = env_logger::builder().is_test(true).try_init();

View File

@ -14,7 +14,7 @@ fn port(index: u16) -> u16 {
get_port_number(PortsAllocation::ValidWithTokenAuthAndServerTLS, index)
}
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
#[tokio::test()]
async fn test() {
let _ = env_logger::builder().is_test(true).try_init();

View File

@ -15,7 +15,7 @@ fn port(index: u16) -> u16 {
get_port_number(PortsAllocation::ValidWithTokenAuthMultiplePorts, index)
}
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
#[tokio::test()]
async fn test() {
let _ = env_logger::builder().is_test(true).try_init();

View File

@ -13,7 +13,7 @@ fn port(index: u16) -> u16 {
get_port_number(PortsAllocation::ValidWithMultipleTokenAuth, index)
}
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
#[tokio::test()]
async fn valid_with_token_file() {
let _ = env_logger::builder().is_test(true).try_init();

View File

@ -15,7 +15,7 @@ fn port(index: u16) -> u16 {
)
}
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
#[tokio::test()]
async fn test() {
let _ = env_logger::builder().is_test(true).try_init();

View File

@ -15,7 +15,7 @@ fn port(index: u16) -> u16 {
)
}
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
#[tokio::test()]
async fn test() {
let _ = env_logger::builder().is_test(true).try_init();