diff options
Diffstat (limited to 'wintest/test-s3.py')
-rwxr-xr-x | wintest/test-s3.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wintest/test-s3.py b/wintest/test-s3.py index 145aed96cb8..d1139b603c6 100755 --- a/wintest/test-s3.py +++ b/wintest/test-s3.py @@ -6,9 +6,11 @@ import sys, os import optparse import wintest + def set_libpath(t): t.putenv("LD_LIBRARY_PATH", "${PREFIX}/lib") + def set_krb5_conf(t): t.run_cmd("mkdir -p ${PREFIX}/etc") t.write_file("${PREFIX}/etc/krb5.conf", @@ -18,6 +20,7 @@ def set_krb5_conf(t): t.putenv("KRB5_CONFIG", '${PREFIX}/etc/krb5.conf') + def build_s3(t): '''build samba3''' t.info('Building s3') @@ -30,6 +33,7 @@ def build_s3(t): t.run_cmd('rm -rf ${PREFIX}') t.run_cmd('make install') + def start_s3(t): t.info('Starting Samba3') t.chdir("${PREFIX}") @@ -40,6 +44,7 @@ def start_s3(t): t.run_cmd(['sbin/smbd', "-D"]) t.port_wait("${INTERFACE_IP}", 139) + def test_wbinfo(t): t.info('Testing wbinfo') t.chdir('${PREFIX}') @@ -103,6 +108,7 @@ def test_smbclient(t): child.sendline("cd ..") child.sendline("rmdir testdir") + def create_shares(t): t.info("Adding test shares") t.chdir('${PREFIX}') @@ -147,6 +153,7 @@ def prep_join_as_member(t, vm): panic action = xterm -e gdb --pid %d ''') + def join_as_member(t, vm): '''join a windows domain as a member server''' t.setwinvars(vm) @@ -159,6 +166,7 @@ def join_as_member(t, vm): t.cmd_contains("host -t A ${HOSTNAME}.${WIN_REALM}", ['${HOSTNAME}.${WIN_REALM} has address']) + def create_root_account(t, vm): t.setwinvars(vm) t.info("Creating 'root' account for testing Samba3 member server") @@ -174,6 +182,7 @@ def create_root_account(t, vm): child.sendline("user edit disabled root no") child.expect("Set root's disabled flag") + def test_join_as_member(t, vm): '''test the domain join''' t.setwinvars(vm) |