Unverified Commit 0deb1b28 authored by Defelo's avatar Defelo
Browse files

nixos/tests/zipline: add interactive config

parent 6509831a
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
{ lib, ... }:

{
  name = "zipline";
  meta.maintainers = with lib.maintainers; [ defelo ];
@@ -20,6 +21,18 @@
    networking.hosts."127.0.0.1" = [ "zipline.local" ];
  };

  interactive.nodes.machine = {
    services.zipline.settings.CORE_HOSTNAME = lib.mkForce "0.0.0.0";
    networking.firewall.allowedTCPPorts = [ 8000 ];
    virtualisation.forwardPorts = [
      {
        from = "host";
        host.port = 8000;
        guest.port = 8000;
      }
    ];
  };

  testScript = ''
    import json
    import re