Merge remote-tracking branch 'origin/main'
# Conflicts: # Makefile # debian/changelog # tests/01-module/01-e2e.robot
This commit is contained in:
@@ -29,37 +29,6 @@ Module loads
|
||||
${output} = Docker Exec ${SERVER} nginx -t 2>&1
|
||||
Should Contain ${output} syntax is ok
|
||||
|
||||
Shared-listen-include across multiple server blocks
|
||||
[Documentation] Three server blocks all pull in the same
|
||||
... ipng-listens.inc (see docs/user-guide.md). The
|
||||
... include also carries `reuseport` on every listen
|
||||
... — nginx core would normally reject the second
|
||||
... server block with "duplicate listen options", but
|
||||
... the wrapper strips socket-level options on a
|
||||
... repeat (cross-cscf) sockaddr so the first cscf
|
||||
... owns the reuseport-cloned socket and the rest
|
||||
... merge cleanly. With worker_processes unset
|
||||
... (default 1), reuseport produces one socket per
|
||||
... (worker × family), i.e. 2 on :8080 here.
|
||||
${output} = Docker Exec ${SERVER} nginx -t 2>&1
|
||||
Should Not Contain ${output} conflicting server name
|
||||
Should Not Contain ${output} duplicate listen
|
||||
${listens} = Docker Exec ${SERVER} ss -tlnH
|
||||
${count} = Get Regexp Matches ${listens} :8080\\s
|
||||
Length Should Be ${count} 2
|
||||
... Expected 2 listening sockets on port 8080 (v4+v6 wildcards); got ${count}
|
||||
# Proves the cross-cscf option-stripping path actually fired for
|
||||
# the 2nd and 3rd server blocks at daemon startup — the wrapper
|
||||
# logs a NOTICE per stripped listen via ngx_conf_log_error. We
|
||||
# read the container's startup log rather than `nginx -t`'s
|
||||
# output because nginx keeps the config-parse log level at ERR
|
||||
# until the error_log directive has been fully applied, so
|
||||
# `nginx -t` suppresses the NOTICE even though the wrapper is
|
||||
# invoked.
|
||||
${rc} ${startup_log} = Run And Return Rc And Output
|
||||
... docker logs ${SERVER} 2>&1
|
||||
Should Contain ${startup_log} stripped socket options from duplicate listen
|
||||
|
||||
Prometheus scrape
|
||||
[Documentation] Scrape returns HELP/TYPE preamble.
|
||||
${output} = Scrape Prometheus
|
||||
|
||||
Reference in New Issue
Block a user