1 { system ? builtins.currentSystem, config ? { }
2 , pkgs ? import ../.. { inherit system config; } }:
4 with import ../lib/testing-python.nix { inherit system pkgs; };
7 let common_meta = { maintainers = [ maintainers.viraptor ]; };
10 gemstash_works = makeTest {
11 name = "gemstash-works";
14 nodes.machine = { config, pkgs, ... }: {
20 # gemstash responds to http requests
22 machine.wait_for_unit("gemstash.service")
23 machine.wait_for_file("/var/lib/gemstash")
24 machine.wait_for_open_port(9292)
25 machine.succeed("curl http://localhost:9292")
29 gemstash_custom_port = makeTest {
30 name = "gemstash-custom-port";
33 nodes.machine = { config, pkgs, ... }: {
38 bind = "tcp://0.0.0.0:12345";
43 # gemstash responds to http requests
45 machine.wait_for_unit("gemstash.service")
46 machine.wait_for_file("/var/lib/gemstash")
47 machine.wait_for_open_port(12345)
48 machine.succeed("curl http://localhost:12345")