File size: 790 Bytes
7c89ed7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | from .loginput_test_suite import LoginputTestSuite
class TestTestRoute(LoginputTestSuite):
routes = ['/test', '/test/']
status_code = 200
body = ''
class TestStatusRoute(LoginputTestSuite):
routes = ['/status', '/status/']
status_code = 200
body = '{"status": "ok", "service": "loginput"}'
# Routes left need to have unit tests written for:
# @route('/_bulk',method='POST')
# @route('/_bulk/',method='POST')
# @route('/_status')
# @route('/_status/')
# @route('/nxlog/', method=['POST','PUT'])
# @route('/nxlog', method=['POST','PUT'])
# @route('/events/',method=['POST','PUT'])
# @route('/events', method=['POST','PUT'])
# @route('/cef', method=['POST','PUT'])
# @route('/cef/',method=['POST','PUT'])
# @route('/custom/<application>',method=['POST','PUT'])
|