Skip to content
Snippets Groups Projects
Commit c24cab71 authored by Oto Šťáva's avatar Oto Šťáva
Browse files

modules/policy: add integration test for 'domains' function

parent 8e60fd10
Branches
Tags
1 merge request!1228modules/policy: add 'domain' filter for equality matching
-- SPDX-License-Identifier: GPL-3.0-or-later
{% raw %}
policy.add(policy.domains(policy.DENY, {todname('example.com')}))
policy.add(policy.suffix(policy.REFUSE, {todname('refuse.example.com')}))
-- make sure DNSSEC is turned off for tests
......
......@@ -22,4 +22,23 @@ www.refuse.example.com. IN A
SECTION ANSWER
ENTRY_END
STEP 30 QUERY
ENTRY_BEGIN
REPLY RD AD
SECTION QUESTION
example.com. IN A
ENTRY_END
STEP 40 CHECK_ANSWER
ENTRY_BEGIN
MATCH all answer
REPLY QR RD AA RA NXDOMAIN
SECTION QUESTION
example.com. IN A
SECTION ANSWER
SECTION AUTHORITY
example.com. 10800 IN SOA example.com. nobody.invalid. 1 3600 1200 604800 10800
ENTRY_END
SCENARIO_END
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment