summary refs log blame commit diff
path: root/nixos/tests/soapui.nix
blob: e4ce3888fd4378ad6bec7dd72a90fde398ba9e84 (plain) (tree)
1
2
3
4
5
6
7





                                               
                                          










                                                 
                                   




                                                    
import ./make-test-python.nix ({ pkgs, ... }: {
  name = "soapui";
  meta = with pkgs.lib.maintainers; {
    maintainers = [ asbachb ];
  };

  nodes.machine = { config, pkgs, ... }: {
    imports = [
      ./common/x11.nix
    ];

    services.xserver.enable = true;

    environment.systemPackages = [ pkgs.soapui ];
  };

  testScript = ''
    machine.wait_for_x()
    machine.succeed("soapui >&2 &")
    machine.wait_for_window(r"SoapUI \d+\.\d+\.\d+")
    machine.sleep(1)
    machine.screenshot("soapui")
  '';
})