summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAntoine Eiche <lewo@abesis.fr>2020-04-11 21:49:15 +0200
committerAntoine Eiche <lewo@abesis.fr>2020-04-19 10:01:57 +0200
commit09ca79801b7d030cedfe8ca20984580433a6accc (patch)
tree3d9c8efa1efbb86cd88ca6b8ce31c111e74a54b9 /tests
parenta53aa5ac9a080f292a45cea93e8249be2530d20b (diff)
tests: no ssl cert check for fetchmail
Since the certificate is autosigned, an SSL error was emitted by dovecot.
Diffstat (limited to 'tests')
-rw-r--r--tests/clamav.nix4
-rw-r--r--tests/extern.nix18
2 files changed, 11 insertions, 11 deletions
diff --git a/tests/clamav.nix b/tests/clamav.nix
index 62b8d7d..406a392 100644
--- a/tests/clamav.nix
+++ b/tests/clamav.nix
@@ -211,7 +211,7 @@ import (pkgs.path + "/nixos/tests/make-test.nix") {
$client->succeed("cat ~/.msmtprc >&2");
# fetchmail returns EXIT_CODE 1 when no new mail
- $client->succeed("fetchmail -v || [ \$? -eq 1 ] >&2");
+ $client->succeed("fetchmail --nosslcertck -v || [ \$? -eq 1 ] >&2");
# Verify that mail can be sent and received before testing virus scanner
$client->execute("rm ~/mail/*");
@@ -220,7 +220,7 @@ import (pkgs.path + "/nixos/tests/make-test.nix") {
$server->waitUntilFails('[ "$(postqueue -p)" != "Mail queue is empty" ]');
$client->execute("rm ~/mail/*");
# fetchmail returns EXIT_CODE 0 when it retrieves mail
- $client->succeed("fetchmail -v >&2");
+ $client->succeed("fetchmail --nosslcertck -v >&2");
$client->execute("rm ~/mail/*");
subtest "virus scan file", sub {
diff --git a/tests/extern.nix b/tests/extern.nix
index 6a4f6e7..6afd387 100644
--- a/tests/extern.nix
+++ b/tests/extern.nix
@@ -297,7 +297,7 @@ import (pkgs.path + "/nixos/tests/make-test.nix") {
subtest "imap retrieving mail", sub {
# fetchmail returns EXIT_CODE 1 when no new mail
- $client->succeed("fetchmail -v || [ \$? -eq 1 ] >&2");
+ $client->succeed("fetchmail --nosslcertck -v || [ \$? -eq 1 ] >&2");
};
subtest "submission port send mail", sub {
@@ -310,7 +310,7 @@ import (pkgs.path + "/nixos/tests/make-test.nix") {
subtest "imap retrieving mail 2", sub {
$client->execute("rm ~/mail/*");
# fetchmail returns EXIT_CODE 0 when it retrieves mail
- $client->succeed("fetchmail -v >&2");
+ $client->succeed("fetchmail --nosslcertck -v >&2");
};
subtest "remove sensitive information on submission port", sub {
@@ -334,7 +334,7 @@ import (pkgs.path + "/nixos/tests/make-test.nix") {
$client->succeed("msmtp -a test2 --tls=on --tls-certcheck=off --auth=on user1\@example.com < /etc/root/email2 >&2");
$server->waitUntilFails('[ "$(postqueue -p)" != "Mail queue is empty" ]');
# fetchmail returns EXIT_CODE 0 when it retrieves mail
- $client->succeed("fetchmail -v");
+ $client->succeed("fetchmail --nosslcertck -v");
$client->succeed("cat ~/mail/* >&2");
# make sure it is dkim signed
$client->succeed("grep DKIM ~/mail/*");
@@ -346,7 +346,7 @@ import (pkgs.path + "/nixos/tests/make-test.nix") {
$client->succeed("msmtp -a test3 --tls=on --tls-certcheck=off --auth=on postmaster\@example.com < /etc/root/email2 >&2");
$server->waitUntilFails('[ "$(postqueue -p)" != "Mail queue is empty" ]');
# fetchmail returns EXIT_CODE 0 when it retrieves mail
- $client->succeed("fetchmail -v");
+ $client->succeed("fetchmail --nosslcertck -v");
};
subtest "catchAlls", sub {
@@ -355,7 +355,7 @@ import (pkgs.path + "/nixos/tests/make-test.nix") {
$client->succeed("msmtp -a test3 --tls=on --tls-certcheck=off --auth=on lol\@example.com < /etc/root/email2 >&2");
$server->waitUntilFails('[ "$(postqueue -p)" != "Mail queue is empty" ]');
# fetchmail returns EXIT_CODE 0 when it retrieves mail
- $client->succeed("fetchmail -v");
+ $client->succeed("fetchmail --nosslcertck -v");
$client->execute("rm ~/mail/*");
# send email from user1 to chuck
@@ -363,7 +363,7 @@ import (pkgs.path + "/nixos/tests/make-test.nix") {
$server->waitUntilFails('[ "$(postqueue -p)" != "Mail queue is empty" ]');
# fetchmail returns EXIT_CODE 1 when no new mail
# if this succeeds, it means that user1 recieved the mail that was intended for chuck.
- $client->fail("fetchmail -v");
+ $client->fail("fetchmail --nosslcertck -v");
};
subtest "extraVirtualAliases", sub {
@@ -372,14 +372,14 @@ import (pkgs.path + "/nixos/tests/make-test.nix") {
$client->succeed("msmtp -a test5 --tls=on --tls-certcheck=off --auth=on user1\@example.com < /etc/root/email4 >&2");
$server->waitUntilFails('[ "$(postqueue -p)" != "Mail queue is empty" ]');
# fetchmail returns EXIT_CODE 0 when it retrieves mail
- $client->succeed("fetchmail -v");
+ $client->succeed("fetchmail --nosslcertck -v");
$client->execute("rm ~/mail/*");
# send email from user1 to multi-alias (user{1,2}@example.com)
$client->succeed("msmtp -a test --tls=on --tls-certcheck=off --auth=on multi-alias\@example.com < /etc/root/email5 >&2");
$server->waitUntilFails('[ "$(postqueue -p)" != "Mail queue is empty" ]');
# fetchmail returns EXIT_CODE 0 when it retrieves mail
- $client->succeed("fetchmail -v");
+ $client->succeed("fetchmail --nosslcertck -v");
};
subtest "quota", sub {
@@ -389,7 +389,7 @@ import (pkgs.path + "/nixos/tests/make-test.nix") {
$client->succeed("msmtp -a test3 --tls=on --tls-certcheck=off --auth=on lowquota\@example.com < /etc/root/email2 >&2");
$server->waitUntilFails('[ "$(postqueue -p)" != "Mail queue is empty" ]');
# fetchmail returns EXIT_CODE 0 when it retrieves mail
- $client->fail("fetchmail -v");
+ $client->fail("fetchmail --nosslcertck -v");
};