mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
parent
fa5e562e6c
commit
d8d1e397cb
2 changed files with 25 additions and 27 deletions
|
@ -1321,5 +1321,5 @@ in {
|
|||
zrepl = handleTest ./zrepl.nix {};
|
||||
zsh-history = handleTest ./zsh-history.nix {};
|
||||
zwave-js = handleTest ./zwave-js.nix {};
|
||||
zwave-js-ui = handleTest ./zwave-js-ui.nix {};
|
||||
zwave-js-ui = runTest ./zwave-js-ui.nix;
|
||||
}
|
||||
|
|
|
@ -1,31 +1,29 @@
|
|||
import ./make-test-python.nix (
|
||||
{ lib, ... }:
|
||||
{
|
||||
name = "zwave-js-ui";
|
||||
meta.maintainers = with lib.maintainers; [ cdombroski ];
|
||||
{ lib, ... }:
|
||||
{
|
||||
name = "zwave-js-ui";
|
||||
meta.maintainers = with lib.maintainers; [ cdombroski ];
|
||||
|
||||
nodes = {
|
||||
machine =
|
||||
{ ... }:
|
||||
{
|
||||
services.zwave-js-ui = {
|
||||
enable = true;
|
||||
serialPort = "/dev/null";
|
||||
settings = {
|
||||
HOST = "::";
|
||||
PORT = "9999";
|
||||
};
|
||||
nodes = {
|
||||
machine =
|
||||
{ ... }:
|
||||
{
|
||||
services.zwave-js-ui = {
|
||||
enable = true;
|
||||
serialPort = "/dev/null";
|
||||
settings = {
|
||||
HOST = "::";
|
||||
PORT = "9999";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
start_all()
|
||||
testScript = ''
|
||||
start_all()
|
||||
|
||||
machine.wait_for_unit("zwave-js-ui.service")
|
||||
machine.wait_for_open_port(9999)
|
||||
machine.wait_until_succeeds("journalctl --since -1m --unit zwave-js-ui --grep 'Listening on port 9999host :: protocol HTTP'")
|
||||
machine.wait_for_file("/var/lib/zwave-js-ui/users.json")
|
||||
'';
|
||||
}
|
||||
)
|
||||
machine.wait_for_unit("zwave-js-ui.service")
|
||||
machine.wait_for_open_port(9999)
|
||||
machine.wait_until_succeeds("journalctl --since -1m --unit zwave-js-ui --grep 'Listening on port 9999host :: protocol HTTP'")
|
||||
machine.wait_for_file("/var/lib/zwave-js-ui/users.json")
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue