Commit Graph

11 Commits

Author SHA1 Message Date
Morgan Jones
eb435dcd1f mattermostLatest: don't test unofficial patches
Warn if the user tries to enable them, and disable them in tests because
it's too much work to maintain them.
2026-07-03 04:56:11 -07:00
jose
fc9f1c91b2 mattermost: add patches for user limit and banner removal 2026-05-25 23:20:44 -07:00
Morgan Jones
301c477b66 tests/mattermost: don't test MySQL
MySQL was dropped from Mattermost in version 11.
2025-10-27 20:31:48 -07:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Peder Bergebakken Sundt
97262ee871 treewide: replace stdenv.is with stdenv.hostPlatform.is 2025-06-04 19:01:03 +02:00
Morgan Jones
a7e52b03c3 nixos/mattermost: correct file upload directory
Fix compatibility with previous versions by making sure all the uploads
and plugins end up in the correct directory. Add a test for the exact
path we care about to ensure that it doesn't work "on accident."

Discovered while updating instances to unstable.
2025-04-19 18:33:20 -07:00
Morgan Jones
1f67f0f1c9 nixos/tests/mattermost: disable MySQL tests on aarch64
There seems to be some intermittent issue initializing the database on
aarch64. Still test Postgres since it is the default.
2025-04-06 17:40:51 -07:00
Morgan Jones
ea485e1207 mattermost: squash systemd-tmpfiles warning (+ other minor fixes)
There was a systemd-tmpfiles warning about not being able to remove the
'plugins' directory. Squash this warning through removal of unnecessary
systemd-tmpfiles options, and write a test for it.

Add the {option}`services.mattermost.pluginsBundle` option to allow
overriding the plugin directory and also using it for tests. Update
wording in option documentation so it is more clear.

Use formats.json instead of builtins.toJSON so module merging works.

Make the tests go faster by pipelining shutdowns of nodes.
2025-04-01 19:20:48 -07:00
Morgan Jones
672f423d0c nixos/mattermost: default preferNixConfig to true
Now that we are disabling telemetry by default, we should attempt to
override it and other options in existing mutable configs,
if the user had a mutable config and advances their system.stateVersion.
2025-01-27 10:29:37 +01:00
Morgan Jones
fc3f7c17e2 nixos/mattermost: disable telemetry by default
We should disable telemetry but enable security update checks. Make both
controlable in the module without digging into settings.

Disabling telemetry also makes NixOS tests faster because the server
tries to send telemetry on first start.
2025-01-27 10:29:37 +01:00
Morgan Jones
f8eac009ee nixos/mattermost: modernize, support MySQL and mmctl
Based on #198040. Prioritizes backwards compatibility, including
database and plugin compatibility, while adding more sensible
defaults like database peer authentication.

Expand the scope of tests to include plugins (including building
from source) and testing that a piece of media uploads and downloads
to make sure the storage directory doesn't vanish.
2025-01-20 08:07:45 +01:00