Commit Graph
91 Commits
Author SHA1 Message Date
holger krekel 11ebc4623c somehow this deploy.sh adpatation was missing from main, not sure why 2023-10-24 23:19:40 +02:00
holger krekel 1e7d0d10f5 follow link2xt advise and don't check subject/body at all -- turns out there were no tests anyway. 2023-10-22 14:59:37 +02:00
holger krekel 3dd94cbe69 passes the test 2023-10-22 14:59:37 +02:00
holger krekel ed1b2f9da1 add a failing test for read receipts between two instances 2023-10-22 14:59:37 +02:00
holger krekel fcd3194eb1 run tests via scripts 2023-10-22 14:48:30 +02:00
holger krekel bdef189ce1 try to run all offline tests in CI 2023-10-22 14:48:30 +02:00
holger krekel 3058ddc542 fix init.sh and test.sh
use tox for chatmaild non-online tests
2023-10-22 14:48:30 +02:00
holger krekel bada933fef add missing file 2023-10-22 14:48:30 +02:00
holger krekel 1d74b94162 rename fixture to maildata and rename doveauth 2023-10-22 14:48:30 +02:00
holger krekel eee6d0c871 more maildata shifting 2023-10-22 14:48:30 +02:00
holger krekel ed5e37f1fa move all inlined mails to a data directory 2023-10-22 14:48:30 +02:00
holger krekel 364300274e move all tests into a root "tests" folder so they can share setup and config 2023-10-22 14:48:30 +02:00
holger krekel 848b25c790 add marker dynamically to allow "pytest" to execute nicely at repo root without warnings 2023-10-20 23:07:18 +02:00
holger krekel 107d10ace4 rename test files to be unambigously numbered 2023-10-20 23:07:18 +02:00
holger krekel 83e6a42252 slight refinement for benchmark formatting, not worth a PR 2023-10-20 18:43:06 +02:00
holger krekel 3012bfb79d some reformatting and striking overall 2023-10-20 11:05:58 +02:00
holger krekel 03442bc115 some improvements, adding a bnech 2023-10-20 11:05:58 +02:00
holger krekel 1ae6291d06 add ping-pong bench and formatting 2023-10-20 11:05:58 +02:00
holger krekel 1b347f97a0 better benchmarking and reporting 2023-10-20 11:05:58 +02:00
holger krekel c7995356b9 shift for simpler diff 2023-10-19 01:16:19 +02:00
holger krekel fb2ea27477 open a persistent client between the BeforeQueueHandler and postfix smtpd without content filter 2023-10-19 01:10:06 +02:00
holger krekel 7cf6cc2c91 remove filtermail split and LMTP backend 2023-10-19 01:05:49 +02:00
holger krekel 4358d5fe61 only do a smtp beforequeue-handler, also simplifies the send-rate-limiting test and improves DC behaviour 2023-10-19 00:54:45 +02:00
holger krekel 10cb099c0e all tests pass 2023-10-19 00:07:22 +02:00
holger krekel bbd2773506 refactor test and filtermail to prepare it for BeforeQueue handling 2023-10-18 21:43:06 +02:00
holger krekel 8fcd423015 apply most of linkxt review comments 2023-10-18 18:59:01 +02:00
holger krekel df39d05263 doc the test 2023-10-18 18:59:01 +02:00
holger krekel 05ce4f769b make test more readable 2023-10-18 18:59:01 +02:00
holger krekel 8dc05ba7ec also test that external addresses fail to be forged 2023-10-18 18:59:01 +02:00
holger krekel 6701c9749c refactor test to be more strict 2023-10-18 18:59:01 +02:00
holger krekel c6d8f7e759 initial forged-from protection 2023-10-18 18:59:01 +02:00
holger krekel fffbdc10c3 minimize capabilities 2023-10-17 01:22:19 +02:00
holger krekel 3419e359c8 create build venv in chatmaild/venv 2023-10-17 00:35:07 +02:00
holger krekel 0b051f8154 move deploy.py file and revamp README 2023-10-17 00:35:07 +02:00
holger krekel b74fde2a9f add postfix instrumented debugging 2023-10-16 23:38:02 +02:00
holger krekel e176595f1f add global debug flag and instrument dovecot with it 2023-10-16 23:38:02 +02:00
holger krekel c35e485510 an empty message in the handler means EOF 2023-10-16 21:49:56 +02:00
holger krekel 1bac4b5b46 generalize remotelog to "remote" and offer remote.iter_output method 2023-10-16 20:49:30 +02:00
holger krekel 63a7ad82ff fix capturing of logging to capture postfix better 2023-10-16 20:49:30 +02:00
holger krekel 37ef3f13b4 fix bugs 2023-10-16 20:49:30 +02:00
holger krekel 9dfd0ceb5a simplify and speedup multi-chatmail instance support 2023-10-16 20:49:30 +02:00
holger krekel 55c58e3c7a add support for using a second chatmail server 2023-10-16 20:49:30 +02:00
holger krekel c2692c7e92 introduce remotelog fixture for capturing systemd-unit logs 2023-10-16 20:49:30 +02:00
holger krekel b943f24587 apply nami's suggestions (chatmail SSH env var, running --slow in test.sh) 2023-10-16 17:52:08 +02:00
holger krekel df00333a19 also show the chatmail instance prominently in the test header 2023-10-16 17:52:08 +02:00
holger krekel 4fc63461fb - introduce pytest.mark.slow marker and "--slow" CLI option
- refactor login tests to allow running them against both imap/smtp
2023-10-16 17:52:08 +02:00
holger krekelandmissytake 00af333694 test works by logging into remote machine and checking the dovecot quota log 2023-10-16 15:19:29 +02:00
holger krekelandmissytake c9fd133942 improved test but still not doing what it should 2023-10-16 15:19:29 +02:00
holger krekelandmissytake caed6a3754 some fixes but still not quite running through 2023-10-16 15:19:29 +02:00
holger krekelandmissytake f71d372491 add a quota test (inspired by nami's #21 ) and try to get postfix/dovecot to implement the limit and the test to pass (it doesn't yet) 2023-10-16 15:19:29 +02:00
holger krekelandmissytake 60e1671062 make quota work 2023-10-16 15:19:29 +02:00
holger krekel ade18aab7b refine script 2023-10-15 19:14:18 +02:00
holger krekel a61f1fbf39 add capability getter for CHATMAIL_DOMAIN 2023-10-15 19:11:32 +02:00
holger krekel 26e4e1d9be refine measure script, update plan 2023-10-15 19:03:38 +02:00
holger krekel a0e1d9e4d7 add a measurement for login/tls 2023-10-15 18:55:36 +02:00
holger krekel bd152c4a4e updated plan after joint nami,alex,holger session with adb around 2023-10-15 17:42:13 +02:00
holger krekel 8217dc6f01 fix formatting 2023-10-14 14:34:54 +02:00
holger krekel 802f67cf54 fix formatting 2023-10-14 14:34:27 +02:00
holger krekel a1e82a9969 some renaming and adding a pytest.ini 2023-10-14 14:34:12 +02:00
holger krekel 8d3e2af303 adapt init 2023-10-14 14:32:22 +02:00
holger krekel 369a0f8783 add basic delta chat tests 2023-10-14 14:32:22 +02:00
holger krekel 33000e18c0 fix/merge test files 2023-10-14 14:32:22 +02:00
holger krekel 397eed65a7 merge accidental test files 2023-10-14 14:32:22 +02:00
holger krekel c8b593f5e2 let mail connection setting come from CHATMAIL_DOMAIN env 2023-10-14 14:32:22 +02:00
holger krekel 6003c9294d add tests 2023-10-14 14:32:22 +02:00
holger krekel 1742ee07c8 add smtp tests and fix scripts 2023-10-14 14:32:22 +02:00
holger krekel 5cd54026a8 refactor dovecot tests, move online tests one level up 2023-10-14 14:32:22 +02:00
holger krekelandlink2xt 6d3ffd8f4e add plan as discussed with alex and nami 2023-10-13 15:44:06 +00:00
holger krekelandlink2xt a24f1e8393 create venv in chatmail-pyinfra 2023-10-13 15:44:06 +00:00
holger krekelandlink2xt f84692a07a fix/rename 2023-10-13 15:44:06 +00:00
holger krekelandlink2xt 4badc7c8d6 (nami, hpk) draft repackaging goal 2023-10-13 15:44:06 +00:00
holger krekelandmissytake 1b88e0d9d0 add a functional online test for login ok/failure 2023-10-13 14:23:14 +02:00
holger krekelandmissytake db6df34703 python tests work 2023-10-13 14:23:11 +02:00
holger krekelandmissytake a907da9907 wip 2023-10-13 14:22:08 +02:00
holger krekelandmissytake 14649c37fd this seems to work 2023-10-13 14:22:08 +02:00
holger krekelandmissytake 28fe373489 (nami, hpk) some random WIP-changes to make dovecot auth work and get us an understanding 2023-10-13 14:22:08 +02:00
holger krekel 47091db28c renames 2023-10-13 11:02:57 +02:00
holger krekel f013ff434e rename chatctl to doveauth 2023-10-13 10:43:07 +02:00
holger krekel 4ba5b49d19 rename hpk to c1 inv 2023-10-13 09:36:59 +02:00
holger krekel 15d650dc83 move tox.ini into pyproject.toml 2023-10-13 09:36:27 +02:00
holger krekel 5f5cc99567 first test for python chatctl part and applying black 2023-10-12 19:32:49 +02:00
holger krekel a1f0854f33 refactor python part a little (thanks missytake) 2023-10-12 19:18:16 +02:00
holger krekel f2a26bc5fe added more tests 2023-10-12 19:01:47 +02:00
holger krekel 940b39bce7 more tests, better interface between lua and chatctl, also passing dovecot extras 2023-10-12 18:50:40 +02:00
holger krekel 067252703f another test 2023-10-12 17:55:46 +02:00
holger krekelandGitHub 77d800b13f write a bit of tests for a lua script that calls into chatctl.py (#1)
* add a lua test script running directly against  chatctl.py
2023-10-12 17:41:57 +02:00
holger krekel 65494b207d fix lint 2023-10-12 15:42:11 +02:00
holger krekel 96ff282382 Added example inventory 2023-10-12 15:19:09 +02:00
holger krekel 8e300e1776 remove acmestate caching as re-deploying does not seem to recreate the cert anyway 2023-10-12 15:14:34 +02:00
holger krekel 8f70c4049a initial commit, mostly copied from another repo 2023-10-12 15:06:48 +02:00
holger krekelandGitHub 54e7128abc Initial commit 2023-10-12 14:01:37 +02:00