aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix test for shell_outputAdam Stokes2013-04-111-1/+1
| | | | | | | | - ENV['PATH'] is blank when running this test so we can not rely on cmd_env['PATH']. I dont know if PATH is supposed to be blank in this setup or not so we hardcode in a python executable. Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* Fix unittests and more pep8 conformingAdam Stokes2013-04-041-14/+12
| | | | | | | | | | | | | | | | - In our unittest we defined 'is_installed' to be a bool when in fact we wanted to verify if a package is installed via the _method_ is is_installed. Since overriding that method with our variable definition we basically removed any functionality of 'is_installed' method in Plugin class. - Initializing a fake plugin to test was failing due to our global logger not being initialized. Put a simple check in the library to make sure the logger is defined no matter what the calling state does. - Make import selinux conditional - Add travis-ci support - Rename README to utilize travis-ci build status and other markdown supported features Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* Make more names pep8 compliant across the treeBryn M. Reeves2013-03-284-14/+14
| | | | | | | | | Fix policy and utility function, method and variable names to use lower case underscored style instead of camelCase. Related to Issue #112. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* Rename copy_stuff() to collect()Bryn M. Reeves2013-03-281-2/+2
| | | | | | | | The name copy_stuff() isn't as descriptive now that the data may be being streamed into an archive without being copied into a temporary directory. Calling it collect covers both equally well. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* Rename functions and methods in plugins to comply with pep8Bryn M. Reeves2013-03-282-34/+34
| | | | | | | | | | | | | There are lots of historical camelCase function and method names in the plugin directory even though pep8 very clearly recommends against these other than for external backwards compatibility. Rename all the camelCased functions and methods and fix up the main sosreport code, examples and tests to use the new names. Fixes Issue #112. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* Include new-line in shell_outAdam Stokes2013-02-111-2/+2
|
* Disable archive recursion tests for TarFileArchiveBryn M. Reeves2012-12-181-10/+14
| | | | | | The TarFileArchive class currently doesn't allow recursive directory addition using the add_file() interface - disable those tests for now.
* Fix import statement in archives_test.pyBryn M. Reeves2012-12-181-1/+1
|
* Rename regex substitution functionsBryn M. Reeves2012-12-051-3/+3
| | | | | Rename doRegexSub and doRegexExtOutputSub to doFileSub and doExtOutputSub respectively.
* Merge branch 'master' of github.com:sosreport/sosreportJesse Jaggars2012-04-051-1/+8
|\
| * using /usr/bin/timeout if it's thereJesse Jaggars2012-03-201-1/+8
| |
* | adding more gathering for as7 and fixing an error where trying to add a ↵Jesse Jaggars2012-04-051-0/+6
|/ | | | unicode filename to a zipfile would fail
* fixing some python2.5 compatibility issuesJesse Jaggars2012-03-141-1/+9
|
* Squashed commit of the following:Jesse Jaggars2012-03-133-1/+328
| | | | | | | | | | | | | | commit 1c2cf82a424125decda210a557755e8467bf0b2b Author: Jesse Jaggars <jjaggars@redhat.com> Date: Tue Mar 13 15:20:47 2012 -0500 adding regex sub tests and some docstrings commit d72f2f28b364519710f95a53330821138fc40849 Author: Jesse Jaggars <jjaggars@redhat.com> Date: Tue Mar 13 11:13:06 2012 -0500 adding many tests for plugins
* fixing fileGrep to pass multiple search paths better and we handle ↵Jesse Jaggars2012-03-081-0/+4
| | | | non-existant files as well
* Refactoring PackageManagers and ArchivesJesse Jaggars2012-03-054-2/+74
| | | | | | | Pulled up PackageManager implementation to simplify subclass responsibilities Moved compress method to Archive classes Re-organized utilities.py Added tests to exercise more utilities methods
* Removing many unused bitsJesse Jaggars2012-02-295-161/+13
|
* adding ability to specify multiple files for Plugin.fileGrepJesse Jaggars2012-02-272-1/+56
|
* adding more tests and fixing an error with tar archivesJesse Jaggars2012-02-233-1/+20
|
* refactoring common linux-related policy features into a common superclass, ↵Jesse Jaggars2012-02-231-0/+45
| | | | simplifying specification of valid plugin subclasses
* adding root_symlink support under tarfiles and fixing getOption behaviorJesse Jaggars2012-02-141-0/+10
|
* Fixing a logic error with global option handllingJesse Jaggars2012-02-091-0/+24
|
* Major updates to most of SoSReportJesse Jaggars2011-12-143-0/+249
| | | | | | | | | | | | | | | | | | | | | Code reorganization Cross platform support for Windows, OS X and Linux Dynamically loaded policies Support for loading plugins from multiple locations via __path__ modification of sos.plugins Support for running via Jython Support for executing from a jarfile Support for json based reporting infrastructure - Previous reporting methods still exist Support for other checksum algorithms (determined by policy) Support for other compression algorithms (determined by policy) New plugin API for writing arbitrary information in a new file inside the report archive. New plugin API for modifying files that have been added to the archive. Added API for global plugin options - external interface is unavailable at this time Many small bugfixes
* [tests] worker: tests reflecting the SIGINT design changepcarrier2010-11-281-7/+18
| | | | git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@1053 ef72aa8b-4018-0410-8976-d6e080ef94d8
* [tests] worker: added SIGUSR1 testspcarrier2010-11-281-1/+28
| | | | git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@1050 ef72aa8b-4018-0410-8976-d6e080ef94d8
* [tests] worker: add prompt() and mutualize the "echo lol" outputpcarrier2010-11-281-12/+18
| | | | git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@1049 ef72aa8b-4018-0410-8976-d6e080ef94d8
* [tests] Replaced old expect scripts with pexpectpcarrier2010-11-271-0/+28
| | | | git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@1048 ef72aa8b-4018-0410-8976-d6e080ef94d8
* [tests] worker: new tests, some slowpcarrier2010-11-271-0/+21
| | | | | | | | | | | - empty_glob - increasing_counter - queue_commands Those last two are significantly slower. Actually performance is almost disturbing! git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@1043 ef72aa8b-4018-0410-8976-d6e080ef94d8
* [tests] worker: fixing test_basic_glob for the stricter helperspcarrier2010-11-271-1/+3
| | | | git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@1042 ef72aa8b-4018-0410-8976-d6e080ef94d8
* [tests] worker: SIGINT behaviour almost completely testedpcarrier2010-11-271-0/+18
| | | | | | | | We still need to check that SIGINT when a request is running leads to: - "INTERRUPTED" on stderr; - the flow of execution continuing. git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@1041 ef72aa8b-4018-0410-8976-d6e080ef94d8
* [tests] worker: multiple helperspcarrier2010-11-271-5/+22
| | | | | | | | | Handling \r\n and \n is apparently more difficult than expected... We want to make sure we do not let worker speak more than we expect -> checking that .before is empty except when using lose_expect() git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@1040 ef72aa8b-4018-0410-8976-d6e080ef94d8
* [tests] worker: new imports for incoming featurespcarrier2010-11-271-1/+4
| | | | git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@1039 ef72aa8b-4018-0410-8976-d6e080ef94d8
* [tests] worker: first bunch of testspcarrier2010-11-271-0/+43
| | | | git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@1035 ef72aa8b-4018-0410-8976-d6e080ef94d8
* remove old unittestsastokes2010-03-317-196/+0
| | | | git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@906 ef72aa8b-4018-0410-8976-d6e080ef94d8
* build updatesastokes2010-03-267-0/+196
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@870 ef72aa8b-4018-0410-8976-d6e080ef94d8