Skip to content

Commit

Permalink
CI: test SoftwareHeader config flag
Browse files Browse the repository at this point in the history
  • Loading branch information
flowerysong committed Oct 16, 2024
1 parent c39ce2d commit 9f762ba
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/files/test_milter_softwareheader.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Domain example.com
AuthservID example.com
KeyFile private.key
TestKeys public.key
Selector elpmaxe
Mode sv
SoftwareHeader true
8 changes: 8 additions & 0 deletions test/test_milter.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,3 +415,11 @@ def test_milter_peerlist(run_miltertest):
"""Connections from peers just get `accept` back immediately"""
with pytest.raises(miltertest.MilterError, match='unexpected response: a'):
run_miltertest()


def test_milter_softwareheader(run_miltertest):
"""Advertise software name, version"""
res = run_miltertest()

assert res['headers'][0][0] == 'ARC-Filter'
assert res['headers'][0][1].startswith('OpenARC Filter v')

0 comments on commit 9f762ba

Please sign in to comment.