From 7388765d3255a92e7fdc9559280a4376d18c48e7 Mon Sep 17 00:00:00 2001 From: Jeremy Norris Date: Wed, 18 Dec 2024 05:17:47 -0600 Subject: [PATCH] feat(24.04): add slice for libnginx-mod-http-headers-more-filter (#437) --- ...libnginx-mod-http-headers-more-filter.yaml | 26 +++++++++++++++++++ slices/nginx.yaml | 1 + .../task.yaml | 9 +++++++ 3 files changed, 36 insertions(+) create mode 100644 slices/libnginx-mod-http-headers-more-filter.yaml create mode 100644 tests/spread/integration/libnginx-mod-http-headers-more-filter/task.yaml diff --git a/slices/libnginx-mod-http-headers-more-filter.yaml b/slices/libnginx-mod-http-headers-more-filter.yaml new file mode 100644 index 00000000..54c28022 --- /dev/null +++ b/slices/libnginx-mod-http-headers-more-filter.yaml @@ -0,0 +1,26 @@ +package: libnginx-mod-http-headers-more-filter + +essential: + - libnginx-mod-http-headers-more-filter_copyright + +slices: + modules: + essential: + # libnginx-mod-http-headers-more-filter depends on nginx-abi, which is + # a virtual package provided by nginx, hence the dependency on nginx_bins. + - libc6_libs + - libnginx-mod-http-headers-more-filter_config + - nginx_bins + contents: + /usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so: + + config: + contents: + # This symlink is created by the maintainer scipts + /etc/nginx/modules-enabled/50-mod-http-headers-more-filter.conf: + symlink: /usr/share/nginx/modules-available/mod-http-headers-more-filter.conf + /usr/share/nginx/modules-available/mod-http-headers-more-filter.conf: + + copyright: + contents: + /usr/share/doc/libnginx-mod-http-headers-more-filter/copyright: diff --git a/slices/nginx.yaml b/slices/nginx.yaml index 7d148250..2399e0a5 100644 --- a/slices/nginx.yaml +++ b/slices/nginx.yaml @@ -14,6 +14,7 @@ slices: - libpcre2-8-0_libs - libssl3t64_libs - nginx-common_config + - nginx-common_modules - zlib1g_libs contents: /usr/sbin/nginx: diff --git a/tests/spread/integration/libnginx-mod-http-headers-more-filter/task.yaml b/tests/spread/integration/libnginx-mod-http-headers-more-filter/task.yaml new file mode 100644 index 00000000..62b0b23d --- /dev/null +++ b/tests/spread/integration/libnginx-mod-http-headers-more-filter/task.yaml @@ -0,0 +1,9 @@ +summary: Integration tests for libnginx-mod-http-headers-more-filter + +execute: | + # Chisel a minimum number of slices to give us a runnable system that we can + # test in. + rootfs="$(install-slices base-files_var base-passwd_data libnginx-mod-http-headers-more-filter_modules)" + + # This will fail if loading of the NGINX module fails. + chroot "${rootfs}/" nginx -t