1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
samba-mirror/python/samba
Andreas Schneider 18dbdf6aac python:tests: Fix type error in raw_testcase.py
This fixes a lot of tests with Python 3.8. Stacktrace example:

File "python/samba/tests/krb5/as_req_tests.py", line 249, in test_as_req_enc_timestamp_rc4_dummy
  self._run_as_req_enc_timestamp(
File "python/samba/tests/krb5/as_req_tests.py", line 129, in _run_as_req_enc_timestamp
  as_rep, kdc_exchange_dict = self._test_as_exchange(
File "python/samba/tests/krb5/raw_testcase.py", line 3982, in _test_as_exchange
  rep = self._generic_kdc_exchange(kdc_exchange_dict,
File "python/samba/tests/krb5/raw_testcase.py", line 2029, in _generic_kdc_exchange
  return check_rep_fn(kdc_exchange_dict, callback_dict, rep)
File "python/samba/tests/krb5/raw_testcase.py", line 2328, in generic_check_kdc_rep
  self.check_reply_padata(kdc_exchange_dict,
File "python/samba/tests/krb5/raw_testcase.py", line 2998, in check_reply_padata
  got_patypes = tuple(pa['padata-type'] for pa in rep_padata)
TypeError: 'NoneType' object is not iterable

This adds additional checks for rep_padata.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
2022-03-17 00:41:33 +00:00
..
emulate python: remove all 'from __future__ import division' 2021-04-28 03:43:34 +00:00
gp_parse python2 reduction: Merge remaining compat code into common 2020-10-02 14:49:36 +00:00
kcc python: remove all 'from __future__ import print_function' 2021-04-28 03:43:34 +00:00
netcmd samba-tool/join_member: let py_net_join_member() choose the password 2022-02-23 07:50:38 +00:00
provision provision: add a comment that the value of krbtgtpass is ignored in the backend 2022-02-23 07:50:38 +00:00
samba3 libsmb_samba_internal: calculate the access_mask for {g,s}et_acl() based on the secinfo flags 2020-12-17 13:59:38 +00:00
subunit python:subunit: Avoid misleading "Test was never started" error message 2021-06-11 08:38:34 +00:00
tests python:tests: Fix type error in raw_testcase.py 2022-03-17 00:41:33 +00:00
__init__.py python: Don't leak file handles 2021-09-21 23:05:41 +00:00
auth_util.py python: fix slow's mail address 2020-06-05 10:32:30 +00:00
colour.py
common.py python2 reduction: Merge remaining compat code into common 2020-10-02 14:49:36 +00:00
dbchecker.py samba-tool: dbcheck search DnsAdmins from wellknown container 2021-06-22 01:14:37 +00:00
descriptor.py
dnsresolver.py DNS Resolver: support both dnspython before and after 2.0.0 2020-10-26 18:33:40 +00:00
dnsserver.py py/dnsserver: add a missing exception variable 2021-11-22 10:28:34 +00:00
domain_update.py
drs_utils.py drs_utils: remove unused sendRemoveDsServer() 2020-12-09 16:00:39 +00:00
forest_update.py
getopt.py python: Streamline option parser of python tools 2021-06-20 23:26:32 +00:00
gp_cert_auto_enroll_ext.py gpo: Print getcert message to debug 2021-08-13 20:06:31 +00:00
gp_chromium_ext.py gpo: Add Chromium Group Policy 2021-09-09 20:42:35 +00:00
gp_ext_loader.py
gp_firefox_ext.py gpo: Add Group Policy Firefox Extension 2021-08-30 21:57:09 +00:00
gp_firewalld_ext.py gp: Apply Firewalld Policy 2021-11-01 21:16:43 +00:00
gp_gnome_settings_ext.py gpo: Apply Group Policy GNOME Settings 2021-06-09 17:44:25 +00:00
gp_msgs_ext.py GPO: Add rsop output for Messages policy 2020-08-27 17:19:48 +00:00
gp_scripts_ext.py gpo: Apply Group Policy User Scripts 2021-08-13 19:14:30 +00:00
gp_sec_ext.py gpo: Ensure that samba-gpupdate doesn't require ad-dc 2021-03-08 17:58:37 +00:00
gp_smb_conf_ext.py GPO: Add rsop output for smb.conf policy 2020-08-27 15:59:34 +00:00
gp_sudoers_ext.py gpo: Sudoers ext should not crash if policy missing 2020-08-27 15:59:33 +00:00
gpclass.py gpo: Enable user policy application 2021-08-13 19:14:30 +00:00
graph.py python: remove all 'from __future__ import division' 2021-04-28 03:43:34 +00:00
hostconfig.py python/hostconfig: remove 'from __future__ import absolute_import' 2021-04-28 03:43:34 +00:00
idmap.py
join.py python/join: Check for correct msDS-KrbTgtLink attribute 2021-09-21 23:05:41 +00:00
logger.py logger: use color automatically for a tty 2018-11-21 10:46:20 +01:00
mdb_util.py mdb_util: Better error message if lmdb-utils not installed 2018-11-09 21:07:47 +01:00
ms_display_specifiers.py python: remove all 'from __future__ import print_function' 2021-04-28 03:43:34 +00:00
ms_forest_updates_markdown.py python: remove all 'from __future__ import print_function' 2021-04-28 03:43:34 +00:00
ms_schema_markdown.py python: remove all 'from __future__ import print_function' 2021-04-28 03:43:34 +00:00
ms_schema.py python: Don't leak file handles 2021-09-21 23:05:41 +00:00
ndr.py
ntacls.py python: remove all 'from __future__ import print_function' 2021-04-28 03:43:34 +00:00
remove_dc.py
samdb.py samdb: Create computer in wellknown user container 2021-06-22 01:14:37 +00:00
schema.py python: Don't leak file handles 2021-09-21 23:05:41 +00:00
sd_utils.py
sites.py
subnets.py
tdb_util.py
trust_utils.py Add CreateTrustedDomainRelax wrapper for fips mode 2020-11-06 10:02:35 +00:00
upgrade.py classicupgrade: treat old never expires value right 2021-02-10 15:06:49 +00:00
upgradehelpers.py upgradehelpers.py: add a comment to update_krbtgt_account_password() 2022-02-23 07:50:38 +00:00
uptodateness.py python: remove all 'from __future__ import print_function' 2021-04-28 03:43:34 +00:00
vgp_access_ext.py gpo: Apply Group Policy Host Access configuration from VGP 2021-03-18 18:50:28 +00:00
vgp_files_ext.py gpo: Correct name of files gpo 2021-04-29 22:27:20 +00:00
vgp_issue_ext.py gpo: Apply Group Policy Issue setting from VGP 2021-03-08 19:45:30 +00:00
vgp_motd_ext.py gpo: Apply Group Policy MOTD setting from VGP 2021-03-08 19:45:30 +00:00
vgp_openssh_ext.py gpo: Open ssh config to write bytes 2021-04-20 07:39:37 +00:00
vgp_startup_scripts_ext.py gpo: Apply Group Policy Startup Scripts from VGP 2021-02-24 20:51:30 +00:00
vgp_sudoers_ext.py gpo: vgp_sudoers_ext handle missing and dispersed principal names 2021-03-08 17:58:37 +00:00
vgp_symlink_ext.py gpo: Apply Group Policy Symlink Policy from VGP 2021-01-27 06:30:31 +00:00
xattr.py