[master] 4cc4a78 Simplify o5.vtc
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Wed May 2 06:37:16 UTC 2018
commit 4cc4a78d74b1f7ec4a7fba252f212d2a1bfe7555
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Wed May 2 08:36:16 2018 +0200
Simplify o5.vtc
diff --git a/bin/varnishtest/tests/o00005.vtc b/bin/varnishtest/tests/o00005.vtc
index c9598fd..f1e92fc 100644
--- a/bin/varnishtest/tests/o00005.vtc
+++ b/bin/varnishtest/tests/o00005.vtc
@@ -9,18 +9,10 @@ varnish v1 -proto "PROXY" -vcl+backend {
import proxy;
sub vcl_deliver {
- if (proxy.is_ssl()) {
- set resp.http.is_ssl = "yes";
- }
- if (!proxy.client_has_cert_sess()) {
- set resp.http.client_has_cert_sess = "no";
- }
- if (!proxy.client_has_cert_conn()) {
- set resp.http.client_has_cert_conn = "no";
- }
- if (proxy.ssl_verify_result() == 0) {
- set resp.http.verify = "ok";
- }
+ set resp.http.is_ssl = proxy.is_ssl();
+ set resp.http.client_has_cert_sess = proxy.client_has_cert_sess();
+ set resp.http.client_has_cert_conn = proxy.client_has_cert_conn();
+ set resp.http.ssl_verify_result = proxy.ssl_verify_result() == 0;
set resp.http.alpn = proxy.alpn();
set resp.http.authority = proxy.authority();
set resp.http.ssl-version = proxy.ssl_version();
@@ -60,10 +52,10 @@ client c1 {
txreq
rxresp
expect resp.status == 200
- expect resp.http.is_ssl == yes
- expect resp.http.client_has_cert_sess == no
- expect resp.http.client_has_cert_conn == no
- expect resp.http.verify == ok
+ expect resp.http.is_ssl == true
+ expect resp.http.client_has_cert_sess == false
+ expect resp.http.client_has_cert_conn == false
+ expect resp.http.ssl_verify_result == true
expect resp.http.alpn == h2
expect resp.http.authority == hocdet.net
expect resp.http.ssl-version == TLSv1.3
More information about the varnish-commit
mailing list