summaryrefslogtreecommitdiffstats
path: root/test/unittest
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Refactor the minion/server list and group stuff. Still not ideal, butAdrian Likins2008-02-121-7/+50
| | | | | | | a touch more OO. Also update unittests/etc. Did some s/servers/minions/ renaming while I was at it as well. Need to go back and finish that up.
* seeing if this resultis 0 is dumb, just see if it executesroot2008-02-051-1/+0
| | | | We do need to be smarter about this though
* use socket.getfqdn instead of gethostname for sanity sakeAdrian Likins2008-02-051-1/+2
|
* make TestFileTracker test cases a bit less dependent on the state of theAdrian Likins2008-02-041-4/+6
| | | | | | | filetracker setup make the rpm command test look for some package a bit more likely to be there than "func", for now, "filesystem"
* dont test for the "@blippy" group yet till I setup a way to put the rightAdrian Likins2008-02-041-4/+13
| | | | config file in place (or mock object, whatever...)
* fix typos in attr defs so "nosetests -a \!intro" works againAdrian Likins2008-02-041-2/+2
| | | | aka, skipping the introspectivish test cases that get called on every module
* add two new methods to poke at everymoduleAdrian Likins2008-02-041-1/+21
| | | | | | call "list_methods" also, call "inventory" if it exists
* we don't return xmlrpclib.Faults anymore, so most of the testAdrian Likins2008-02-041-2/+5
| | | | | cases were less than useful. Fix to call func.utils.is_error instead