mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
python:tests/dns_tkey: test TKEY with gss-tsig, gss.microsoft.com and invalid algorithms
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13019 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from commit 740bda87a80b97816d892e8f7aae28759f6916ec)
This commit is contained in:
parent
c7a936ecd2
commit
501a25a1f0
@ -55,11 +55,28 @@ class TestDNSUpdates(DNSTKeyTest):
|
||||
self.server_ip = server_ip
|
||||
super().setUp()
|
||||
|
||||
def test_tkey(self):
|
||||
"test DNS TKEY handshake"
|
||||
def test_tkey_gss_tsig(self):
|
||||
"test DNS TKEY handshake with gss-tsig"
|
||||
|
||||
self.tkey_trans()
|
||||
|
||||
def test_tkey_gss_microsoft_com(self):
|
||||
"test DNS TKEY handshake with gss.microsoft.com"
|
||||
|
||||
self.tkey_trans(algorithm_name="gss.microsoft.com")
|
||||
|
||||
def test_tkey_invalid_gss_TSIG(self):
|
||||
"test DNS TKEY handshake with invalid gss-TSIG"
|
||||
|
||||
self.tkey_trans(algorithm_name="gss-TSIG",
|
||||
expected_rcode=dns.DNS_RCODE_REFUSED)
|
||||
|
||||
def test_tkey_invalid_gss_MICROSOFT_com(self):
|
||||
"test DNS TKEY handshake with invalid gss.MICROSOFT.com"
|
||||
|
||||
self.tkey_trans(algorithm_name="gss.MICROSOFT.com",
|
||||
expected_rcode=dns.DNS_RCODE_REFUSED)
|
||||
|
||||
def test_update_wo_tsig(self):
|
||||
"test DNS update without TSIG record"
|
||||
|
||||
|
@ -1,2 +1,5 @@
|
||||
^samba.tests.dns_tkey.__main__.TestDNSUpdates.test_update_tsig_bad_keyname.fl2008r2dc
|
||||
^samba.tests.dns_tkey.__main__.TestDNSUpdates.test_update_tsig_bad_mac.fl2008r2dc
|
||||
^samba.tests.dns_tkey.__main__.TestDNSUpdates.test_tkey_gss_microsoft_com.fl2008r2dc
|
||||
^samba.tests.dns_tkey.__main__.TestDNSUpdates.test_tkey_invalid_gss_MICROSOFT_com.fl2008r2dc
|
||||
^samba.tests.dns_tkey.__main__.TestDNSUpdates.test_tkey_invalid_gss_TSIG.fl2008r2dc
|
||||
|
Loading…
x
Reference in New Issue
Block a user