nixos/tests/eintopf: switch to runTest
This commit is contained in:
		
							parent
							
								
									8b485892b7
								
							
						
					
					
						commit
						b62f2530fc
					
				@ -421,7 +421,7 @@ in
 | 
			
		||||
  ecryptfs = handleTest ./ecryptfs.nix { };
 | 
			
		||||
  fscrypt = handleTest ./fscrypt.nix { };
 | 
			
		||||
  fastnetmon-advanced = runTest ./fastnetmon-advanced.nix;
 | 
			
		||||
  eintopf = handleTest ./eintopf.nix { };
 | 
			
		||||
  eintopf = runTest ./eintopf.nix;
 | 
			
		||||
  ejabberd = handleTest ./xmpp/ejabberd.nix { };
 | 
			
		||||
  elk = handleTestOn [ "x86_64-linux" ] ./elk.nix { };
 | 
			
		||||
  emacs-daemon = runTest ./emacs-daemon.nix;
 | 
			
		||||
 | 
			
		||||
@ -1,26 +1,24 @@
 | 
			
		||||
import ./make-test-python.nix (
 | 
			
		||||
  { pkgs, ... }:
 | 
			
		||||
  {
 | 
			
		||||
    name = "eintopf";
 | 
			
		||||
    meta = with pkgs.lib.maintainers; {
 | 
			
		||||
      maintainers = [ onny ];
 | 
			
		||||
    };
 | 
			
		||||
{
 | 
			
		||||
  lib,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  ...
 | 
			
		||||
}:
 | 
			
		||||
 | 
			
		||||
    nodes = {
 | 
			
		||||
      eintopf =
 | 
			
		||||
        { config, pkgs, ... }:
 | 
			
		||||
        {
 | 
			
		||||
          services.eintopf = {
 | 
			
		||||
            enable = true;
 | 
			
		||||
          };
 | 
			
		||||
        };
 | 
			
		||||
    };
 | 
			
		||||
{
 | 
			
		||||
  name = "eintopf";
 | 
			
		||||
  meta.maintainers = with lib.maintainers; [ onny ];
 | 
			
		||||
 | 
			
		||||
    testScript = ''
 | 
			
		||||
      eintopf.start
 | 
			
		||||
      eintopf.wait_for_unit("eintopf.service")
 | 
			
		||||
      eintopf.wait_for_open_port(3333)
 | 
			
		||||
      eintopf.succeed("curl -sSfL http://eintopf:3333 | grep 'Es sind keine Veranstaltungen eingetragen'")
 | 
			
		||||
    '';
 | 
			
		||||
  }
 | 
			
		||||
)
 | 
			
		||||
  nodes = {
 | 
			
		||||
    eintopf = {
 | 
			
		||||
      services.eintopf.enable = true;
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  testScript = ''
 | 
			
		||||
    eintopf.start
 | 
			
		||||
    eintopf.wait_for_unit("eintopf.service")
 | 
			
		||||
    eintopf.wait_for_open_port(3333)
 | 
			
		||||
    eintopf.succeed("curl -sSfL http://eintopf:3333 | grep 'No events available'")
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user