Commit graph

111 commits

Author SHA1 Message Date
ibizaman
b26023a4ce home-assistant: actually test ldap login 2026-06-23 16:30:10 +02:00
Dmitry
24fdbb81df Fix Open WebUI tests in offline mode
Open WebUI 0.9.6 still initializes its embedding function during startup, even when OFFLINE_MODE=true and BYPASS_EMBEDDING_AND_RETRIEVAL=true. With OFFLINE_MODE=true and no cached SentenceTransformer model, startup failed with:

ValueError: No embedding model is loaded. Set RAG_EMBEDDING_MODEL to a valid SentenceTransformer model name, or configure an external RAG_EMBEDDING_ENGINE (ollama, openai, azure_openai).

Configure the tests to use a dummy Ollama embedding endpoint so startup does not try to load or download a local embedding model. The endpoint is not meant to be contacted by these tests; it only keeps startup on the external embedding configuration path.
2026-06-17 12:50:57 +02:00
Dmitry
2a57f335f2 Cap deluged restarts at 2
`StartLimit` does not exactly cap the number of retries; instead, it specifies a window at the beginning of the service lifespan when the number of retries is capped.

Also assert later that the number of restarts is at most 1.
2026-06-14 18:37:08 +02:00
Dmitry
f4f4881310 Restart deluged on failure in tests
Running

```sh
nix build .#checks.x86_64-linux.vm_deluge_sso --max-jobs 1 --cores 1
```

`deluged` sometimes segfaults: https://gist.github.com/dniku/5056689d9191e839e39d4c7b3fbf6410

Fixing this does not seem in scope for SHB.
2026-06-14 18:37:08 +02:00
Dmitry
60dfb9d19b Extract Jellyfin test extraScript into commonExtraScript and prepend it in LDAP test
`commonTestScript.access.override` replaces the full extraScript, and in particular drops:

```
server.wait_until_succeeds("journalctl --since -1m --unit jellyfin --grep 'Startup complete'")
```

https://github.com/ibizaman/selfhostblocks/actions/runs/27462763816/job/81262609484?pr=731 shows the symptoms:

* https://github.com/ibizaman/selfhostblocks/actions/runs/27462763816/job/81262609484?pr=731#step:5:7163 logs `Login from client` (defined in 8871b9435b/test/common.nix (L166)) at timestamp `2026-06-14T08:34:06.7507323Z` (visible in the raw logs)
* https://github.com/ibizaman/selfhostblocks/actions/runs/27462763816/job/81262609484?pr=731#step:5:7167 is the first request from Firefox at timestamp 2026-06-14T08:34:18.2868336Z, so the attempt to fill in the username starts around there, with a 30-second timeout
*  https://github.com/ibizaman/selfhostblocks/actions/runs/27462763816/job/81262609484?pr=731#step:5:7577 logs `Main: Startup complete 0:01:00.1813498` at timestamp 2026-06-14T08:34:51.1325282Z, 45 seconds after test starts

Work around by explicitly prepending the full extraScript to the override.
2026-06-14 16:21:49 +02:00
Dmitry
669d4bf1b7 test(open-webui): assert SSO session instead of login toast
Open WebUI redirects from /auth to / after OIDC login and briefly shows the "You're now logged in" toast during that transition. The toast is not a stable post-login signal, so the VM test can fail even though SSO succeeded.

Wait for the final root URL and verify the authenticated Open WebUI session through /api/v1/auths/ instead. This keeps the test focused on the expected SSO outcome while avoiding the transient UI race.
2026-06-05 09:28:29 +02:00
ibizaman
5bfd1c4008 open-webui: increase test timeouts 2026-06-04 00:47:53 +02:00
ibizaman
9736456153 open-webui: update assert in test after wording change 2026-06-04 00:47:53 +02:00
ibizaman
aa290b517c mailserver: use same casing for passwords as for other tests 2026-06-04 00:47:53 +02:00
ibizaman
4bb9287aa4 home-assistant: fix login test 2026-06-04 00:47:53 +02:00
ibizaman
503f1c31ea mailserver: update to e33fbde and add test 2026-05-24 01:37:52 +02:00
ibizaman
ec3406039d open-webui: increase memory for open-webui test 2026-05-11 01:27:27 +02:00
ibizaman
968e54dd89 deluge: refactor to fix test 2026-03-31 23:19:33 +02:00
ibizaman
7611e99eaa nextcloud: disable tests for apps not supporting 33 2026-03-12 20:43:43 +01:00
ibizaman
c333122720 nextcloud: bump to 32 and 33 2026-03-12 20:43:43 +01:00
ibizaman
c0c9562789 forgejo: make sure ldap is setup when sso is enabled 2026-02-26 22:40:23 +01:00
ibizaman
f485cc60fe homepage: init with dashboard contract 2026-02-24 20:00:36 +01:00
ibizaman
0d2a7c315f arr: add declarative api key 2026-02-24 20:00:36 +01:00
sitrius
5da47a77c7 fix: use configurable dataDir paths in arr stack and fix sops.secret references
- Replace hardcoded /var/lib/<app> paths with shb.arr.<app>.dataDir in arr.nix
- Fix bazarr config path in test to use cfg.dataDir
- Correct shb.sops.secrets → shb.sops.secret in documentation files
2026-02-22 10:04:13 +01:00
ibizaman
aeff324fcf jellyfin: update jellyfin cli for 10.11.6 2026-02-02 08:14:21 +01:00
ibizaman
6ebd3204c9 nit: use shb nixos tester
The pkgs.nixosTest has been deprecated
2026-02-02 08:14:21 +01:00
ibizaman
cac0a5fbf9 nextcloud: accept users only part of the admin group 2026-01-12 09:50:31 +01:00
ibizaman
d3e2834604 pinchflat: remove test for unsupported admin only user 2026-01-12 09:50:31 +01:00
ibizaman
8ad4385ad8 karakeep: remove test for unsupported admin only user 2026-01-12 09:50:31 +01:00
ibizaman
896246a187 forgejo: accept users only part of the admin group 2026-01-12 09:50:31 +01:00
ibizaman
38d8f3034e open-webui: speed up test by enabling offline mode 2026-01-12 09:50:31 +01:00
ibizaman
a584decd52 nextcloud: test for all supported versions 2026-01-11 23:16:55 +01:00
ibizaman
78b5e59830 jellyfin: disable other plugin version 2026-01-11 22:17:37 +01:00
ibizaman
00a288de39 firefly-iii: remove commented code from test 2026-01-11 22:17:37 +01:00
ibizaman
a5b9a62f73 jellyfin: declarative plugins, ldap and sso 2026-01-10 18:18:43 +01:00
ibizaman
3b9c1622e1 firefly-iii: also add sso to data importer 2026-01-07 22:07:32 +01:00
ibizaman
ffb34bb6bc firefly-iii: init 2025-12-31 09:00:23 +01:00
ibizaman
c10cab627f mod: use explicit shb argument to pass lib 2025-12-03 22:19:45 +01:00
sivert
d655655e0c #587 Implement SHB module for paperless service 2025-11-24 23:01:46 +01:00
ibizaman
dce519849f karakeep: remove option already set in common lib 2025-11-21 09:52:13 +01:00
ibizaman
116dc41d6f tests: use shb.lib everywhere 2025-11-18 23:06:26 +01:00
ibizaman
c714bd3d87 karakeep: remove unneeded imports in tests 2025-11-18 23:06:26 +01:00
ibizaman
23649e4c64 grafana: move test file 2025-11-18 23:06:26 +01:00
ibizaman
48802553de chore: format all files 2025-10-28 22:17:00 +01:00
ibizaman
6b7a6c6748 karakeep: configure meilisearch with master key and auto update 2025-10-24 01:54:26 +02:00
ibizaman
63b7b09a0f karakeep: init 2025-10-22 03:33:17 +02:00
ibizaman
283e12d87d test: merge functions into lib and set backdoor everywhere 2025-10-15 01:20:00 +02:00
ibizaman
9892f55ae2 mod: make imports explicit and remove system 2025-10-12 00:24:52 +02:00
ibizaman
3de3dad405 tests: assert user with unknown group cannot login with sso or ldap 2025-10-09 02:04:20 +02:00
ibizaman
969630c22b revert added tests
This reverts commit ffa918aec6.
It was merged incorrectly because I tricked the tests to succeed by accident.
2025-10-05 00:08:32 +02:00
ibizaman
1f38d42f19 open-webui: fix test in ci 2025-10-04 23:52:14 +02:00
ibizaman
ffa918aec6 tests: assert user with unknown group cannot login with sso or ldap 2025-10-04 23:52:14 +02:00
ibizaman
02b73d2dce open-webui: init 2025-09-27 21:25:40 +02:00
sivert
2f785919d9 #100 Immich service
- Declarative SSO setup via json config file
- roleClaim via LDAP groups to automatically set admin privileges
- SSO tested manually, but not yet in playwright test
- Storage quota claim not yet implemented
- Authelia rule prevents access by non-members of
userGroup/adminUserGroup
2025-09-20 14:43:38 +02:00
ibizaman
98b4cc32b6 pinchflat: init 2025-09-17 10:59:12 +02:00