summaryrefslogtreecommitdiffstats
path: root/source4/setup/tests
Commit message (Collapse)AuthorAgeFilesLines
* selftest: Fix test samba4.blackbox.group.pyMarc Muehlfeld2014-10-231-12/+12
| | | | | | | | | | | The test created two users and in later steps it tried adding two non-existend users to groups. This fix adds now the two created accounts to the groups instead. BUG: https://bugzilla.samba.org/show_bug.cgi?id=10871 Signed-off-by: Marc Muehlfeld <mmuehlfeld@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* selftest: make blackbox_setpassword.sh test run independentlyAndrew Bartlett2014-04-021-0/+2
| | | | | | Change-Id: I8f3cdfc2c66800f9a1e11aec4f25a42752b6b205 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* provision: Remove --username and --password options from samba-tool domain ↵Andrew Bartlett2013-10-111-1/+1
| | | | | | | | | | | | | | | provision This avoids confusion, because the LDAP backend does not use these, and they do not set the password for the administrator account either! This may break support for the 'existing' backend LDAP backend, but that is nothing more than a stub for future development anyway, and new work in this area should use EXTERNAL in any case. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4-openldap: Restored openldap-related options to the provision scriptNadezhda Ivanova2013-09-261-6/+6
| | | | | | | | | | | At the moment they are only available if TEST_LDAP=yes to avoid accidental use as the openldap backend is still failing some tests Signed-off-by: Nadezhda Ivanova <nivanova@symas.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Nadezhda Ivanova <nivanova@samba.org> Autobuild-Date(master): Thu Sep 26 07:31:05 CEST 2013 on sn-devel-104
* selftest: Remove output directories to save disk spaceAndrew Bartlett2013-03-041-7/+11
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest: Add ldapcmp to ensure upgradeprovision of a fresh DB is a no-opAndrew Bartlett2013-03-041-1/+33
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* Tests: remove redondent testsuites in provisionMatthieu Patou2013-01-211-6/+1
| | | | | | | | | | Removed provision are already tested somewhere else. Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Matthieu Patou <mat@samba.org> Autobuild-Date(master): Mon Jan 21 09:59:43 CET 2013 on sn-devel-104
* s4:scripting: rename upgradeprovision -> samba_upgradeprovisionStefan Metzmacher2012-09-121-2/+2
| | | | metze
* s4:setup/tests: make use of samba-tool domain provisionStefan Metzmacher2012-09-116-19/+19
| | | | metze
* selftest: Fix comment in blackbox_s3upgrade.shAndrew Bartlett2012-08-281-1/+1
|
* selftest: Specify --use-ntvfs when testing the group codeAndrew Bartlett2012-08-231-1/+1
| | | | | | We do not need to set filesystem ACLs in this case. Andrew Bartlett
* selftest: Specify --use-ntvfs when testing the newuser codeAndrew Bartlett2012-08-231-1/+1
| | | | | | We do not need to set filesystem ACLs in this case. Andrew Bartlett
* selftest: Specify --use-ntvfs when testing the LDAP backend init codeAndrew Bartlett2012-08-231-5/+5
| | | | | | We do not need to set filesystem ACLs in this case. Andrew Bartlett
* selftest: Specify --use-ntvfs to provision in test scriptsAndrew Bartlett2012-08-224-15/+15
| | | | | | | | Because these run as non-root, we need to avoid doing things that will fail during the provision. The main test of the s3fs provision is the plugin_s4_dc environment with a smb.conf that specifies vfs_fake_acls. Andrew Bartlett
* s4-provision: Remove --slapd-path optionAndrew Bartlett2012-06-201-5/+5
| | | | | | | | This just leaves a default enough for the test code to still check the start of the provision. This may well be removed in future, and we wish to reduce the extra options to provision. Andrew Bartlett
* s4-classicupgrade: Use "samba classic" description for samba3 NT4-like ↵Andrew Bartlett2012-06-161-3/+4
| | | | domains in samba3upgrade
* s4-s3upgrade: Add my wins.dat and fix the parsing errorAndrew Bartlett2012-06-161-0/+2
| | | | | | | The issue was that the numbers at the end of the lines are space padded. Andrew Bartlett
* Extension to the samba-tool group subcommand functionality to allow listing ↵Lukasz Zalewski2012-05-031-0/+6
| | | | of the members of an AD group
* s4-selftest: create the st/provision if it didn't exists alreadyMatthieu Patou2012-03-081-0/+2
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Thu Mar 8 00:25:24 CET 2012 on sn-devel-104
* selftest: Remove unused support for --exeextAndrew Bartlett2012-02-011-3/+3
|
* s4-s3-upgrade Test getdomainsid as wellAndrew Bartlett2011-11-171-0/+2
|
* s4-s3-upgrade Add test of net getlocalsid after the upgradeAndrew Bartlett2011-11-171-0/+4
| | | | Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
* s4-provision Remove options for LDAP backend to reduce user confusionAndrew Bartlett2011-11-081-5/+5
| | | | | | | | | | | | We do not support the LDAP backend any more, but keep the code in case someone comes up with an interesting use case that could leverage this in a very particular situation. In order to keep the code, we must test it, so we keep just this much of the support around. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Nov 8 04:33:49 CET 2011 on sn-devel-104
* s4: samba-tool subcommand rename - change samba-tool user add to samba-tool ↵Theresa Halloran2011-10-233-5/+5
| | | | | | | user create Signed-off-by: Theresa Halloran <thallora@linux.vnet.ibm.com> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4-s3-upgrade rename samba-tool domain samba3upgrade --libdir to --dbdir for ↵Andrew Bartlett2011-10-191-2/+2
| | | | | | | | | | | | clarity The things pointed at are not typically in a directory called lib, so avoid confusing our administrators. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Oct 19 15:43:04 CEST 2011 on sn-devel-104
* s4-s3-upgrade test upgrade without a wins.datAndrew Bartlett2011-10-191-0/+3
|
* s4-s3-upgrade Improve samba-tool domain samba3upgrade behaviourAndrew Bartlett2011-09-131-4/+25
| | | | | | | | | | | | | The --realm argument is again optional (the previous code would take the default from the default smb.conf, not the one specified) and --targetdir is now a named argument much like it is to provision. We now test the --testparm option to ensure it behaves the way we expect. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Sep 13 16:30:31 CEST 2011 on sn-devel-104
* s4-s3-upgrade Remove upgrade_from_s3 script, use samba-tool domain samba3upgradeAndrew Bartlett2011-09-121-2/+5
|
* s4-provision Add realm to DC configuration in upgrade_from_s3 testAndrew Bartlett2011-09-051-0/+1
|
* s3_upgrade: Update commandline options and use updated samba3 python moduleAmitay Isaacs2011-08-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | upgrade_from_s3 script now requires samba3 configuration file and target directory for samba4 database. In addition, it either uses --libdir option or --testparm option to correctly guess the paths for samba3 databases (private dir and state directory). Usage: upgrade_from_s3 [options] <configuration_file> <targetdir> Input arguments are: <configuration_file> - path to existing smb.conf <targetdir> - directory in which samba4 database will be created In addition, specify either samba3 database directory (with --libdir) or samba3 testparm utility (with --testparm). Before using passdb interface, initialize s3 loadparm context using correct path settings for private dir and state directory. Export account policy from s3 to s4. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* tests: Update test for s3 to s4 upgrade with two casesAmitay Isaacs2011-08-131-0/+62
| | | | | | S3-member to S4-member and S3-dc to S4-dc Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba-tool: updated test suite to account for newuser changeGiampaolo Lauria2011-07-283-5/+5
| | | | | | | Updated test suite invocations of newuser to "user add" as the newuser functionality is now being moved to "user add" Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: fixed samba-tool user syntaxAndrew Tridgell2011-07-211-1/+1
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba-tool: update test suite for the new domain objectGiampaolo Lauria2011-07-211-1/+1
| | | | | | Changed test suite to reflect the changes from setpassword to "domain setpassword" to fit the object-action model Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: update test suite for add setpasswordGiampaolo Lauria2011-07-212-5/+5
| | | | | | The test suite needs to change from setpassword to "user setpassword" to reflect the new cmd syntax Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4:samba-tool: Move samba-tool setexpiry to samba-tool user setexpiry <user>Theresa Halloran2011-06-011-4/+4
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4/samba-tool: Move samba-tool enableaccount to samba-tool user enable command.Theresa Halloran2011-06-011-2/+2
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* upgradeprovision: add hostname in the blackbox testsMatthieu Patou2011-05-211-1/+1
|
* Make the purge first so that the provision can reused during testsMatthieu Patou2011-05-211-3/+3
|
* s4-test: fixed more assumptions of ./setup for setup directoryAndrew Tridgell2011-02-076-21/+21
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba-tool Add test for --store-plaintextAndrew Bartlett2010-11-161-1/+1
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Nov 16 06:29:04 UTC 2010 on sn-devel-104
* s4 net: rename to samba-tool in order to not clash with s3 netKai Blin2010-10-284-67/+67
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Thu Oct 28 07:25:16 UTC 2010 on sn-devel-104
* unit tests: do some cleanup after testsMatthieu Patou2010-10-112-0/+15
| | | | | | | fix Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Mon Oct 11 14:29:10 UTC 2010 on sn-devel-104
* unit tests: debug to ease locating pb, remove dir if exists to avoid errorMatthieu Patou2010-08-191-2/+8
|
* s4:blackbox/newuser: use test specific user namesStefan Metzmacher2010-07-311-10/+10
| | | | | | | | As this test doesn't delete the user accounts at the end, we should use test specific user names. That lowers the chance of conflicts with other tests. metze
* s4 unittests: remove the provision directory before (re)generatingMatthieu Patou2010-07-103-0/+3
|
* s4 net: Add spn module to list/add/remove spn on objectsMatthieu Patou2010-07-101-0/+33
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* make test modules for net group set of commands and modification to the ↵Lukasz Zalewski2010-06-202-1/+82
| | | | | | newuser to include additional parameters Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4:blackbox password tests - more complex passwordsStefan Metzmacher2010-05-102-5/+5
|
* Fixed OL-MMR make testOliver Liebel2010-03-181-1/+1
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>