Skip to content

Commit

Permalink
nixos/tests/grist-core: init
Browse files Browse the repository at this point in the history
Basic smoketest for the gVisor sandboxing.

Signed-off-by: Raito Bezarius <[email protected]>
  • Loading branch information
RaitoBezarius authored and Scandiravian committed Jan 23, 2025
1 parent 8c78ead commit 0d75671
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ in {
glance = runTest ./glance.nix;
glances = runTest ./glances.nix;
glusterfs = handleTest ./glusterfs.nix {};
grist-core = handleTest ./grist-core.nix {};
gnome = handleTest ./gnome.nix {};
gnome-extensions = handleTest ./gnome-extensions.nix {};
gnome-flashback = handleTest ./gnome-flashback.nix {};
Expand Down
25 changes: 25 additions & 0 deletions nixos/tests/grist-core.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import ./make-test-python.nix (
{ lib, ... }:
with lib;
{
name = "grist";
meta.maintainers = with maintainers; [ soyouzpanda ];

nodes.machine =
{ pkgs, ... }:
{
services.grist-core = {
enable = true;

settings = {
DEBUG = "1";
};
};
};

testScript = ''
machine.wait_for_unit("grist-core.service")
machine.wait_until_succeeds("curl --fail http://[::1]:8484", 15)
'';
}
)

0 comments on commit 0d75671

Please sign in to comment.