We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 667b730 commit bdfd2fdCopy full SHA for bdfd2fd
tests/test.rs
@@ -706,6 +706,18 @@ fn security_framework_ssl() {
706
or_panic!(conn.execute("SELECT 1::VARCHAR", &[]));
707
}
708
709
+#[test]
710
+#[ignore] // need to ignore until native-tls supports extra root certs :(
711
+#[cfg(feature = "with-native-tls")]
712
+fn native_tls_ssl() {
713
+ use postgres::tls::native_tls::NativeTls;
714
+
715
+ let negotiator = NativeTls::new().unwrap();
716
+ let conn = or_panic!(Connection::connect("postgres://postgres@localhost",
717
+ TlsMode::Require(&negotiator)));
718
+ or_panic!(conn.execute("SELECT 1::VARCHAR", &[]));
719
+}
720
721
#[test]
722
fn test_plaintext_pass() {
723
or_panic!(Connection::connect("postgres://pass_user:password@localhost/postgres", TlsMode::None));
0 commit comments