1 import ./make-test-python.nix ({ pkgs, ... }:
6 nodes.machine = { pkgs, ... }: {
7 services.tomcat.enable = true;
11 machine.wait_for_unit("tomcat.service")
12 machine.wait_for_open_port(8080)
13 machine.wait_for_file("/var/tomcat/webapps/examples");
15 "curl --fail http://localhost:8080/examples/servlets/servlet/HelloWorldExample | grep 'Hello World!'"
18 "curl --fail http://localhost:8080/examples/jsp/jsp2/simpletag/hello.jsp | grep 'Hello, world!'"