mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
Merge remote-tracking branch 'origin/master' into staging-next
This commit is contained in:
commit
1410c766c8
190 changed files with 3514 additions and 7697 deletions
|
@ -1,17 +1,21 @@
|
|||
import ./make-test-python.nix ({ lib, ... }:
|
||||
|
||||
{
|
||||
let
|
||||
jackettPort = 9117;
|
||||
in {
|
||||
name = "jackett";
|
||||
meta.maintainers = with lib.maintainers; [ etu ];
|
||||
|
||||
nodes.machine =
|
||||
{ pkgs, ... }:
|
||||
{ services.jackett.enable = true; };
|
||||
{ pkgs, ... }: {
|
||||
services.jackett.enable = true;
|
||||
services.jackett.port = jackettPort;
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
machine.start()
|
||||
machine.wait_for_unit("jackett.service")
|
||||
machine.wait_for_open_port(9117)
|
||||
machine.succeed("curl --fail http://localhost:9117/")
|
||||
machine.wait_for_open_port(${toString jackettPort})
|
||||
machine.succeed("curl --fail http://localhost:${toString jackettPort}/")
|
||||
'';
|
||||
})
|
||||
|
|
|
@ -11,9 +11,6 @@ import ./make-test-python.nix ({ lib, pkgs, ... }: {
|
|||
enableUserService = true;
|
||||
environment = {
|
||||
LIVEBOOK_PORT = 20123;
|
||||
LIVEBOOK_COOKIE = "chocolate chip";
|
||||
LIVEBOOK_TOKEN_ENABLED = true;
|
||||
|
||||
};
|
||||
environmentFile = pkgs.writeText "livebook.env" ''
|
||||
LIVEBOOK_PASSWORD = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
||||
|
@ -38,7 +35,7 @@ import ./make-test-python.nix ({ lib, pkgs, ... }: {
|
|||
|
||||
machine.succeed("loginctl enable-linger alice")
|
||||
machine.wait_until_succeeds("${sudo} systemctl --user is-active livebook.service")
|
||||
machine.wait_for_open_port(20123)
|
||||
machine.wait_for_open_port(20123, timeout=10)
|
||||
|
||||
machine.succeed("curl -L localhost:20123 | grep 'Type password'")
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue