summaryrefslogtreecommitdiffstats
path: root/testcases
Commit message (Collapse)AuthorAgeFilesLines
* tests: Add knownfail entries for several smb2.replay teststestsSachin Prabhu2021-04-081-0/+23
| | | | | | | | | | | | Copy over the file selftest/knownfail.d/smb2.replay from the samba sources to our tests. These tests were added to demonstrate bugs in the windows behaviour. Please check commit f5168a21abd s4:torture/smb2: add smb2.replay.dhv2-pending* tests Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* smbtorture-tests: Add command to the output fileSachin Prabhu2021-02-191-1/+5
| | | | Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* smbtorture-tests: Add more newlines to make output easier to readSachin Prabhu2021-02-191-1/+3
| | | | Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* smbtorture-tests: Fix outputSachin Prabhu2021-02-191-2/+2
| | | | | | | | The stderr of the output of smbtorture scripts is not captured correctly resulting in incomplete messages seen. This fixes the problem to get a clearer picture of the failing tests. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Update subunithelper.py from the latest sambaSachin Prabhu2021-02-111-17/+15
| | | | | | | | | Taken on 10-02-2021 and latest commit on the file is 35459b753af selftest: Add support for python-dateutil >= 2.7.1 Signed-off-by: Sachin Prabhu <sprabhu@redhat.com> (cherry picked from commit 0ef8fcacf532b94774600aa4938e9a7f51bcd263) Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* smbtorture-tests: Add additional smb2.* testsSachin Prabhu2020-11-272-0/+10
| | | | | | | | | | | This group of tests fail when run on disperse volume. The workaround is to disable performance.cache-samba-metadata for the volume. We have added the failing tests to the flapping tests and will continue investigating the issue reported in https://github.com/gluster/samba-integration/issues/118 Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* smbtorture-tests: Add more smb2 testsSachin Prabhu2020-11-261-0/+21
| | | | | | | These tests have been tested and confirmed to work on the gluster samba-integration test systems. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* smbtorture-tests: Remove smb2.rw.rw1 from flapping.glusterSachin Prabhu2020-11-261-2/+0
| | | | | | | Fixed upstream on both gluster and samba. https://github.com/gluster/samba-integration/issues/110 Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Update filter-subunitSachin Prabhu2020-11-251-5/+1
| | | | | | | Backport changes to filter-subunit from upstream commit a3cd3153212 python2 reduction: Merge remaining compat code into common Signed-off-by: Sachin Prabhu<sprabhu@redhat.com>
* Modify smbtorture tests to run through multiple sharesSachin Prabhu2020-10-211-11/+14
| | | | | | Adding support to handle multiple shares within smbtorture test scripts. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add flapping.gluster listSachin Prabhu2020-10-212-0/+3
| | | | | | | This lists the tests we find do not work correctly with gluster and have been recorded and are being worked on. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Remove unnecessary commentSachin Prabhu2020-10-211-1/+0
| | | | | | No longer true. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Modify consistency check to test through various sharesSachin Prabhu2020-10-211-14/+26
| | | | Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Fix mount test to support multiple sharesSachin Prabhu2020-10-211-7/+15
| | | | Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* selftest: Update selftest files from latest samba sourcesSachin Prabhu2020-08-314-12/+14
| | | | | | | | | | The python binary_type was taken off the samba python modules causing issues in the selftest infrastructure in our tests. We sync up with the latest changes to the selftest executables, libraries and test list. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* We no longer need to track knownfailsSachin Prabhu2020-08-252-9/+4
| | | | | | | This is tracked by the filter-subunit filter added in the previous commit. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Use format-subunit as done in selftestSachin Prabhu2020-08-252-5/+61
| | | | | | | | filter-subunit by itself will not catch known fails and flapping test successfully. It simply modifies the output to 'xfail' for known failures. We then pipe it to format-subunit for interpretation. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add filter-subunit filtersSachin Prabhu2020-08-2544-1/+839
| | | | | | This contains a list of knownfails and flapping tests. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Pass smbtorture output through filter_subunitSachin Prabhu2020-08-254-4/+863
| | | | | | Better reporting. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Use the --fullname option for smbtortureSachin Prabhu2020-08-251-1/+1
| | | | | | | Newly added option for the smbtorture command to print out the fullname instead of the short name. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add new options to the smbtorture commandSachin Prabhu2020-08-251-1/+6
| | | | | | This matches what is set by the selftest infrastructure in samba. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Change testscripts to use Python3Sachin Prabhu2020-07-233-3/+3
| | | | | | | | | | | | The new selftest helpers require python3. While out own scripts use the default python interpreter which for CentOS 7 is python2. On systems with both versions installed, we need to decide which versions to install a particluar module for. To avoid confusion due to differring versions, we have decided to stick to Python3 for all our python scripts. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* tests: improve comment for consistency-check testMichael Adam2020-05-191-1/+5
| | | | | | | | | The comment in the consistency-check test seems to have been copy-and-pasted from the mount-test and does not correctly describe what this test does. This patch updates the comment to fix this. Signed-off-by: Michael Adam <obnox@samba.org>
* tests: fix result of new smb2.rw.invalid runMichael Adam2020-05-141-1/+1
| | | | | | | | | | | | | | Some smbtorture tests behave slightly differently when they are running against samba. The new smb2.rw.invalid test is such a test. For these cases, smbtorture has the `--target` option. `--target=samba3` indicates that this is run against a samba smbd server. Since we are always running against the smbd server here, this patch adds the `--target=samba3` option to our smbtorture commandline. Signed-off-by: Michael Adam <obnox@samba.org>
* Add smbtorture to testSachin Prabhu2020-05-124-0/+62
| | | | | | Enable use of smbtorture tests provided with the samba-test package. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add check for consistency testSachin Prabhu2020-05-113-0/+63
| | | | | | | Check for consistency of file data data across all possible mount points. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add the infrastructure to execute testsSachin Prabhu2020-05-061-0/+2
| | | | | | Tests to be executed are listed in testcases/tests Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add mount testSachin Prabhu2020-05-062-0/+43
Simple test to mount/write/unmount share using the cifs module. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>