Skip to content

Commit

Permalink
nixos/tests/gotosocial: adjust for gotosocial 0.18.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
transcaffeine committed Feb 24, 2025
1 parent ac93dd7 commit 6f3912b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nixos/tests/web-apps/gotosocial.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
settings = {
host = "localhost:8081";
port = 8081;
instance-stats-mode = "serve";
};
};
};
Expand All @@ -21,9 +22,11 @@
machine.wait_for_unit("gotosocial.service")
machine.wait_for_unit("postgresql.service")
machine.wait_for_open_port(8081)
# Database migrations are running, wait until gotosocial no longer serves 503
machine.wait_until_succeeds("curl -sS -f http://localhost:8081/readyz", timeout=300)
# check user registration via cli
machine.succeed("gotosocial-admin account create --username nickname --email [email protected] --password kurtz575VPeBgjVm")
machine.succeed("curl -sS -f http://localhost:8081/nodeinfo/2.0 | jq '.usage.users.total' | grep -q '^1$'")
machine.wait_until_succeeds("curl -sS -f http://localhost:8081/nodeinfo/2.0 | jq '.usage.users.total' | grep -q '^1$'")
'';
}

0 comments on commit 6f3912b

Please sign in to comment.