Stefan Metzmacher
708a6fae69
python:tests/dns_tkey: add test_update_tsig_record_access_denied()
...
This demonstrates that access_denied is only generated if the client
really generates a change in the database.
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 >
2024-06-06 02:13:33 +00:00
Stefan Metzmacher
848318338b
python:tests/dns_tkey: let test_update_tsig_windows() actually pass against windows 2022
...
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 >
2024-06-06 02:13:33 +00:00
Stefan Metzmacher
de4ed363d3
python:tests/dns_tkey: test bad and changing tsig 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 >
2024-06-06 02:13:33 +00:00
Stefan Metzmacher
b9b03ca503
python:tests/dns_tkey: add gss.microsoft.com tsig updates
...
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 >
2024-06-06 02:13:33 +00:00
Stefan Metzmacher
3c7cb85eaf
python:tests/dns_tkey: let us have test_update_gss_tsig_tkey_req_{additional,answers}()
...
Also test using the additional record in the answers section.
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 >
2024-06-06 02:13:33 +00:00
Stefan Metzmacher
740bda87a8
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 >
2024-06-06 02:13:33 +00:00
Stefan Metzmacher
b0af60e785
python:tests/dns_base: maintain a dict with tkey related state
...
This will allow tests to backup the whole state
and mix them.
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 >
2024-06-06 02:13:33 +00:00
Stefan Metzmacher
6e997f93d5
python:tests/dns_tkey: make use of self.assert_echoed_dns_error()
...
Failed DNS updates just echo the request flaged as response,
all other elements are unchanged.
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 >
2024-06-06 02:13:33 +00:00
Rob van der Linde
6ac4833678
python: tests: update all super calls to python 3 style in tests
...
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz >
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
[abartlet@samba.org Some python2 style super() calls remain due
to being an actual, even if reasonable, behaviour change]
2023-11-30 01:05:32 +00:00
Joseph Sutton
b59fc43523
python: Fix usage strings
...
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
Reviewed-by: Jeremy Allison <jra@samba.org >
2021-09-04 00:10:37 +00:00
Douglas Bagnall
c247afbda0
pytests: heed assertEquals deprecation warning en-masse
...
TestCase.assertEquals() is an alias for TestCase.assertEqual() and
has been deprecated since Python 2.7.
When we run our tests with in python developer mode (`PYTHONDEVMODE=1
make test`) we get 580 DeprecationWarnings about this.
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
Reviewed-by: Noel Power <npower@samba.org >
2020-02-07 10:37:37 +00:00
Douglas Bagnall
018c0138c2
python/tests/dns*: remove unused imports
...
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
Reviewed-by: Noel Power <npower@samba.org >
2018-10-25 21:45:54 +02:00
Joe Guo
115f2a71b8
PEP8: fix E305: expected 2 blank lines after class or function definition, found 1
...
Signed-off-by: Joe Guo <joeg@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
2018-08-24 07:49:30 +02:00
Andrew Bartlett
9229809f75
selftest: Create new common base class for dns.py and dns_tkey.py
...
This will allow more DNS tests to be written in the future with less
code duplication.
2017-06-10 21:48:21 +02:00
Andrew Bartlett
11ba6f8cde
selftest: merge DNSTest boilerplate
...
This will help unifying dns.py and dns_tkey.py to use common subclasses
The code was originally copied, but has since divereged. This handles
that divergence.
Signed-off-by: Andrew Bartlett <abartlet@samba.org >
Reviewed-by: Garming Sam <garming@catalyst.net.nz >
2017-06-10 21:48:21 +02:00
Andrew Bartlett
c752e93fc5
selftest: Add a DNS test matching Windows
...
This performs the same steps as Windows does
Signed-off-by: Andrew Bartlett <abartlet@samba.org >
Reviewed-by: Garming Sam <garming@catalyst.net.nz >
2016-06-16 04:40:14 +02:00
Ralph Boehme
721b21bb80
selftest: add test for DNS updates with TKEY/TSIG
...
Bug: https://bugzilla.samba.org/show_bug.cgi?id=11520
Signed-off-by: Ralph Boehme <slow@samba.org >
Reviewed-by: Garming Sam <garming@catalyst.net.nz >
Autobuild-User(master): Garming Sam <garming@samba.org >
Autobuild-Date(master): Thu Jun 16 04:07:41 CEST 2016 on sn-devel-144
2016-06-16 04:07:41 +02:00