Add end2end tests #2
@ -11,7 +11,7 @@ fn port(index: u16) -> u16 {
|
|||||||
get_port_number(PortsAllocation::ClientTryTLSWhileThereIsNoTLS, index)
|
get_port_number(PortsAllocation::ClientTryTLSWhileThereIsNoTLS, index)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
|
#[tokio::test()]
|
||||||
async fn test() {
|
async fn test() {
|
||||||
let _ = env_logger::builder().is_test(true).try_init();
|
let _ = env_logger::builder().is_test(true).try_init();
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ fn port(index: u16) -> u16 {
|
|||||||
get_port_number(PortsAllocation::TestsWithoutPortOpened, index)
|
get_port_number(PortsAllocation::TestsWithoutPortOpened, index)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
|
#[tokio::test()]
|
||||||
async fn test() {
|
async fn test() {
|
||||||
let _ = env_logger::builder().is_test(true).try_init();
|
let _ = env_logger::builder().is_test(true).try_init();
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ fn port(index: u16) -> u16 {
|
|||||||
get_port_number(PortsAllocation::InvalidWithTokenAuth, index)
|
get_port_number(PortsAllocation::InvalidWithTokenAuth, index)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
|
#[tokio::test()]
|
||||||
async fn invalid_with_token_auth() {
|
async fn invalid_with_token_auth() {
|
||||||
let _ = env_logger::builder().is_test(true).try_init();
|
let _ = env_logger::builder().is_test(true).try_init();
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ fn port(index: u16) -> u16 {
|
|||||||
get_port_number(PortsAllocation::TestsWithoutPortOpened, index)
|
get_port_number(PortsAllocation::TestsWithoutPortOpened, index)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test(flavor = "multi_thread")]
|
#[tokio::test()]
|
||||||
async fn test() {
|
async fn test() {
|
||||||
let _ = env_logger::builder().is_test(true).try_init();
|
let _ = env_logger::builder().is_test(true).try_init();
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ fn port(index: u16) -> u16 {
|
|||||||
get_port_number(PortsAllocation::ValidTokenWithCustomIncrement, index)
|
get_port_number(PortsAllocation::ValidTokenWithCustomIncrement, index)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test(flavor = "multi_thread")]
|
#[tokio::test()]
|
||||||
async fn test() {
|
async fn test() {
|
||||||
let _ = env_logger::builder().is_test(true).try_init();
|
let _ = env_logger::builder().is_test(true).try_init();
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ fn port(index: u16) -> u16 {
|
|||||||
get_port_number(PortsAllocation::ValidWithTokenFile, index)
|
get_port_number(PortsAllocation::ValidWithTokenFile, index)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
|
#[tokio::test()]
|
||||||
async fn valid_with_multiple_token_auth() {
|
async fn valid_with_multiple_token_auth() {
|
||||||
let _ = env_logger::builder().is_test(true).try_init();
|
let _ = env_logger::builder().is_test(true).try_init();
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ fn port(index: u16) -> u16 {
|
|||||||
get_port_number(PortsAllocation::ValidWithTokenAuth, index)
|
get_port_number(PortsAllocation::ValidWithTokenAuth, index)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
|
#[tokio::test()]
|
||||||
async fn valid_with_token_auth() {
|
async fn valid_with_token_auth() {
|
||||||
let _ = env_logger::builder().is_test(true).try_init();
|
let _ = env_logger::builder().is_test(true).try_init();
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ fn port(index: u16) -> u16 {
|
|||||||
get_port_number(PortsAllocation::ValidWithTokenAuthAndServerTLS, index)
|
get_port_number(PortsAllocation::ValidWithTokenAuthAndServerTLS, index)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
|
#[tokio::test()]
|
||||||
async fn test() {
|
async fn test() {
|
||||||
let _ = env_logger::builder().is_test(true).try_init();
|
let _ = env_logger::builder().is_test(true).try_init();
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ fn port(index: u16) -> u16 {
|
|||||||
get_port_number(PortsAllocation::ValidWithTokenAuthMultiplePorts, index)
|
get_port_number(PortsAllocation::ValidWithTokenAuthMultiplePorts, index)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
|
#[tokio::test()]
|
||||||
async fn test() {
|
async fn test() {
|
||||||
let _ = env_logger::builder().is_test(true).try_init();
|
let _ = env_logger::builder().is_test(true).try_init();
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ fn port(index: u16) -> u16 {
|
|||||||
get_port_number(PortsAllocation::ValidWithMultipleTokenAuth, index)
|
get_port_number(PortsAllocation::ValidWithMultipleTokenAuth, index)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
|
#[tokio::test()]
|
||||||
async fn valid_with_token_file() {
|
async fn valid_with_token_file() {
|
||||||
let _ = env_logger::builder().is_test(true).try_init();
|
let _ = env_logger::builder().is_test(true).try_init();
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ fn port(index: u16) -> u16 {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
|
#[tokio::test()]
|
||||||
async fn test() {
|
async fn test() {
|
||||||
let _ = env_logger::builder().is_test(true).try_init();
|
let _ = env_logger::builder().is_test(true).try_init();
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ fn port(index: u16) -> u16 {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
|
#[tokio::test()]
|
||||||
async fn test() {
|
async fn test() {
|
||||||
let _ = env_logger::builder().is_test(true).try_init();
|
let _ = env_logger::builder().is_test(true).try_init();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user