@@ -27,16 +27,17 @@ use super::{
2727
2828pub const PEM_START_MARKER : & str = "-----BEGIN " ;
2929
30- pub const TEST_PEM_CA_PATH : & str = "tests/data/ca/certs/ca.cert.pem" ;
30+ pub const TEST_PEM_CA_PATH : & str = "tests/integration/shared/ data/ca/certs/ca.cert.pem" ;
3131pub const TEST_PEM_INTERMEDIATE_CA_PATH : & str =
32- "tests/data/ca/intermediate_server/certs/ca-chain.cert.pem" ;
32+ "tests/integration/shared/ data/ca/intermediate_server/certs/ca-chain.cert.pem" ;
3333pub const TEST_PEM_CRT_PATH : & str =
34- "tests/data/ca/intermediate_server/certs/localhost-chain.cert.pem" ;
35- pub const TEST_PEM_KEY_PATH : & str = "tests/data/ca/intermediate_server/private/localhost.key.pem" ;
34+ "tests/integration/shared/data/ca/intermediate_server/certs/localhost-chain.cert.pem" ;
35+ pub const TEST_PEM_KEY_PATH : & str =
36+ "tests/integration/shared/data/ca/intermediate_server/private/localhost.key.pem" ;
3637pub const TEST_PEM_CLIENT_CRT_PATH : & str =
37- "tests/data/ca/intermediate_client/certs/localhost-chain.cert.pem" ;
38+ "tests/integration/shared/ data/ca/intermediate_client/certs/localhost-chain.cert.pem" ;
3839pub const TEST_PEM_CLIENT_KEY_PATH : & str =
39- "tests/data/ca/intermediate_client/private/localhost.key.pem" ;
40+ "tests/integration/shared/ data/ca/intermediate_client/private/localhost.key.pem" ;
4041
4142/// Configures the TLS options for incoming/outgoing connections.
4243#[ configurable_component]
@@ -675,11 +676,14 @@ fn open_read(filename: &Path, note: &'static str) -> Result<(Vec<u8>, PathBuf)>
675676mod test {
676677 use super :: * ;
677678
678- const TEST_PKCS12_PATH : & str = "tests/data/ca/intermediate_client/private/localhost.p12" ;
679- const TEST_PEM_CRT_BYTES : & [ u8 ] =
680- include_bytes ! ( "../../../../tests/data/ca/intermediate_server/certs/localhost.cert.pem" ) ;
681- const TEST_PEM_KEY_BYTES : & [ u8 ] =
682- include_bytes ! ( "../../../../tests/data/ca/intermediate_server/private/localhost.key.pem" ) ;
679+ const TEST_PKCS12_PATH : & str =
680+ "tests/integration/shared/data/ca/intermediate_client/private/localhost.p12" ;
681+ const TEST_PEM_CRT_BYTES : & [ u8 ] = include_bytes ! (
682+ "../../../../tests/integration/shared/data/ca/intermediate_server/certs/localhost.cert.pem"
683+ ) ;
684+ const TEST_PEM_KEY_BYTES : & [ u8 ] = include_bytes ! (
685+ "../../../../tests/integration/shared/data/ca/intermediate_server/private/localhost.key.pem"
686+ ) ;
683687
684688 #[ test]
685689 fn parse_alpn_protocols ( ) {
@@ -749,7 +753,8 @@ mod test {
749753 #[ test]
750754 fn from_options_inline_ca ( ) {
751755 let ca = String :: from_utf8 (
752- include_bytes ! ( "../../../../tests/data/ca/certs/ca.cert.pem" ) . to_vec ( ) ,
756+ include_bytes ! ( "../../../../tests/integration/shared/data/ca/certs/ca.cert.pem" )
757+ . to_vec ( ) ,
753758 )
754759 . unwrap ( ) ;
755760 let options = TlsConfig {
@@ -765,7 +770,10 @@ mod test {
765770 #[ test]
766771 fn from_options_intermediate_ca ( ) {
767772 let options = TlsConfig {
768- ca_file : Some ( "tests/data/ca/intermediate_server/certs/ca-chain.cert.pem" . into ( ) ) ,
773+ ca_file : Some (
774+ "tests/integration/shared/data/ca/intermediate_server/certs/ca-chain.cert.pem"
775+ . into ( ) ,
776+ ) ,
769777 ..Default :: default ( )
770778 } ;
771779 let settings = TlsSettings :: from_options ( Some ( & options) )
@@ -777,7 +785,7 @@ mod test {
777785 #[ test]
778786 fn from_options_multi_ca ( ) {
779787 let options = TlsConfig {
780- ca_file : Some ( "tests/data/Multi_CA.crt" . into ( ) ) ,
788+ ca_file : Some ( "tests/integration/shared/ data/Multi_CA.crt" . into ( ) ) ,
781789 ..Default :: default ( )
782790 } ;
783791 let settings = TlsSettings :: from_options ( Some ( & options) )
0 commit comments