From 8992aaea48974c1b6b755c88dedbe62448ab98ed Mon Sep 17 00:00:00 2001
From: nterranova <nicholas.terranova@cnaf.infn.it>
Date: Thu, 22 Mar 2018 16:28:05 +0100
Subject: [PATCH] *.t files amended to separate error logs

---
 t/encoding.t            | 1 +
 t/expired.t             | 1 +
 t/expired_ac.t          | 3 ++-
 t/no_ac.t               | 1 +
 t/no_ssl.t              | 1 +
 t/no_ta.t               | 1 +
 t/old_format.t          | 1 +
 t/piped.t               | 1 +
 t/ssl_no_client_authn.t | 1 +
 t/untrusted_ac.t        | 1 +
 t/valid_ac.t            | 1 +
 11 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/t/encoding.t b/t/encoding.t
index dfd9e4d..c766381 100644
--- a/t/encoding.t
+++ b/t/encoding.t
@@ -26,6 +26,7 @@ __DATA__
     }
 --- config
     location = / {
+        error_log logs/error-proxy.log debug;
         proxy_pass https://localhost:8443/;
         proxy_ssl_certificate ../../certs/4.cert.pem;
         proxy_ssl_certificate_key ../../certs/4.key.pem;
diff --git a/t/expired.t b/t/expired.t
index 188502b..f3ac305 100644
--- a/t/expired.t
+++ b/t/expired.t
@@ -24,6 +24,7 @@ __DATA__
     }
 --- config
     location = / {
+        error_log logs/error-proxy.log debug;
         proxy_pass https://localhost:8443/;
         proxy_ssl_certificate ../../certs/2.cert.pem;
         proxy_ssl_certificate_key ../../certs/2.key.pem;
diff --git a/t/expired_ac.t b/t/expired_ac.t
index 2b07a96..348cb1f 100644
--- a/t/expired_ac.t
+++ b/t/expired_ac.t
@@ -26,7 +26,8 @@ __DATA__
         }
     }
 --- config
-    location = / {
+    location = / { 
+        error_log logs/error-proxy.log debug;
         proxy_pass https://localhost:8443/;
         proxy_ssl_certificate ../../certs/1.cert.pem;
         proxy_ssl_certificate_key ../../certs/1.key.pem;
diff --git a/t/no_ac.t b/t/no_ac.t
index c08fd21..677673d 100644
--- a/t/no_ac.t
+++ b/t/no_ac.t
@@ -26,6 +26,7 @@ __DATA__
     }
 --- config
     location = / {
+        error_log logs/error-proxy.log debug;
         proxy_pass https://localhost:8443/;
         proxy_ssl_certificate ../../certs/0.cert.pem;
         proxy_ssl_certificate_key ../../certs/0.key.pem;
diff --git a/t/no_ssl.t b/t/no_ssl.t
index 26c696a..1ae8c64 100644
--- a/t/no_ssl.t
+++ b/t/no_ssl.t
@@ -20,6 +20,7 @@ __DATA__
     }
 --- config
     location = / {
+        error_log logs/error-proxy.log debug;
         proxy_pass http://localhost:8443/;
     }
 --- request
diff --git a/t/no_ta.t b/t/no_ta.t
index 5bab80b..441430a 100644
--- a/t/no_ta.t
+++ b/t/no_ta.t
@@ -26,6 +26,7 @@ __DATA__
     }
 --- config
     location = / {
+        error_log logs/error-proxy.log debug;
         proxy_pass https://localhost:8443/;
         proxy_ssl_certificate ../../certs/3.cert.pem;
         proxy_ssl_certificate_key ../../certs/3.key.pem;
diff --git a/t/old_format.t b/t/old_format.t
index 37404ea..bf21f29 100644
--- a/t/old_format.t
+++ b/t/old_format.t
@@ -26,6 +26,7 @@ __DATA__
     }
 --- config
     location = / {
+        error_log logs/error-proxy.log debug;
         proxy_pass https://localhost:8443/;
         proxy_ssl_certificate ../../certs/6.cert.pem;
         proxy_ssl_certificate_key ../../certs/6.key.pem;
diff --git a/t/piped.t b/t/piped.t
index ca7d39e..5baa9b1 100644
--- a/t/piped.t
+++ b/t/piped.t
@@ -26,6 +26,7 @@ __DATA__
     }
 --- config
     location = / {
+        error_log logs/error-proxy.log debug;
         proxy_pass https://localhost:8443/;
         proxy_ssl_certificate ../../certs/3.cert.pem;
         proxy_ssl_certificate_key ../../certs/3.key.pem;
diff --git a/t/ssl_no_client_authn.t b/t/ssl_no_client_authn.t
index e1042d6..d30f87f 100644
--- a/t/ssl_no_client_authn.t
+++ b/t/ssl_no_client_authn.t
@@ -24,6 +24,7 @@ __DATA__
     }
 --- config
     location = / {
+        error_log logs/error-proxy.log debug;
         proxy_pass https://localhost:8443/;
     }
 --- request
diff --git a/t/untrusted_ac.t b/t/untrusted_ac.t
index 72206c9..f7a97b3 100644
--- a/t/untrusted_ac.t
+++ b/t/untrusted_ac.t
@@ -26,6 +26,7 @@ __DATA__
     }
 --- config
     location = / {
+        error_log logs/error-proxy.log debug;
         proxy_pass https://localhost:8443/;
         proxy_ssl_certificate ../../certs/5.cert.pem;
         proxy_ssl_certificate_key ../../certs/5.key.pem;
diff --git a/t/valid_ac.t b/t/valid_ac.t
index f84fb97..60aceaf 100644
--- a/t/valid_ac.t
+++ b/t/valid_ac.t
@@ -36,6 +36,7 @@ __DATA__
     }
 --- config
     location = / {
+        error_log logs/error-proxy.log debug;
         proxy_pass https://localhost:8443/;
         proxy_ssl_certificate ../../certs/3.cert.pem;
         proxy_ssl_certificate_key ../../certs/3.key.pem;
-- 
GitLab