summaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)Author
2021-07-12tests: update fts indexer log messagesflakesAntoine Eiche
2021-07-12Switch CI to Nix flakesAntoine Eiche
We also move tests to Flakes. This would allow users to submit PRs with a fork of nixpkgs when they want to test nixpkgs PRs against SNM.
2021-06-24Update nixpkgs-unstableupdate-nixpkgs-unstableAntoine Eiche
Because of https://github.com/NixOS/nixpkgs/commit/b7749c76715ba96727f7a12bc2514ddfa6847813 we need to `set +o pipefail` several asserts.
2021-06-06Release nixos-21.05Antoine Eiche
2021-05-01Rename intern/extern tests to internal/externalrename-testsAntoine Eiche
2021-04-24tests: increase memory limit for indexer processGuillaume Girol
otherwise fts-xapian with recent versions (1.4.9 at least) prints a warning and the test fails
2021-03-04add full text search supportSymphorien Gibol
2021-02-06postfix: forwarding emails of login accounts with keeping local copyAntoine Eiche
When a local account address is forwarded, the mails were not locally kept. This was due to the way lookup tables were internally managed. Instead of using lists to represent Postfix lookup tables, we now use attribute sets: they can then be easily merged. A regression test for https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/issues/ has been added: it sets a forward on a local address and ensure an email sent to this address is locally kept. Fixes #205
2020-11-29Recommend bcrypt passwords everywhereHenri Menke
2020-11-11Move clamav database to the blobs repositoryAntoine Eiche
This database is huge and can be fetched at build time. Fixes #197
2020-10-31Release nixos-20.09 branchAntoine Eiche
2020-10-05test.dovecot: ensure port 143 is closed when enableImap is not setAntoine Eiche
The test also checks the connection on the imap port 993 is a SSL connection.
2020-10-05remove support for 20.03Milan Pässler
2020-09-28Add multiple.nix testAntoine Eiche
This test is used to test feature requiring several mail domains, such as the `forwards` option.
2020-07-27Move tests to the Python frameworkAntoine Eiche
2020-07-06Setup rspamd controller to serve web UI assetsXavier Vello
2020-05-11Remove 19.09 supportAntoine Eiche
Note there is still the 19.09 branch.
2020-05-08tests/intern: set memorySize to 1GAntoine Eiche
There is an OOM when running this test.
2020-05-08Add send-only testAntoine Eiche
In the intern test, we send a mail to a send-only account and check the reject message is correcly returned.
2020-05-05tests/extern.nix: increase memorySymphorien Gibol
got oom several time with rspamd 2.5 update
2020-05-05tests/clamav.nix: relax expected error messageSymphorien Gibol
with rspamd 2.5 it only says Spam message rejected
2020-04-22Remove the GitLab runner related codeAntoine Eiche
2020-04-19tests: no ssl cert check for fetchmailAntoine Eiche
Since the certificate is autosigned, an SSL error was emitted by dovecot.
2020-04-19Use Niv to pin nixpkgs releasesAntoine Eiche
Before using Niv, we were following channels meaning we can not reproduce CI jobs easily. In this change, we use Niv to pin these dependencies. We are also addding a tests/default.nix to be able to run these tests locally. For instance, to run the test extern.nix on the nixpkgs-19.09 release: nix-build tests/default.nix -A extern.nixpkgs_19_09 Fixes #178
2019-12-15Update clamav test fixturesXavier Vello
2019-12-14Fix extern test on 19.09Xavier Vello
The openssl output format changed, breaking the "dkim has user-specified size" test
2019-12-14Fix dovecot in 19.09+Xavier Vello
Dovecot now requires at least 1024bits of dh params. Test duration seems is not significantly increased.
2019-12-14Update clamav test to use local fixturesXavier Vello
The current version fetches clamav-db-files from gitlab, in the master branch. This is currently broken as the files were removed, and does not allow to ensure a fixture update does not break the test
2019-12-14Restore tests and script deleted in b8661825Xavier Vello
2019-09-22Remove use of the deprecated string typeJosephTheEngineer
2019-07-09add dkimKeyBits configurationJoey Hewitt
2019-07-07fixes to testsJoey Hewitt
- restructure rspamd config. It's nicer now, and it was getting overridden the old way. - "scan_mime_parts = false" apparently must be used in rspamd for ClamAV to work - refactor the clamav test a bit for cleanliness - wait for rspamd and clamd sockets to open, before testing - use clamdscan for speed, and verify that the virus was found - verify msmtp returns virus scan result
2019-07-07workaround GitLab CI KVM issueJoey Hewitt
Their CI environment currently doesn't have KVM. This commit should be reverted when/if they do, for much better CI speed. You can still run tests locally on your KVM-enabled machine as documented on the wiki. Workaround on GitLab is several pieces (injected through .gitlab-ci.yml): - Make a /dev/kvm file so that nix thinks we have "kvm" system feature and proceeds with executing the tests. - Inject a QEMU package that replaces qemu-kvm with a full emulator. - Monkey-patch the test script to wait longer for the VM to boot, since it's slow on full emulation. 1200 seconds, double the previous value. The patch method is not bulletproof, but better than maintaining forks of nixpkgs. - Set systemd's DefaultTimeoutStartSec=15min, so nix's "backdoor" test service doesn't time out on the slow boot.
2019-07-06lower dhparam bits, for faster testsJoey Hewitt
Make a tests/lib/config.nix file that is imported into the configuration of all testing VMs.
2019-05-03fix minimal testRobin Raymond
2018-11-10Merge branch 'eqyiel/nixos-mailserver-clamav-db-in-lfs'Robin Raymond
2018-10-30remove Diffie Hillman parameter creation as it is handled by the upstream ↵plchldr
dovecot2 module as of 18.09
2018-08-18ci: store Clamav DB in LFSRuben Maher
Fix #136 (stop pulling the files from @griff's poor server), also add a script to update the files. The fun thing about this is that due to sourcing the files from `https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/raw/master/tests/clamav` during the tests, updates to the `hashes.json` and `*.cvd` files will always fail CI. I guess this is a reasonable tradeoff as long as people are aware of it.
2018-06-29dovecot: Add spam filter traning using imapsieveBrian Olsen
2018-06-29tests: Add ClamAV test and fix errors in virus scanningBrian Olsen
2018-06-29Use OpenDKIM instead of rmilter for DKIMBrian Olsen
As part of #61 this moves DKIM handling from rmilter to OpenDKIM.
2018-06-29tests/extern: Fix small errorsBrian Olsen
1. The lowquota test used the wrong fetchmail username and password 2. When running interactively repeatedly mkdir fails since dir exists
2018-04-09Fog user's hostname in the Message-IDgeistesk
2018-04-08log failuresRobin Raymond
2018-04-03Support for multiple extraVirtualAliasesgeistesk
Should fix #104 by introducing ``` extraVirtualAliases = { "single-alias@domain.foobar" = "user1@domain.foobar"; "multi-alias@domain.foobar" = [ "user1@domain.foobar" "user2@domain.foobar" ]; }; ```
2018-03-04Add test for #94Robert Schütz
Ensure that no warnings or errors are in the journal
2018-02-18fix testsRobin Raymond
2018-02-18add vitual mail usersRobin Raymond
2018-02-18Merge pull request #79 from griff/test-cleanupv2.1Robin Raymond
tests/extern: cleanup and simplification
2018-02-17tests/extern: cleanup and simplificationBrian Olsen
The extern test used shell scripting for file writing and ip lookup which Nix and make-test.nix can do. I have also replaced the 5 second sleep with the check for completion of queue processing on server.