Ignore:
Timestamp:
23/11/09 11:11:43 (11 years ago)
Author:
aharwood
Message:

Port number can now be specified in exist configuration file

Location:
ndgCommon/trunk/ndg/common/unittests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ndgCommon/trunk/ndg/common/unittests/clients/xmldb/eXist/testrestclient.py

    r6036 r6037  
    1616        set up data used in the tests. 
    1717        ''' 
    18         userid, password, host = loadConfigDetails(tc.EXIST_DBCONFIG_FILE, tc.EXIST_DB) 
    19         self.client = RESTClient(host, userid, password) 
     18        userid, password, host, port = loadConfigDetails(tc.EXIST_DBCONFIG_FILE, tc.EXIST_DB) 
     19        self.client = RESTClient(host, userid, password, port=port) 
    2020 
    2121        self.createdAtoms = []    # array to store paths to atoms created - in order to then delete them 
  • ndgCommon/trunk/ndg/common/unittests/clients/xmldb/eXist/testxmlrpcclient.py

    r5219 r6037  
    1616        set up data used in the tests. 
    1717        ''' 
    18         userid, password, host = loadConfigDetails(tc.EXIST_DBCONFIG_FILE, tc.EXIST_DB) 
    19         self.client = XMLRPCClient(host, userid, password) 
     18        userid, password, host, port = loadConfigDetails(tc.EXIST_DBCONFIG_FILE, tc.EXIST_DB) 
     19        self.client = XMLRPCClient(host, userid, password, port=port) 
    2020 
    2121        self.createdAtoms = []    # array to store paths to atoms created - in order to then delete them 
  • ndgCommon/trunk/ndg/common/unittests/lib/testutilities.py

    r5219 r6037  
    2727         
    2828    def testLoadConfigDetailsValidAllOutput(self): 
    29         id, pw, host = utilities.loadConfigDetails(tc.EXIST_DBCONFIG_FILE, dbName = tc.EXIST_DB) 
     29        id, pw, host, port = utilities.loadConfigDetails(tc.EXIST_DBCONFIG_FILE, dbName = tc.EXIST_DB) 
    3030        self.assertTrue(id) 
    3131        self.assertTrue(pw) 
Note: See TracChangeset for help on using the changeset viewer.