diff options
| author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2021-06-17 22:22:46 +1200 |
|---|---|---|
| committer | Andrew Bartlett <abartlet@samba.org> | 2021-06-22 01:14:37 +0000 |
| commit | b2453a0f5c2fbb0c002ebb5fd274ca57ff66ee9f (patch) | |
| tree | 8c6a9fb83e29dc859cf6fb831135e37219bf9915 /python | |
| parent | 6fb83b454ccac7e01ab0f5d48c1c5b6a66bea173 (diff) | |
| download | samba-b2453a0f5c2fbb0c002ebb5fd274ca57ff66ee9f.tar.gz samba-b2453a0f5c2fbb0c002ebb5fd274ca57ff66ee9f.tar.bz2 samba-b2453a0f5c2fbb0c002ebb5fd274ca57ff66ee9f.zip | |
pytest: samba-tool dns: allow valid updates
Without this patch we will get errors like this when in-place RPC
updates start to work:
AssertionError: unexpectedly None : Successfully updated record
'192.168.0.1' to '192.168.0.1', even though the latter is of type
'A' where 'A' was expected.
That's because we have always rejected updates that try to modify an
existing record. We shouldn't.
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
| -rw-r--r-- | python/samba/tests/samba_tool/dnscmd.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/samba/tests/samba_tool/dnscmd.py b/python/samba/tests/samba_tool/dnscmd.py index 6b9e7bb1c67..10bc41f5745 100644 --- a/python/samba/tests/samba_tool/dnscmd.py +++ b/python/samba/tests/samba_tool/dnscmd.py @@ -393,6 +393,9 @@ class DnsCmdTestCase(SambaToolCmdTest): % (record1, dnstype1)) for dnstype2 in self.good_records: + if dnstype1 == dnstype2: + continue + record2 = self.good_records[dnstype2][0] # Make sure that record2 isn't a valid entry of dnstype1. |
