mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
tests: more precise negative check for dnsmasq log (#4982)
In test_resolved_domain_restricted_dns(), add dot domain separator to negative .lab/.company tests, so that we don't catch these as part of the host name (like "lxc-labjfr"). Caught in PR #4962
This commit is contained in:
parent
08493e73bf
commit
27e2e3231f
@ -497,8 +497,8 @@ Domains= ~company ~lab''')
|
|||||||
# VPN domains should only be sent to VPN DNS
|
# VPN domains should only be sent to VPN DNS
|
||||||
self.assertRegex(vpn_log, 'query.*math.lab')
|
self.assertRegex(vpn_log, 'query.*math.lab')
|
||||||
self.assertRegex(vpn_log, 'query.*cantina.company')
|
self.assertRegex(vpn_log, 'query.*cantina.company')
|
||||||
self.assertNotIn('lab', general_log)
|
self.assertNotIn('.lab', general_log)
|
||||||
self.assertNotIn('company', general_log)
|
self.assertNotIn('.company', general_log)
|
||||||
|
|
||||||
# general domains should not be sent to the VPN DNS
|
# general domains should not be sent to the VPN DNS
|
||||||
self.assertRegex(general_log, 'query.*megasearch.net')
|
self.assertRegex(general_log, 'query.*megasearch.net')
|
||||||
|
Loading…
Reference in New Issue
Block a user