mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
parent
69df9598cb
commit
af2b019d25
2 changed files with 22 additions and 24 deletions
|
@ -803,7 +803,7 @@ in {
|
||||||
nginx-etag-compression = runTest ./nginx-etag-compression.nix;
|
nginx-etag-compression = runTest ./nginx-etag-compression.nix;
|
||||||
nginx-globalredirect = runTest ./nginx-globalredirect.nix;
|
nginx-globalredirect = runTest ./nginx-globalredirect.nix;
|
||||||
nginx-http3 = handleTest ./nginx-http3.nix {};
|
nginx-http3 = handleTest ./nginx-http3.nix {};
|
||||||
nginx-mime = handleTest ./nginx-mime.nix {};
|
nginx-mime = runTest ./nginx-mime.nix;
|
||||||
nginx-modsecurity = handleTest ./nginx-modsecurity.nix {};
|
nginx-modsecurity = handleTest ./nginx-modsecurity.nix {};
|
||||||
nginx-moreheaders = handleTest ./nginx-moreheaders.nix {};
|
nginx-moreheaders = handleTest ./nginx-moreheaders.nix {};
|
||||||
nginx-njs = handleTest ./nginx-njs.nix {};
|
nginx-njs = handleTest ./nginx-njs.nix {};
|
||||||
|
|
|
@ -1,26 +1,24 @@
|
||||||
import ./make-test-python.nix (
|
{ lib, pkgs, ... }:
|
||||||
{ lib, pkgs, ... }:
|
{
|
||||||
{
|
name = "nginx-mime";
|
||||||
name = "nginx-mime";
|
meta.maintainers = with pkgs.lib.maintainers; [ izorkin ];
|
||||||
meta.maintainers = with pkgs.lib.maintainers; [ izorkin ];
|
|
||||||
|
|
||||||
nodes = {
|
nodes = {
|
||||||
server =
|
server =
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts."localhost" = { };
|
virtualHosts."localhost" = { };
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
server.start()
|
server.start()
|
||||||
server.wait_for_unit("nginx")
|
server.wait_for_unit("nginx")
|
||||||
# Check optimal size of types_hash
|
# Check optimal size of types_hash
|
||||||
server.fail("journalctl --unit nginx --grep 'could not build optimal types_hash'")
|
server.fail("journalctl --unit nginx --grep 'could not build optimal types_hash'")
|
||||||
server.shutdown()
|
server.shutdown()
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue