diff options
author | Joe Guo <joeg@catalyst.net.nz> | 2018-07-30 18:16:12 +1200 |
---|---|---|
committer | Douglas Bagnall <dbagnall@samba.org> | 2018-08-24 07:49:27 +0200 |
commit | 5d532543abdcb605fd1432eeaa36135bdac8a884 (patch) | |
tree | 73d3b04134a841dfe157b150754b797cdb992781 /source3 | |
parent | bbb9f57603de490b39e5ad1b71e36f127291194b (diff) | |
download | samba-5d532543abdcb605fd1432eeaa36135bdac8a884.tar.gz |
PEP8: fix E128: continuation line under-indented for visual indent
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>
Diffstat (limited to 'source3')
-rwxr-xr-x | source3/selftest/tests.py | 44 | ||||
-rwxr-xr-x | source3/torture/test_ntlm_auth.py | 28 |
2 files changed, 36 insertions, 36 deletions
diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py index 7f756339364..bbadeb1a321 100755 --- a/source3/selftest/tests.py +++ b/source3/selftest/tests.py @@ -49,8 +49,8 @@ f = open(config_h, 'r') try: lines = f.readlines() config_hash = dict((x[0], ' '.join(x[1:])) - for x in map(lambda line: line.strip().split(' ')[1:], - filter(lambda line: (line[0:7] == '#define') and (len(line.split(' ')) > 2), lines))) + for x in map(lambda line: line.strip().split(' ')[1:], + filter(lambda line: (line[0:7] == '#define') and (len(line.split(' ')) > 2), lines))) finally: f.close() @@ -68,20 +68,20 @@ plantestsuite("samba3.local_s3", "nt4_dc:local", [os.path.join(samba3srcdir, "sc plantestsuite("samba3.blackbox.registry.upgrade", "nt4_dc:local", [os.path.join(samba3srcdir, "script/tests/test_registry_upgrade.sh"), net, dbwrap_tool]) tests = ["FDPASS", "LOCK1", "LOCK2", "LOCK3", "LOCK4", "LOCK5", "LOCK6", "LOCK7", "LOCK9", - "UNLINK", "BROWSE", "ATTR", "TRANS2", "TORTURE", - "OPLOCK1", "OPLOCK2", "OPLOCK4", "STREAMERROR", - "DIR", "DIR1", "DIR-CREATETIME", "TCON", "TCONDEV", "RW1", "RW2", "RW3", "LARGE_READX", "RW-SIGNING", - "OPEN", "XCOPY", "RENAME", "DELETE", "DELETE-LN", "WILDDELETE", "PROPERTIES", "W2K", - "TCON2", "IOCTL", "CHKPATH", "FDSESS", "CHAIN1", "CHAIN2", "OWNER-RIGHTS", - "CHAIN3", "PIDHIGH", "CLI_SPLICE", - "UID-REGRESSION-TEST", "SHORTNAME-TEST", - "CASE-INSENSITIVE-CREATE", "SMB2-BASIC", "NTTRANS-FSCTL", "SMB2-NEGPROT", - "SMB2-SESSION-REAUTH", "SMB2-SESSION-RECONNECT", "SMB2-FTRUNCATE", - "SMB2-ANONYMOUS", "SMB2-DIR-FSYNC", - "CLEANUP1", - "CLEANUP2", - "CLEANUP4", - "BAD-NBT-SESSION"] + "UNLINK", "BROWSE", "ATTR", "TRANS2", "TORTURE", + "OPLOCK1", "OPLOCK2", "OPLOCK4", "STREAMERROR", + "DIR", "DIR1", "DIR-CREATETIME", "TCON", "TCONDEV", "RW1", "RW2", "RW3", "LARGE_READX", "RW-SIGNING", + "OPEN", "XCOPY", "RENAME", "DELETE", "DELETE-LN", "WILDDELETE", "PROPERTIES", "W2K", + "TCON2", "IOCTL", "CHKPATH", "FDSESS", "CHAIN1", "CHAIN2", "OWNER-RIGHTS", + "CHAIN3", "PIDHIGH", "CLI_SPLICE", + "UID-REGRESSION-TEST", "SHORTNAME-TEST", + "CASE-INSENSITIVE-CREATE", "SMB2-BASIC", "NTTRANS-FSCTL", "SMB2-NEGPROT", + "SMB2-SESSION-REAUTH", "SMB2-SESSION-RECONNECT", "SMB2-FTRUNCATE", + "SMB2-ANONYMOUS", "SMB2-DIR-FSYNC", + "CLEANUP1", + "CLEANUP2", + "CLEANUP4", + "BAD-NBT-SESSION"] for t in tests: plantestsuite("samba3.smbtorture_s3.plain(fileserver).%s" % t, "fileserver", [os.path.join(samba3srcdir, "script/tests/test_smbtorture_s3.sh"), t, '//$SERVER_IP/tmp', '$USERNAME', '$PASSWORD', smbtorture3, "", "-l $LOCAL_PATH"]) @@ -131,7 +131,7 @@ for s in shares: plansmbtorture4testsuite(t, "simpleserver", "//%s/%s %s" % ('$SERVER_IP', s, ' -U$USERNAME%$PASSWORD'), description=s) posix_tests = ["POSIX", "POSIX-APPEND", "POSIX-SYMLINK-ACL", "POSIX-SYMLINK-EA", "POSIX-OFD-LOCK", - "POSIX-STREAM-DELETE", "WINDOWS-BAD-SYMLINK" ] + "POSIX-STREAM-DELETE", "WINDOWS-BAD-SYMLINK" ] for t in posix_tests: plantestsuite("samba3.smbtorture_s3.plain(nt4_dc).%s" % t, "nt4_dc", [os.path.join(samba3srcdir, "script/tests/test_smbtorture_s3.sh"), t, '//$SERVER_IP/posix_share', '$USERNAME', '$PASSWORD', smbtorture3, "", "-l $LOCAL_PATH"]) @@ -226,19 +226,19 @@ t = "--krb5auth=$DOMAIN/$DC_USERNAME%$DC_PASSWORD" plantestsuite("samba3.wbinfo_simple.(%s:local).%s" % (env, t), "%s:local" % env, [os.path.join(srcdir(), "nsswitch/tests/test_wbinfo_simple.sh"), t]) plantestsuite("samba3.wbinfo_name_lookup", env, [ os.path.join(srcdir(), - "nsswitch/tests/test_wbinfo_name_lookup.sh"), + "nsswitch/tests/test_wbinfo_name_lookup.sh"), '$DOMAIN', '$REALM', '$DC_USERNAME' ]) env = "ad_member:local" plantestsuite("samba3.wbinfo_user_info", env, [ os.path.join(srcdir(), - "nsswitch/tests/test_wbinfo_user_info.sh"), + "nsswitch/tests/test_wbinfo_user_info.sh"), '$DOMAIN', '$REALM', '$DOMAIN', 'alice', 'alice', 'jane', 'jane.doe' ]) env = "fl2008r2dc:local" plantestsuite("samba3.wbinfo_user_info", env, [ os.path.join(srcdir(), - "nsswitch/tests/test_wbinfo_user_info.sh"), + "nsswitch/tests/test_wbinfo_user_info.sh"), '$TRUST_DOMAIN', '$TRUST_REALM', '$DOMAIN', 'alice', 'alice', 'jane', 'jane.doe' ]) env = "ad_member" @@ -603,7 +603,7 @@ for s in signseal_options: options = binding_string + " -U$USERNAME%$PASSWORD" plansmbtorture4testsuite(test, "nt4_dc", options, 'over ncacn_np with [%s%s%s] ' % (a, s, e)) plantestsuite("samba3.blackbox.rpcclient over ncacn_np with [%s%s%s] " % (a, s, e), "nt4_dc:local", [os.path.join(samba3srcdir, "script/tests/test_rpcclient.sh"), - "none", options, configuration]) + "none", options, configuration]) # We should try more combinations in future, but this is all # the pre-calculated credentials cache supports at the moment @@ -628,7 +628,7 @@ for s in signseal_options: "$PREFIX/ktest/krb5_ccache-3", binding_string, "-k", configuration]) plantestsuite("samba3.blackbox.rpcclient_samlogon", "ad_member:local", [os.path.join(samba3srcdir, "script/tests/test_rpcclient_samlogon.sh"), - "$DC_USERNAME", "$DC_PASSWORD", "ncacn_np:$DC_SERVER", configuration]) + "$DC_USERNAME", "$DC_PASSWORD", "ncacn_np:$DC_SERVER", configuration]) plantestsuite("samba3.blackbox.sharesec", "simpleserver:local", [os.path.join(samba3srcdir, "script/tests/test_sharesec.sh"), configuration, os.path.join(bindir(), "sharesec"), "tmp"]) diff --git a/source3/torture/test_ntlm_auth.py b/source3/torture/test_ntlm_auth.py index 076019c539b..4798f41baac 100755 --- a/source3/torture/test_ntlm_auth.py +++ b/source3/torture/test_ntlm_auth.py @@ -78,38 +78,38 @@ def parseCommandLine(): parser.set_defaults(config_file="/etc/samba/smb.conf") parser.add_option("--client-username", dest="client_username",\ - help="User name for the client. [default: foo]") + help="User name for the client. [default: foo]") parser.add_option("--client-password", dest="client_password",\ - help="Password the client will send. [default: secret]") + help="Password the client will send. [default: secret]") parser.add_option("--client-domain", dest="client_domain",\ - help="Domain the client authenticates for. [default: FOO]") + help="Domain the client authenticates for. [default: FOO]") parser.add_option("--client-helper", dest="client_helper",\ - help="Helper mode for the ntlm_auth client. [default: ntlmssp-client-1]") + help="Helper mode for the ntlm_auth client. [default: ntlmssp-client-1]") parser.add_option("--client-use-cached-creds", dest="client_use_cached_creds",\ - help="Use winbindd credentials cache (rather than default username/pw)", action="store_true") + help="Use winbindd credentials cache (rather than default username/pw)", action="store_true") parser.add_option("--target-hostname", dest="target_hostname",\ - help="Target hostname for kerberos") + help="Target hostname for kerberos") parser.add_option("--target-service", dest="target_service",\ - help="Target service for kerberos") + help="Target service for kerberos") parser.add_option("--server-username", dest="server_username",\ - help="User name server uses for local auth. [default: foo]") + help="User name server uses for local auth. [default: foo]") parser.add_option("--server-password", dest="server_password",\ - help="Password server uses for local auth. [default: secret]") + help="Password server uses for local auth. [default: secret]") parser.add_option("--server-domain", dest="server_domain",\ - help="Domain server uses for local auth. [default: FOO]") + help="Domain server uses for local auth. [default: FOO]") parser.add_option("--server-helper", dest="server_helper",\ - help="Helper mode for the ntlm_auth server. [default: squid-2.5-server]") + help="Helper mode for the ntlm_auth server. [default: squid-2.5-server]") parser.add_option("--server-use-winbindd", dest="server_use_winbindd",\ - help="Use winbindd to check the password (rather than default username/pw)", action="store_true") + help="Use winbindd to check the password (rather than default username/pw)", action="store_true") parser.add_option("--require-membership-of", dest="sid",\ - help="Require that the user is a member of this group to authenticate.") + help="Require that the user is a member of this group to authenticate.") parser.add_option("-s", "--configfile", dest="config_file",\ - help="Path to smb.conf file. [default:/etc/samba/smb.conf") + help="Path to smb.conf file. [default:/etc/samba/smb.conf") (opts, args) = parser.parse_args() if len(args) != 1: |