Age | Commit message (Collapse) | Author |
|
|
|
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.
|
|
Because of
https://github.com/NixOS/nixpkgs/commit/b7749c76715ba96727f7a12bc2514ddfa6847813
we need to `set +o pipefail` several asserts.
|
|
|
|
|
|
otherwise fts-xapian with recent versions (1.4.9 at least) prints a
warning and the test fails
|
|
|
|
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
|
|
|
|
This database is huge and can be fetched at build time.
Fixes #197
|
|
|
|
The test also checks the connection on the imap port 993 is a SSL
connection.
|
|
|
|
This test is used to test feature requiring several mail domains, such
as the `forwards` option.
|
|
|
|
|
|
Note there is still the 19.09 branch.
|
|
There is an OOM when running this test.
|
|
In the intern test, we send a mail to a send-only account and check
the reject message is correcly returned.
|
|
got oom several time with rspamd 2.5 update
|
|
with rspamd 2.5 it only says Spam message rejected
|
|
|
|
Since the certificate is autosigned, an SSL error was emitted by
dovecot.
|
|
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
|
|
|
|
The openssl output format changed, breaking the
"dkim has user-specified size" test
|
|
Dovecot now requires at least 1024bits of dh params.
Test duration seems is not significantly increased.
|
|
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
|
|
|
|
|
|
|
|
- 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
|
|
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.
|
|
Make a tests/lib/config.nix file that is imported into the configuration
of all testing VMs.
|
|
|
|
|
|
dovecot2 module as of 18.09
|
|
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.
|
|
|
|
|
|
As part of #61 this moves DKIM handling from rmilter to OpenDKIM.
|
|
1. The lowquota test used the wrong fetchmail username and password
2. When running interactively repeatedly mkdir fails since dir exists
|
|
|
|
|
|
Should fix #104 by introducing
```
extraVirtualAliases = {
"single-alias@domain.foobar" = "user1@domain.foobar";
"multi-alias@domain.foobar" = [
"user1@domain.foobar" "user2@domain.foobar" ];
};
```
|
|
Ensure that no warnings or errors are in the journal
|
|
|
|
|
|
tests/extern: cleanup and simplification
|
|
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.
|