From 8b2860b0b39f20573fa548dcc848ad6f4d9ac986 Mon Sep 17 00:00:00 2001 From: Soner Tari Date: Sun, 14 Nov 2021 20:52:02 +0300 Subject: [PATCH] Fix unit tests with WITHOUT_USERAUTH enabled --- GNUmakefile | 4 +++- tests/check/opts.t.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 8fdf3bf..0e5bd67 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -28,7 +28,9 @@ clean: travis: $(TARGET) $(MAKE) travisunittest -# $(MAKE) travise2etest + # The e2e tests with all of the openssl/libressl versions in .travis.yml run + # without any error locally, but fail on travis-ci.com now. So disable until fixed. + #$(MAKE) travise2etest travisunittest: $(TARGET) $(MAKE) -C $(CHECKTESTSDIR) travis diff --git a/tests/check/opts.t.c b/tests/check/opts.t.c index 13f3d44..a8e7220 100644 --- a/tests/check/opts.t.c +++ b/tests/check/opts.t.c @@ -783,7 +783,7 @@ START_TEST(proxyspec_struct_parse_01) "}"; f = fmemopen(s, strlen(s), "r"); -// close(2); + close(2); char *natengine = "pf"; rv = load_proxyspec_struct(global, "sslproxy", &natengine, &line_num, f, tmp_opts); @@ -844,7 +844,7 @@ START_TEST(proxyspec_struct_parse_01) "sni 4444\n" "divert addr= [127.0.0.1]:8080\n" "return addr= [192.168.2.1]:0\n" -"opts= conn opts: "SSL_PROTO_CONFIG_PROXYSPEC"|no sslcomp|no_tls13|deny_ocsp|MEDIUM:HIGH|TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256|"ECDH_PRIME1"http://example2.com/example2.crl|remove_http_accept_encoding|remove_http_referer|verify_peer|validate_proto|2048\n" +"opts= conn opts: "SSL_PROTO_CONFIG_PROXYSPEC"|deny_ocsp|MEDIUM:HIGH|TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256|"ECDH_PRIME1"http://example2.com/example2.crl|remove_http_accept_encoding|remove_http_referer|verify_peer|validate_proto|2048\n" "divert\n" "macro $ip = 127.0.0.1\n" "filter rule 0: sni=example4.com, dstport=, srcip=, exact=site||, all=conns||, action=||pass||, log=|||||, precedence=1\n"