Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
ci: Verify production servers using /api/v1/server_settings.
Tim Abbottcd011b1a942c
diff --git a/tools/ci/production-verify b/tools/ci/production-verifyindex 472d883c6cb..389e8ed715d 100755--- a/tools/ci/production-verify+++ b/tools/ci/production-verify@@ -92,10 +92,10 @@ fi# TODO: Ideally this would test actually logging in, but this is a start.echo-echo "Now testing that the newly installed server's homepage loads"+echo "Now testing that the newly installed server's settings endpoint loads"echo-curl -ILk https://localhost -o /tmp/http-headers+curl -ILk https://localhost/api/v1/server_settings -o /tmp/http-headersgrep -vi -e '^content-length:' -e '^date:' -e '^expires:' -e '^set-cookie:' /tmp/http-headers >/tmp/http-headers-processednginx_version="$(nginx -v 2>&1)"diff --git a/tools/ci/success-http-headers.template.txt b/tools/ci/success-http-headers.template.txtindex 3e6f4b1fcbf..5fc4d8edd09 100644--- a/tools/ci/success-http-headers.template.txt+++ b/tools/ci/success-http-headers.template.txt@@ -1,9 +1,14 @@-HTTP/2 404+HTTP/2 200server: {nginx_version_string}-content-type: text/html; charset=utf-8+content-type: application/jsonvary: Accept-Encodingvary: Accept-Language, Cookiecontent-language: enstrict-transport-security: max-age=15768000x-frame-options: DENY+x-content-type-options: nosniff+x-xss-protection: 1; mode=block+access-control-allow-origin: *+access-control-allow-headers: Authorization+access-control-allow-methods: GET, POST, DELETE, PUT, PATCH, HEAD