Add new test based on token auth with TLS

This commit is contained in:
2022-09-02 09:43:07 +02:00
parent 886843d087
commit 40c1bfc938
32 changed files with 747 additions and 30 deletions

View File

@ -9,15 +9,20 @@ enum PortsAllocation {
ClientTryTLSWhileThereIsNoTLS,
ValidTokenWithCustomIncrement,
ValidWithTokenAuthMultiplePorts,
ValidWithTokenAuthAndServerTLS,
WithTokenAuthAndInvalidServerTLSBadCA,
WithTokenAuthAndInvalidServerTLSExpiredAndBadCN,
}
fn get_port_number(alloc: PortsAllocation, index: u16) -> u16 {
2100 + 20 * (alloc as u16) + index
}
const LOCALHOST: &str = "127.0.0.1";
const LOCALHOST_IP: &str = "127.0.0.1";
mod dummy_tcp_sockets;
mod pki;
mod test_files_utils;
mod client_try_tls_while_there_is_no_tls;
mod invalid_token_file;
@ -25,5 +30,8 @@ mod invalid_with_token_auth;
mod valid_token_with_custom_increment;
mod valid_with_multiple_token_auth;
mod valid_with_token_auth;
mod valid_with_token_auth_and_server_tls;
mod valid_with_token_auth_multiple_ports;
mod valid_with_token_file;
mod with_token_auth_and_invalid_server_tls_bad_ca;
mod with_token_auth_and_invalid_server_tls_expired_and_bad_cn;