mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/tests/gotosocial: adjust for gotosocial 0.18.1+
This commit is contained in:
parent
ac93dd7842
commit
6f3912bfd3
1 changed files with 4 additions and 1 deletions
|
@ -13,6 +13,7 @@
|
||||||
settings = {
|
settings = {
|
||||||
host = "localhost:8081";
|
host = "localhost:8081";
|
||||||
port = 8081;
|
port = 8081;
|
||||||
|
instance-stats-mode = "serve";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -21,9 +22,11 @@
|
||||||
machine.wait_for_unit("gotosocial.service")
|
machine.wait_for_unit("gotosocial.service")
|
||||||
machine.wait_for_unit("postgresql.service")
|
machine.wait_for_unit("postgresql.service")
|
||||||
machine.wait_for_open_port(8081)
|
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
|
# check user registration via cli
|
||||||
machine.succeed("gotosocial-admin account create --username nickname --email email@example.com --password kurtz575VPeBgjVm")
|
machine.succeed("gotosocial-admin account create --username nickname --email email@example.com --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$'")
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue