tests/keycloak: local imap syncing for client
Some checks failed
Flake checks / Check (pull_request) Failing after 4m1s

This commit is contained in:
b12f 2024-09-03 10:18:11 +02:00
parent 760d6e3458
commit 86c239d44c
Signed by: b12f
GPG key ID: 729956E1124F8F26
3 changed files with 26 additions and 0 deletions

View file

@ -88,5 +88,7 @@ in
puppeteer_run('page.locator("button::-p-text(Register)").click()')
puppeteer_run('page.waitForNetworkIdle()')
client.screenshot("after-register")
client.succeed("offlineimap")
'';
}

View file

@ -45,5 +45,25 @@ in
];
};
};
accounts.email.accounts."test-user@${config.pub-solar-os.networking.domain}" = {
primary = true;
address = "test-user@${config.pub-solar-os.networking.domain}";
userName = "test-user@${config.pub-solar-os.networking.domain}";
passwordCommand = "echo password";
realName = "Test User";
imap = {
host = "mail.${config.pub-solar-os.networking.domain}";
port = 993;
};
smtp = {
host = "mail.${config.pub-solar-os.networking.domain}";
port = 587;
tls.useStartTls = true;
};
getmail.enable = true;
getmail.mailboxes = [ "ALL" ];
msmtp.enable = true;
};
};
}

View file

@ -22,6 +22,10 @@
"hakkonaut@${config.pub-solar-os.networking.domain}" = {
hashedPasswordFile = "/tmp/emailpw";
};
"test-user@${config.pub-solar-os.networking.domain}" = {
quota = "1G";
hashedPasswordFile = "/tmp/emailpw";
};
};
};
}