nixpkgs/nixos/tests/eris-server.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
760 B
Nix
Raw Normal View History

2023-07-29 10:20:37 +00:00
import ./make-test-python.nix (
{ pkgs, lib, ... }:
{
name = "eris-server";
meta.maintainers = with lib.maintainers; [ ehmry ];
nodes.server = {
2023-12-01 11:03:10 +00:00
environment.systemPackages = [
pkgs.eris-go
pkgs.eriscmd
];
2023-07-29 10:20:37 +00:00
services.eris-server = {
enable = true;
decode = true;
listenHttp = "[::1]:80";
backends = [ "badger+file:///var/cache/eris.badger?get&put" ];
mountpoint = "/eris";
};
2023-07-29 10:20:37 +00:00
};
testScript = ''
start_all()
server.wait_for_unit("eris-server.service")
server.wait_for_open_port(5683)
server.wait_for_open_port(80)
server.succeed("eriscmd get http://[::1] $(echo 'Hail ERIS!' | eriscmd put coap+tcp://[::1]:5683)")
'';
}
)