glusterfs/tests
Susant Palai 3c556353cd locks/fencing: Add a security knob for fencing
There is a low level security issue with fencing since one client
can preempt another client's lock.

This patch does not completely eliminate the issue of a client
misbehaving, but certainly it adds a security layer for default use cases
that does not need fencing.

Change-Id: I55cd15f2ed1ae0f2556e3d27a2ef4bc10fdada1c
updates: #466
Signed-off-by: Susant Palai <spalai@redhat.com>
2019-01-22 05:23:44 +00:00
..
00-geo-rep [geo-rep]: Worker still ACTIVE after killing bricks 2018-12-13 04:46:50 +00:00
basic locks/fencing: Add a security knob for fencing 2019-01-22 05:23:44 +00:00
bitrot Land part 2 of clang-format changes 2018-09-12 17:52:45 +05:30
bugs cluster/dht: Delete invalid linkto files in rmdir 2019-01-22 05:22:20 +00:00
configfiles Halo Replication feature for AFR translator 2017-05-02 10:23:53 +00:00
encryption Land part 2 of clang-format changes 2018-09-12 17:52:45 +05:30
experimental core: Add experimental xlator directory 2015-11-18 04:23:02 -08:00
features fuse: SETLKW interrupt 2018-12-14 18:11:01 +00:00
gfid2path contrib/xxhash: update to latest xxHash (0.6.5) 2018-08-16 04:06:13 +00:00
performance tests: Fix races in open-behind.t 2016-09-27 04:44:27 -07:00
utils python3: assume python3 unless building _packages_ on sys without py3 2018-09-27 03:12:58 +00:00
vagrant tests/vagrant: install additional dependencies 2018-06-19 11:50:28 +00:00
afr.rc afr: fix incorrect reporting of directory split-brain 2018-09-21 16:35:26 +00:00
changelog.rc changelog: test case for verifying empty changelogs avoided 2015-07-27 00:49:44 -07:00
cleanup.sh tests: miscellaneous improvements 2016-07-11 06:33:38 -07:00
cluster.rc tests: fix brick check orders 2018-08-13 13:43:51 +00:00
common-utils.rc features/shard: Fix permission issues 2015-08-30 08:20:21 -07:00
dht.rc tests/dht: Add tests for file create 2018-09-17 06:24:15 +00:00
ec.rc afr,ec: Print if the subvolume is up in statedump 2018-07-03 12:48:56 +00:00
env.rc.in New flag to glusterfsd binary to print libexec dir 2018-09-05 06:44:59 +00:00
fallocate.rc porting: Provide setfattr/getfattr implementation 2014-09-05 10:04:20 -07:00
fdl.rc jbr: Sending rollback from failed fop to fdl 2016-11-08 11:25:25 -08:00
fileio.rc porting: Provide setfattr/getfattr implementation 2014-09-05 10:04:20 -07:00
geo-rep.rc geo-rep: Make slave volume read-only (by default) 2018-12-07 09:37:54 +00:00
include.rc tests: Preserve tarball of tests when they timeout 2018-08-27 02:42:19 +00:00
nfs.rc Tests portability: umount(8) 2015-06-09 06:24:47 -07:00
README.md Geo-rep: Adding regression tests for geo-rep 2015-04-13 10:01:49 +00:00
snapshot.rc tests: use trap mechanism to ensure that proper cleanups happen 2016-04-12 05:04:24 -07:00
ssl.rc gfapi: SSL connection for mgmt connection is not working 2016-08-28 23:19:33 -07:00
thin-arbiter.rc cluster/afr: Use 2 domain locking in SHD for thin-arbiter 2018-09-20 09:18:20 +00:00
tier.rc tests: fix for bug-1260185-donot-allow-detach-commit-unnecessarily.t failure 2017-11-30 10:15:10 +00:00
traps.rc tests: use trap mechanism to ensure that proper cleanups happen 2016-04-12 05:04:24 -07:00
volume.rc features/shard: Hold a ref on base inode when adding a shard to lru list 2018-10-16 03:37:44 +00:00

Regression tests framework for GlusterFS

Prereq

  • Build and install the version of glusterfs with your changes. Make sure the installed version is accessible from $PATH.

Prereq for geo-rep regression tests.

How-To

  • To mount glusterfs, NEVER use 'mount -t glusterfs', instead use 'glusterfs -s ' method. This is because with the patch build setup doesnot install the /sbin/mount.glusterfs necessary, where as the glusterfs binary will be accessible with $PATH, and will pick the right version.
  • (optional) Set environment variables to specify location of export directories and mount points. Unless you have special requirements, the defaults should just work. The variables themselves can be found at the top of tests/include.rc. All of them can be overriden with environment variables.

Usage

  • Execute /usr/share/glusterfs/run-tests.sh as root.

  • If you want to run individual tests located in /usr/share/glusterfs/tests as opposed to the full test-suite, invoke it as /usr/share/glusterfs/run-tests.sh [pattern]*, where pattern can be:

    • the trailing parts of the full path of a test, e.g. tests/basic/mount.t
    • the name of a file or directory, e.g self-heal.t or basic/
    • bug number, which will match against numbered bugs in the tests/bugs/ directory.
    • a glob pattern (see man 7 glob for mor info on globs)
  • To execute single ".t" file, use "prove -vf /path/to/.t"

  • If some test cases fail, report to GlusterFS community at gluster-devel@gluster.org.

Reminder

  • BE WARNED THAT THE TEST CASES DELETE GLUSTERD_WORKDIR * !!!