Thomas Jackson
aabe6460f6
Misc comment cleanup in tests
2014-10-28 08:12:10 -07:00
Seth House
2dad062f8a
Move rest_cherrypy mocked methods into individual tests
2014-07-14 20:18:21 -06:00
Seth House
c25e658420
Use the test suite __opts__ instead of custom dict
...
Better approach now that we're in Salt core.
2014-07-14 17:09:25 -06:00
Pedro Algarvio
df80f4facb
Under Py2.6 we need unittest2 to be able to access assertRaisesRegexp
2014-06-20 14:26:24 +01:00
Thomas S Hatch
d52ad3a99a
Lint
2014-06-19 22:21:16 -06:00
Seth House
d00cd104ac
And yet more pylint fixes
2014-06-19 17:25:56 -06:00
Pedro Algarvio
c0ffb0814a
Make the NetAPI tests skip if CherryPy is not installed
2014-06-19 12:59:23 +01:00
Seth House
1d4057fadf
Updated all saltapi import paths to salt.netapi
2014-06-18 20:56:16 -06:00
Seth House
b488afe042
Renamed APIClient to NetapiClient to avoid ambiguity
...
Renaming pre-merge to avoid post-merge ambiguity with the unfortunately
named salt.client.api.APIClient(). Sometime in the future netapi modules
are likely to be rewritten to use salt.client.api.APIClient() instead.
2014-06-18 19:40:51 -06:00
Seth House
bbd8e1a856
Add mock for replacing get_event() in tests where needed
2014-06-18 16:51:51 -06:00
Seth House
918fae0cff
Allow individual tests to override Salt opts
2014-04-08 13:51:00 -06:00
Seth House
a79253d05d
Mock auth.LoadAuth for running tests
...
Added mock for the revert in f0cb9d1.
2014-04-04 11:45:38 -07:00
Seth House
bb9ff7aa6a
First stab at unit tests for the various rest_cherrypy tool functions
2014-03-31 09:59:55 -06:00
Seth House
0a1a21df17
First stab at integration tests for the rest_cherrypy netapi module
2014-03-31 09:58:56 -06:00
Seth House
0abda80f08
Return both the request and response objects
...
Since we're so rarely dealing with handlers that output strings in the
rest_cherrypy app it's useful to be able to see the full request object.
2014-03-31 09:00:40 -06:00
Seth House
249132ab24
Moved overriding headers below the content-length check
...
This allows tests to override the automatic content-length in order to
test bad/incorrect content-length headers.
2014-03-31 08:07:32 -06:00
Seth House
055145e797
Renamed 'data' param to 'body'; added 'qs' param
...
Rather than infer things about the request base on args/kwargs, make
both the body of the request as well as any querystring explicit
parameters.
2014-03-31 08:07:32 -06:00
Seth House
06d783c9da
Added note about local modifications to BaseCherryPyTestCase
2014-03-31 08:07:32 -06:00
Seth House
db6444912a
Added utils dir and a helper for testing CherryPy apps
2014-03-29 23:20:29 -06:00