mirror of
https://github.com/samba-team/samba.git
synced 2025-02-01 05:47:28 +03:00
Remove tests for Samba 3 EJS code.
(This used to be commit 7aff2ddd8ca1ff68fc704fdb139d81d6daa51115)
This commit is contained in:
parent
af007e5837
commit
0a6dc21955
@ -43,7 +43,7 @@ plantest() {
|
||||
$incdir/../bin/smbtorture -V
|
||||
|
||||
samba4srcdir=$incdir/..
|
||||
samba4bindir=$samba4srcdir/bin
|
||||
samba4biir=$samba4srcdir/bin
|
||||
SCRIPTDIR=$samba4srcdir/../testprogs/ejs
|
||||
smb4torture="$samba4bindir/smbtorture $TORTURE_OPTIONS"
|
||||
|
||||
@ -262,9 +262,6 @@ done
|
||||
|
||||
DATADIR=$samba4srcdir/../testdata
|
||||
|
||||
plantest "parse samba3" none $samba4bindir/smbscript $DATADIR/samba3/verify $CONFIGURATION $DATADIR/samba3
|
||||
plantest "js.samba3sam" none $SCRIPTDIR/samba3sam.js $CONFIGURATION `pwd` $DATADIR/samba3/
|
||||
|
||||
# Domain Member Tests
|
||||
|
||||
plantest "RPC-ECHO against member server with local creds" member $VALGRIND $smb4torture ncacn_np:"\$NETBIOSNAME" -U"\$NETBIOSNAME/\$USERNAME"%"\$PASSWORD" RPC-ECHO "$*"
|
||||
|
59
testdata/samba3/verify
vendored
59
testdata/samba3/verify
vendored
@ -1,59 +0,0 @@
|
||||
#!/usr/bin/env smbscript
|
||||
/* Verifies that the data present in this directory
|
||||
Can be read correctly by Samba4. Do not update
|
||||
without changing the corresponding TDB file!
|
||||
Written by Jelmer Vernooij, 2005.
|
||||
*/
|
||||
|
||||
var sys;
|
||||
var options = GetOptions(ARGV, "POPT_AUTOHELP", "POPT_COMMON_SAMBA");
|
||||
if (options == undefined) {
|
||||
println("Failed to parse options");
|
||||
return -1;
|
||||
}
|
||||
|
||||
libinclude("base.js");
|
||||
|
||||
var path = substr(ARGV[0], 0, -strlen("verify"));
|
||||
printf("Reading from %s\n", path);
|
||||
|
||||
var s = samba3_read(path, path+"smb.conf");
|
||||
assert(s != undefined);
|
||||
|
||||
// smb.conf checks
|
||||
assert(s.configuration.get("passdb backend") != undefined);
|
||||
|
||||
var data = s.configuration.data();
|
||||
assert(data != undefined);
|
||||
var global = data["global"];
|
||||
assert(global != undefined);
|
||||
assert(global["passdb backend"] == s.configuration.get("passdb backend"));
|
||||
assert(global["passdb backend"] != undefined);
|
||||
|
||||
println("smb.conf ok");
|
||||
|
||||
assert(s.winsentries.length == 22);
|
||||
assert(s.samaccounts.length == 3);
|
||||
assert(s.shares.length == 0);
|
||||
assert(s.registry.keys.length == 28);
|
||||
assert(s.groupmappings.length == 13);
|
||||
assert(s.aliases.length == 0);
|
||||
assert(s.idmapdb.mappings.length == 4);
|
||||
|
||||
println("database entry count correct");
|
||||
|
||||
// account policies
|
||||
assert(s.policy.min_password_length == 5);
|
||||
assert(s.policy.minimum_password_age == 0);
|
||||
assert(s.policy.maximum_password_age == 999999999);
|
||||
assert(s.policy.refuse_machine_password_change == 0);
|
||||
assert(s.policy.reset_count_minutes == 0);
|
||||
assert(s.policy.disconnect_time == -1);
|
||||
assert(s.policy.user_must_logon_to_change_password == 0);
|
||||
assert(s.policy.password_history == 0);
|
||||
assert(s.policy.lockout_duration == 0);
|
||||
assert(s.policy.bad_lockout_minutes == 0);
|
||||
|
||||
println("account policies ok");
|
||||
|
||||
exit(0);
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user