1 import ./make-test-python.nix ({ pkgs, lib, ... }: {
2 name = "plantuml-server";
3 meta.maintainers = with lib.maintainers; [ anthonyroussel ];
5 nodes.machine = { pkgs, ... }: {
6 environment.systemPackages = [ pkgs.curl ];
7 services.plantuml-server.enable = true;
13 machine.wait_for_unit("plantuml-server.service")
14 machine.wait_for_open_port(8080)
16 with subtest("Generate chart"):
17 chart_id = machine.succeed("curl -sSf http://localhost:8080/plantuml/coder -d 'Alice -> Bob'")
18 machine.succeed("curl -sSf http://localhost:8080/plantuml/txt/{}".format(chart_id))