mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
20 lines
439 B
Nix
20 lines
439 B
Nix
|
import ./make-test-python.nix ({ lib, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
name = "libreddit";
|
||
|
meta.maintainers = with maintainers; [ fab ];
|
||
|
|
||
|
nodes.machine =
|
||
|
{ pkgs, ... }:
|
||
|
{ services.libreddit.enable = true; };
|
||
|
|
||
|
testScript = ''
|
||
|
machine.wait_for_unit("libreddit.service")
|
||
|
machine.wait_for_open_port("8080")
|
||
|
# The service wants to get data from https://www.reddit.com
|
||
|
machine.succeed("curl http://localhost:8080/")
|
||
|
'';
|
||
|
})
|