mirror of
https://gitlab.nic.cz/knot/knot-dns.git
synced 2026-02-03 18:49:28 -05:00
by removing test.stop(), because it is called from test.server_remove() and the check if servers running in server.listening() takes 20+secs if already stopped
35 lines
975 B
Python
35 lines
975 B
Python
#!/usr/bin/env python3
|
|
|
|
'''Remove record/records.'''
|
|
|
|
def run(i):
|
|
i.test.start()
|
|
|
|
i.check()
|
|
i.check_rec("dns1", "A", "192.0.2.1")
|
|
i.check_rec("dns1", "A", "1.1.1.1")
|
|
i.check_rec("dns2", "A", "192.0.2.2")
|
|
i.check_rec("dns2", "AAAA", "2001:db8::2")
|
|
i.check_rec("rem1", "A", "1.2.3.4")
|
|
i.check_rec("rem2", "AAAA", "::1")
|
|
i.check_rec("rem2", "TXT", "some_text")
|
|
i.check_rec("rem3", "AAAA", "::2")
|
|
i.check_rec("rem4", "TXT", "some_text2")
|
|
|
|
i.check(1)
|
|
i.check_rec("rem1", "A", rcode="NXDOMAIN")
|
|
|
|
i.check(2)
|
|
i.check_rec("rem2", "AAAA", rcode="NXDOMAIN")
|
|
i.check_rec("rem2", "TXT", rcode="NXDOMAIN")
|
|
|
|
i.check(3)
|
|
i.check_rec("rem3", "AAAA", rcode="NXDOMAIN")
|
|
i.check_rec("rem4", "TXT", rcode="NXDOMAIN")
|
|
|
|
i.check(4)
|
|
i.check_rec("dns1", "A", "192.0.2.1")
|
|
i.check_rec("dns1", "A", nordata="1.1.1.1")
|
|
i.check_rec("dns2", "A", "192.0.2.2")
|
|
i.check_rec("dns2", "AAAA", nordata="2001:db8::2")
|
|
|