Add end2end tests #2
src/test
client_try_tls_while_there_is_no_tls.rsinvalid_token_file.rsinvalid_with_token_auth.rsserver_invalid_tls_config_missing_key.rsvalid_token_with_custom_increment.rsvalid_with_multiple_token_auth.rsvalid_with_token_auth.rsvalid_with_token_auth_and_server_tls.rsvalid_with_token_auth_multiple_ports.rsvalid_with_token_file.rswith_token_auth_and_invalid_server_tls_bad_ca.rswith_token_auth_and_invalid_server_tls_expired_and_bad_cn.rs
@ -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();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user