python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / nixos / tests / tomcat.nix
blob4cfb3cc5a7d8483f7feb521a65d770d8ea485f0f
1 import ./make-test-python.nix ({ pkgs, ... }:
4   name = "tomcat";
6   nodes.machine = { pkgs, ... }: {
7     services.tomcat.enable = true;
8   };
10   testScript = ''
11     machine.wait_for_unit("tomcat.service")
12     machine.wait_for_open_port(8080)
13     machine.wait_for_file("/var/tomcat/webapps/examples");
14     machine.succeed(
15         "curl --fail http://localhost:8080/examples/servlets/servlet/HelloWorldExample | grep 'Hello World!'"
16     )
17     machine.succeed(
18         "curl --fail http://localhost:8080/examples/jsp/jsp2/simpletag/hello.jsp | grep 'Hello, world!'"
19     )
20   '';