Scott Kitterman
e86b804d71
Minor test updates including fixing the table verify PID file specification
2019-10-30 15:19:59 -04:00
Scott Kitterman
5b956b9c7d
Refactor SigningTable and KeyTables based on more careful reading of the documentation
2019-10-29 01:50:28 -04:00
Scott Kitterman
82542e4ca0
Remove vestiges of SigningTableEd25519, separate per algorithm table not needed
2019-10-23 15:54:51 -04:00
Scott Kitterman
b0604bf00c
Add verify runtests for stable and table cases
2019-10-23 01:15:32 -04:00
Scott Kitterman
accabcf217
Add test cases for running with SigningTable and no KeyTable
2019-10-22 20:43:53 -04:00
Scott Kitterman
3061215f49
Run signing tests for table cases as well
2019-10-22 00:03:16 -04:00
Scott Kitterman
05038261f4
More tests/runtests updates for testing with tables
2019-10-22 00:02:29 -04:00
Scott Kitterman
a752a9c829
Add test data and configuration for testing with signing and key tables
2019-10-21 14:08:23 -04:00
Scott Kitterman
bad89cec2a
Clean up __pycache__ directory after test suite run
2019-10-19 00:00:12 -04:00
Scott Kitterman
c9f95e4045
Make test scripts executable
2019-10-18 21:46:15 -04:00
Scott Kitterman
a337e27f0d
Permission changes
2019-08-04 16:35:28 -04:00
Daniel Kahn Gillmor
391b5352f3
Convert mostly to python3 (still need strings/bytes conversions)
...
This covers conversion of the whole project to python3, *except* for
the strings/bytes distinction in __init__.py, which i'm leaving for a
second commit.
The changes in this commit are intended to be relatively
uncontroversial, so that the following commit contains the tricky
bits.
2019-02-21 19:22:09 -05:00
Daniel Kahn Gillmor
ad8f396db0
Expand test suite to cover RSA as well as ed25519
2019-02-21 19:21:38 -05:00
Daniel Kahn Gillmor
479820a07d
tests: test DKIM signing and verification
...
This test makes use of DNSOverride and the new verifying milter to
ensure that signatures can be verified properly.
It doesn't test the actual interaction with the public DNS, but
getting that kind of test to work on arbitrary platforms might be more
trouble than it's worth.
I note that the DNSOverride only works as long as testkey.dns is a
single line, which is fine for ed25519, but maybe not for RSA.
2019-02-21 19:21:38 -05:00
Daniel Kahn Gillmor
7bfb87fab7
Set up __main__.py, use it in tests
...
This allows us to invoke dkimpy-milter as "python -m dkimpy_milter
dkimpy-milter.conf", which makes running the test suite easier.
2019-02-21 19:21:38 -05:00
Daniel Kahn Gillmor
5c1d5d6e52
tests: Run a verifying milter as well as a signing milter
...
Having a verifying milter will come in handy when we want to test both
sides of the DKIM process.
2019-02-21 19:21:38 -05:00
Daniel Kahn Gillmor
ae31730593
check for actions claimed by the filter
2019-02-21 19:21:38 -05:00
Daniel Kahn Gillmor
72ed000ccf
simple testing framework
2019-02-21 19:21:38 -05:00