Test plan for nginx-module-vts component upgrade
Copy the test plan below to a comment of the merge request that upgrades the component.
Test plan
- Checked
nginx-vtsmodule changelog for potential breaking changes. - Started a new pipeline and trigger
Trigger::ee-package. - Started a new pipeline on
dev.gitlab.orgfor the branch.- Rebase to tip of
dev/masterif needed.
- Rebase to tip of
- Test the library:
Confirm
nginxhasvtssupport- The command
/opt/gitlab/embedded/sbin/nginx -Vshould include--add-module=/opt/gitlab/src/nginx_modules/nginx-module-vtsin the return.
- The command
Check the version of the
vtsmodule.- Create a minimal
nginx.conf:
worker_processes 1; events { worker_connections 1024; } http { vhost_traffic_status_zone; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { listen 80; server_name localhost; location /status { vhost_traffic_status_display; vhost_traffic_status_display_format html; } } }- Start
nginxwith the configuration with/opt/gitlab/embedded/sbin/nginx -c nginx.conf - Check the version with
curl -ssL localhost:80/status/format/json | jq '.moduleVersion'
- Create a minimal
function- Follow the instructions to configure the VTS module.
- Run
curl -s -g "http://localhost:9090/api/v1/query?query=rate(nginx_vts_server_request_seconds_total[5m])" - The command should return
"status":"success"...