mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix remaining issues with XML-RPC test cases
Tied the make-test script into the test target of the top-level Makefile Added code to xmlrpc_test.py so that it configures the API if it isn't already done which enables individual tests to be executed.
This commit is contained in:
@@ -26,7 +26,20 @@ import socket
|
||||
import nose
|
||||
from ipalib import api, request
|
||||
from ipalib import errors2
|
||||
from ipalib import errors
|
||||
|
||||
# Initialize the API. We do this here so that one can run the tests
|
||||
# individually instead of at the top-level. If API.bootstrap()
|
||||
# has already been called we continue gracefully. Other errors will be
|
||||
# raised.
|
||||
try:
|
||||
api.bootstrap(context='cli')
|
||||
api.finalize()
|
||||
except StandardError, e:
|
||||
if str(e) == "API.bootstrap() already called":
|
||||
pass
|
||||
else:
|
||||
raise e
|
||||
|
||||
class XMLRPC_test(object):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user