summaryrefslogtreecommitdiffstats
path: root/test/unittest
Commit message (Collapse)AuthorAgeFilesLines
* add some test cases for command.run, since we need them...Adrian Likins2008-12-111-1/+40
|
* comment out local copyfile tests for nowAdrian Likins2008-11-131-7/+41
| | | | | add more tests for filetracker to test support for lists of files and file globs
* cleanup our coverage data on "make clean"Adrian Likins2008-11-111-1/+3
|
* add some tests cases for copyfileAdrian Likins2008-11-101-4/+17
|
* Fix a bug with "func-transmit --yaml" send bools as strings and causingAdrian Likins2008-10-311-5/+43
| | | | | | | | | | | | | weird things to happen to async. Add a "smart_bool" method to client.py that will take the string and/or bool it gets and make a bool of it. test_func_transmit.py: add option to specify async/nfork params for the non async test calls for testing add a couple test cases that call methods with "async=True, nforks=1" to make sure they do the right thing
* Fix minion module config examples. Add local "Config" class to module.Adrian Likins2008-10-241-9/+25
| | | | | | | | | | Add in all the approriate types and defaults to Config class Update etc/Test.conf example to include everything in main. For now we only support one stanza config files for modules. updated test cases to test that proper values are fetched from the config file for the "test" module
* add some test cases for per module configuation.Adrian Likins2008-10-241-1/+15
| | | | | | This stuff doesnt really seem to work at this point, but pushing so other folks can take a look at it. It doesn't break anything else.
* Add some support for saving module config files. And corresponding test cases.Adrian Likins2008-10-201-0/+14
|
* Add in some support for test coverage.Adrian Likins2008-10-154-0/+585
| | | | | | | | | | | | test/unittest/plugins/*: add a funccover nosetest plugin that can write out code coverage attribution information cover_to_html.py: script to convert coverage information to html output. This isn't integrated into the test scripts yet, but should work for manually ran tests. See plugins/README for more info
* add method in test minion module to export it's configAdrian Likins2008-09-161-0/+6
| | | | add a simple unit test case to poke at it
* func-transmit now has some ways of handling exceptions raised from theAdrian Likins2008-09-021-2/+3
| | | | | | | | | Overlord() api class. It will catch them, and then marshall them into a dict of {'name':"?", 'error':1, 'message':"?". 'info':{dict of whatever}} It will also exit the process with status 1 instead of 0. Also, some refactoring to make the error handling a little easier.
* comment out these tests till we find a more consistent way to testsAdrian Likins2008-09-021-16/+17
| | | | group related things
* remove debug spewAdrian Likins2008-08-261-1/+0
|
* Merge branch 'master' into cmd_run_envAdrian Likins2008-08-261-2/+1
|\
| * merge from master async db stuff fixesmakkalot2008-08-031-7/+1
| |\
| * | add more methods for groups apimakkalot2008-07-311-0/+34
| | |
| * | some beautiful tests for group code :)makkalot2008-07-291-35/+188
| | |
* | | add support for specifying a set of enviroment variables to runAdrian Likins2008-08-211-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | a command in. also, add a unit test case atm, the env variables specified completely replace the normal enviroment
* | | update unit testsAdrian Likins2008-08-181-4/+9
| |/ |/|
* | some merge error its fixmakkalot2008-08-011-5/+0
| |
* | add more methods for groups apimakkalot2008-08-011-0/+34
| | | | | | | | (cherry picked from commit 9bc72b2c3a882e69267f878272df80a7ac35b30e)
* | some beautiful tests for group code :)makkalot2008-08-011-35/+188
|/ | | | (cherry picked from commit 4bed3349bb2abd490ca56a4945d7b7fc499bef88)
* fix calls of "func '@group1;@group2" fooAdrian Likins2008-07-241-16/+18
| | | | | | | The groups weren't getting seperated correctly (they expected a ':' as the seperator, which is wrong). Uncomment some of the test cases for this that now work.
* apply patch from awood@redhat.com thats adds a filter to the ↵Adrian Likins2008-07-231-0/+18
| | | | | | yumcmd.check_update call also add awood to Authors, and add a few unit tests
* update list_minion test to expect just the listAdrian Likins2008-07-181-1/+1
|
* test_func_transmit.py: refactor the unittestsAdrian Likins2008-07-181-32/+173
| | | | | | | | | | add support for testing yaml/json input/output add support for async testing of all tests try `nosetests -a async test_func_transmit.py` to test all the async test try `nosetest -a json test_func_transmit.py` to test all the json tests, etc NOTE: several of these tests fail for json/yaml, not sure what to do about that
* func-transmit: handle lists of client globs. Not sure this is the correctAdrian Likins2008-07-161-1/+51
| | | | | | | approach, but it seems to mostly work for now test_func_transmit.py: more test cases for func-transmit
* new file, test_func_transmit.py:Adrian Likins2008-07-152-0/+140
| | | | | | | | | unit tests for func-transmit right now, mostly just tests of marshalling data back and forth properly, and some basic calls NOTE: at the moment, it fails alot of these tests test_clients.py: add a couple new tests based on things discovered with test_func_transmit.py
* Merge branch 'makkalot_extreme'Michael DeHaan2008-07-081-0/+32
|\
| * remove my minion so others may test itmakkalot2008-06-301-2/+1
| |
| * adding tests for sample method that tests the rendering thingsmakkalot2008-06-301-1/+34
| |
* | add "glob" method to rpm minion module, and add test casesAdrian Likins2008-06-261-1/+31
|/ | | | | | patch from Pradeep Kilambi <pkilambi@redhat.com> (with a small change to handle arch being "None" for gpg-pubkey packages)
* make it for localhostmakkalot2008-06-231-1/+1
|
* if there is a options keyword in args the others should be there there is no ↵makkalot2008-06-201-2/+9
| | | | sense
* change test for localhostmakkalot2008-06-161-2/+2
|
* forgot to add order keyword to basic allowed types so couldnt pass the tests :)makkalot2008-06-151-0/+1
|
* adding tests for is_all_arguments_registered partmakkalot2008-06-151-1/+28
|
* change for my minionmakkalot2008-06-151-1/+2
|
* changing test for new one list keywordmakkalot2008-06-091-1/+1
|
* changing get_method_args testsmakkalot2008-06-081-7/+32
|
* fixing import error thanks to alikins :)makkalot2008-06-031-1/+1
|
* the test tobe from localhostmakkalot2008-06-021-2/+1
|
* some testing commitsmakkalot2008-06-011-6/+4
|
* minor changes not so importantsmakkalot2008-06-011-6/+31
|
* unittest fixed and should add more and more to make it perfect :)makkalot2008-05-311-12/+13
|
* teh unittest for that modulemakkalot2008-05-311-0/+65
|
* the unittest for get_method_args it passes the system module test hacky like ↵makkalot2008-05-271-0/+11
| | | | other members like it we should implement them ...
* add a "echo" to the test moduleAdrian Likins2008-04-161-0/+45
| | | | | write some unit tests that use the "test.echo" module to test some basic marshall/demarshalling code
* add iptables module from Krzysztof A. Adamski <krzysztofa@gmail.com>Adrian Likins2008-03-281-0/+25
| | | | | | | | | add some basic test cases to the unittests (needs expanded) add file info to setup.py add Makefiles to minion/modules/netapp/* and minion/modules/iptables/* to make make clean work
* Changing func/func/overlord/client.py:Client() to Overlord(). Client() stillAdrian Likins2008-03-281-52/+52
| | | | | | | works but will dive a deprecation warning. First pass at this refactor. I think just about everything has been updated, but some questions remain. Like if client.py needs a name change.