1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/python/samba/tests
Tim Beale 93c2a95223 tests: Rework backup test_backup_invalid_args test-case
self.create_backup() uses self.run_cmd(), which is a wrapper around
self.check_output(). Rework the code to call the underlying
check_output() function directly instead.

The reason we're doing this is we want run_cmd() to catch exceptions and
fail the test (i.e. in the next patch). However, we can't do that because
this test case relies on receiving the exceptions.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13676

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-11-27 03:43:17 +01:00
..
blackbox python/samba/tests: PY3 Fix str/bytes issue for json.loads 2018-11-14 05:07:17 +01:00
dcerpc tests samr: Extra tests for samr_EnumDomainUserss 2018-11-20 22:14:17 +01:00
dns_forwarder_helpers py/tests: remove unused imports 2018-10-25 21:45:55 +02:00
emulate python/samba/tests: fix traffic for py2/py3 compatability 2018-09-05 23:27:13 +02:00
kcc python/tests/kcc_utils: disambiguate/unshadow a test 2018-10-25 21:45:59 +02:00
samba_tool testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
__init__.py python/samba/tests: Ensure samba_dnsupdate called with correct python version 2018-11-14 05:07:17 +01:00
audit_log_base.py dsdb: Log the transaction duraton. 2018-06-25 11:16:18 +02:00
audit_log_dsdb.py PEP8: fix E303: too many blank lines (2) 2018-08-24 07:49:30 +02:00
audit_log_pass_change.py dsdb: audit samdb and password changes 2018-06-09 15:02:11 +02:00
auth_log_base.py auth tests: irpc remove "auth_event" name on completion 2018-05-31 09:54:18 +02:00
auth_log_ncalrpc.py auth logging tests: Clean up flake8 warnings 2018-05-10 20:02:23 +02:00
auth_log_netlogon_bad_creds.py auth logging tests: Clean up flake8 warnings 2018-05-10 20:02:23 +02:00
auth_log_netlogon.py auth logging tests: Add tests for sessionId 2018-05-10 20:02:23 +02:00
auth_log_pass_change.py tests: Split out setUp code into separate function for reuse 2018-05-11 06:01:23 +02:00
auth_log_samlogon.py auth logging tests: Clean up flake8 warnings 2018-05-10 20:02:23 +02:00
auth_log.py PEP8: fix E241: multiple spaces after ',' 2018-08-24 07:49:28 +02:00
auth.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
common.py python/tests/common: avoid import * 2018-10-25 21:45:56 +02:00
core.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
credentials.py python/tests/credentials: remove unused variables 2018-11-01 05:08:14 +01:00
dckeytab.py PEP8: fix E122: continuation line missing indentation or outdented 2018-09-06 12:10:11 +02:00
dns_base.py python/samba/tests: py_gensec_update takes bytes as param 2018-09-15 15:18:30 +02:00
dns_forwarder.py python/tests/dns*: remove unused imports 2018-10-25 21:45:54 +02:00
dns_invalid.py python/tests/dns*: remove unused imports 2018-10-25 21:45:54 +02:00
dns_tkey.py python/tests/dns*: remove unused imports 2018-10-25 21:45:54 +02:00
dns_wildcard.py dns wildcards: tests to confirm BUG 13536 2018-07-20 01:47:20 +02:00
dns.py python/tests/dns*: remove unused imports 2018-10-25 21:45:54 +02:00
docs.py python/tests/docs: remove unused import, variables 2018-11-01 05:08:15 +01:00
domain_backup_offline.py python tests: fix format() strings for Python 2.6 2018-09-21 20:04:23 +02:00
domain_backup.py tests: Rework backup test_backup_invalid_args test-case 2018-11-27 03:43:17 +01:00
dsdb_lock.py PEP8: fix E303: too many blank lines (2) 2018-08-24 07:49:30 +02:00
dsdb_schema_attributes.py python/tests/dsdb_schema_attr: remove unused/duplicate imports 2018-10-25 21:45:54 +02:00
dsdb.py python/tests/dsdb: use correct variable names 2018-11-01 05:08:11 +01:00
encrypted_secrets.py python/samba/tests: PY3 port of samba.tests.encrypted_secrets 2018-09-05 23:27:12 +02:00
gensec.py PEP8: fix E303: too many blank lines (2) 2018-08-24 07:49:30 +02:00
get_opt.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
getdcname.py python/tests/getdcname: remove unused imports 2018-10-25 21:45:54 +02:00
glue.py python: samba.tests.glue: Add new tests for samba._glue. 2017-03-10 07:31:10 +01:00
gpo.py python/tests/gpo: import what we need (errno, not gp_log) 2018-10-25 21:45:52 +02:00
graph.py PEP8: fix E122: continuation line missing indentation or outdented 2018-08-24 07:49:26 +02:00
group_audit.py dsdb: Audit group membership changes 2018-06-09 15:02:11 +02:00
hostconfig.py PEP8: fix E231: missing whitespace after ',' 2018-08-24 07:49:28 +02:00
join.py PEP8: fix E303: too many blank lines (2) 2018-08-24 07:49:30 +02:00
krb5_credentials.py python tests: fix format() strings for Python 2.6 2018-09-21 20:04:23 +02:00
libsmb_samba_internal.py PEP8: fix E305: expected 2 blank lines after class or function definition, found 1 2018-08-24 07:49:30 +02:00
loadparm.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
lsa_string.py python/tests/lsa_string: remove duplicate method 2018-10-25 21:45:59 +02:00
messaging.py PEP8: fix E306: expected 1 blank line before a nested definition, found 0 2018-08-24 07:49:30 +02:00
net_join_no_spnego.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
net_join.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
netbios.py python/tests/netbios: remove unused imports 2018-10-25 21:45:54 +02:00
netcmd.py python/samba/tests: Use io.StringIO for py3 and StringIO.StrinIO for py2 2018-09-03 03:22:21 +02:00
netlogonsvc.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
ntacls_backup.py PEP8: fix E225: missing whitespace around operator 2018-08-24 07:49:28 +02:00
ntacls.py tests/ntacls: fix pep8 warnings 2018-06-28 12:14:59 +02:00
ntlmdisabled.py python/tests/*: remove unused imports 2018-10-25 21:45:54 +02:00
pam_winbind_chauthtok.py tests: Check pam_winbind pw change with different options 2018-10-02 17:30:29 +02:00
pam_winbind_warn_pwd_expire.py PEP8: fix E711: comparison to None should be 'if cond is not None:' 2018-08-24 07:49:30 +02:00
pam_winbind.py PEP8: fix E711: comparison to None should be 'if cond is not None:' 2018-08-24 07:49:30 +02:00
param.py python: samba.tests.param: Add missing tests 2017-03-10 07:31:10 +01:00
password_hash_fl2003.py PEP8: fix E303: too many blank lines (2) 2018-08-24 07:49:30 +02:00
password_hash_fl2008.py PEP8: fix E303: too many blank lines (2) 2018-08-24 07:49:30 +02:00
password_hash_gpgme.py PEP8: fix E711: comparison to None should be 'if cond is not None:' 2018-08-24 07:49:30 +02:00
password_hash_ldap.py python/samba/tests: py3 port for samba.test.password_hash_ldap 2018-09-05 23:27:11 +02:00
password_hash.py python/samba/tests: make password_hash.py py2/py3 compatible 2018-09-05 23:27:11 +02:00
password_quality.py python/tests: remove unused imports 2018-10-25 21:45:54 +02:00
password_test.py python/tests/*: remove unused imports 2018-10-25 21:45:54 +02:00
policy.py PEP8: fix E128: continuation line under-indented for visual indent 2018-08-24 07:49:27 +02:00
posixacl.py python tests: fix format() strings for Python 2.6 2018-09-21 20:04:23 +02:00
prefork_restart.py source4 smbd test: prefork process restart 2018-11-23 08:25:19 +01:00
provision.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
pso.py python tests: fix format() strings for Python 2.6 2018-09-21 20:04:23 +02:00
py_credentials.py python/samba/tests: port samba.tests.py_credentials for py2/py3 compat 2018-09-05 23:27:12 +02:00
registry.py python:tests: Use bin/tdbdump only if built 2017-11-24 01:13:14 +01:00
s3idmapdb.py python/tests: remove unused imports 2018-10-25 21:45:54 +02:00
s3param.py python/tests: remove unused imports 2018-10-25 21:45:54 +02:00
s3passdb.py python/tests: remove unused imports 2018-10-25 21:45:54 +02:00
s3registry.py python/tests: remove unused imports 2018-10-25 21:45:54 +02:00
s3windb.py python/tests: remove unused imports 2018-10-25 21:45:54 +02:00
samba3sam.py pytests/samba3sam: unshadow and fix a search_non_mapped test 2018-10-26 00:50:37 +02:00
samdb_api.py PEP8: fix E303: too many blank lines (2) 2018-08-24 07:49:30 +02:00
samdb.py python/tests/samdb: avoid useless local variable 2018-10-25 21:45:54 +02:00
security.py PEP8: fix E303: too many blank lines (2) 2018-08-24 07:49:30 +02:00
smb.py PEP8: fix E703: statement ends with a semicolon 2018-08-24 07:49:30 +02:00
source.py python/tests/source: remove useless local variable 2018-11-01 05:08:14 +01:00
strings.py python tests: always use Python's unicodedata 2018-10-25 21:45:57 +02:00
subunitrun.py PEP8: fix E128: continuation line under-indented for visual indent 2018-08-24 07:49:27 +02:00
tdb_util.py python: tests: Add test for tdb_copy function from tdb_util module. 2017-07-05 02:00:25 +02:00
test_pam_winbind_chauthtok.sh tests: Check pam_winbind pw change with different options 2018-10-02 17:30:29 +02:00
test_pam_winbind_warn_pwd_expire.sh build: Move pam_wrapper to third_party 2017-11-25 10:14:13 +01:00
test_pam_winbind.sh build: Move pam_wrapper to third_party 2017-11-25 10:14:13 +01:00
upgrade.py PEP8: fix E128: continuation line under-indented for visual indent 2018-08-24 07:49:27 +02:00
upgradeprovision.py PEP8: fix W391: blank line at end of file 2018-08-24 07:49:31 +02:00
upgradeprovisionneeddc.py PEP8: fix E127: continuation line over-indented for visual indent 2018-09-06 12:10:12 +02:00
xattr.py PEP8: fix E401: multiple imports on one line 2018-08-24 07:49:30 +02:00