def _createTestClient(self): testClientConfig = self._config['VistA_Connection'] system = testClientConfig['system'] namespace = testClientConfig.get('namespace', DEFAULT_NAMESPACE) username = testClientConfig.get('username', None) password = testClientConfig.get('password', None) prompt = testClientConfig.get('prompt', None) return VistATestClientFactory.createVistATestClient(system, prompt=prompt, namespace=namespace, instance=self._instance, username=username, password=password)
def dispatch(self): # expectConn = VistATestClientFactory.createVistATestClient(self._system, namespace=self._namespace) # if not expectConn: # return # FileManGlobalAttributes.listFileManFileAttributes(expectConn, self._fileManFile, 3, # os.path.join(self._logDir, self._fileManFile + ".custom"), # os.path.join(self._logDir, self._fileManFile + ".customlog")) expectConn = VistATestClientFactory.createVistATestClient(self._system, namespace=self._namespace) if not expectConn: return FileManGlobalAttributes.listFileManFileAttributes(expectConn, self._fileManFile, 1, os.path.join(self._logDir, self._fileManFile + ".schema"), os.path.join(self._logDir, self._fileManFile + ".log"))
def _createTestClient(self): testClientConfig = self._config['VistA_Connection'] system = testClientConfig['system'] namespace = testClientConfig.get('namespace', DEFAULT_NAMESPACE) username = testClientConfig.get('username', None) password = testClientConfig.get('password', None) prompt = testClientConfig.get('prompt', None) return VistATestClientFactory.createVistATestClient( system, prompt=prompt, namespace=namespace, instance=self._instance, username=username, password=password)
connection.expect("OK, ARE YOU SURE YOU WANT TO KILL OFF THE EXISTING") connection.send("YES\r") connection.expect("DO YOU THEN WANT TO \'RE-CROSS-REFERENCE\'\?") connection.send("YES\r") connection.expect("Select UTILITY OPTION:") connection.send("\r") connection.expect("Select OPTION:") connection.send("\r") def __reindexKernelRPCParameterFile__(self): self.__reindexFile__("8989.3") # kernel system parameters self.__reindexFile__("8994.1") # RPC broker site parameters if __name__ == '__main__': parser = argparse.ArgumentParser(description='Setup Domain Name') parser.add_argument('-N', dest='DomainName', help='Domain Name') #parser.add_argument('-a', dest="Add", help="Add a new volume set") parser.add_argument('-m', required=True, dest="mumpsSystem", choices='12', help="1. Cache, 2. GTM") parser.add_argument('-l', required=True, dest="logFile", help="where to store the log file") result = vars(parser.parse_args()); print (result) expectConn = None system = int(result['mumpsSystem']) expectConn = VistATestClientFactory.createVistATestClient(system) if not expectConn: sys.exit(-1) domain = CreateNewDomain(system, expectConn, result['DomainName'], result['logFile']) domain.run()
def testFindoutSystemManagerDuz(): expectConn = None expectConn = VistATestClientFactory.createVistATestClient(1) if not expectConn: sys.exit(-1) findoutSystemManagerDuz(expectConn, "TESTUSER,SIXTY")