mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
nixos/tests/zipline: add interactive config
This commit is contained in:
parent
6509831a88
commit
0deb1b285f
1 changed files with 13 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
name = "zipline";
|
name = "zipline";
|
||||||
meta.maintainers = with lib.maintainers; [ defelo ];
|
meta.maintainers = with lib.maintainers; [ defelo ];
|
||||||
|
@ -20,6 +21,18 @@
|
||||||
networking.hosts."127.0.0.1" = [ "zipline.local" ];
|
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 = ''
|
testScript = ''
|
||||||
import json
|
import json
|
||||||
import re
|
import re
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue