Unit Tests for the Problem List Package

Change-Id: I32a33319702997752c6841951d6e661d3a4acc3a
Fix Unit Tests for the Problem List package

- Kept only tests that exercise the RPC Broker calls
- Fixed transactional behavior according to the GT.M rules
Note: These tests assume the VistA instance has been configured as per the
functional tests procedure (http://review.code.osehra.org/#/c/125). They
expect Doctor Robert Alexander and a clinic have already been inserted.

Change-Id: Ie15cb1981390f4250e9e870d12bff691190cd5f0
EHN: Munit Test for Scheduling SDAPI

Munit Test cases for SDAPI under scheduling package

Change-Id: I0847318b2dd4db652508fd89271e69e97fa0dede
Fix FunctionalTesting option name

Change the name of the option for the FunctionalTesting to match what is
being looked for in the if-statment a few lines later.

Change-Id: I812ccc039c1f1974d152e17c1ffaca55d0aab8db
Merge "Fix FunctionalTesting option name"
EHN: Modified OSEHRAHelper.py to support timeout

Also added support to be able to store the text output after the wait like pexpect module

Modified GlobalImport and RoutineImport to use the new interface.

Also make sure that log is written to disk in case of the interrupt

Depending on the IO speed of the machine, the process of importing
globals can timeout in some cases. Here we make this a configurable value in CMake.

Change-Id: I5b3582f39906de161bfbd61a88c89401576a375b
Merge "EHN: Modified OSEHRAHelper.py to support timeout"
Now checks for dependent routines

Quits silently if the refactored code is not installed

Problem List refactored API can be found at
http://code.osehra.org/journal/browse/publication/13

Fixed error messages in ZZRGUT and ZZRGUT5.
Change-Id: I77e620c324c5805e6a4d797d6922159ec482d55f
Fixed XINDEX Scripts to support FOIA 082412

New FOIA 082412 XINDEX routine added a new option
"Select INSTALL NAME:" that current XINDEX Scripts
does not support, modified XINDEX scripts to handle
this case

Also, new FOIA 082412 does not clean up the global
^XUTL("XQ",$J) which will be used to check IO in Cache,
added a line to clean up that gloabl before running XINDEX

Change-Id: Icc4d07aa7c705ed56b4253c0a7f350e6196ac7b5
EHN: Added Read/Write CrossReference to Mongodb

In CrossRefExternalize.py, added support to encode/decode
CrossRerefence objects like Routine, Package, Global, FileManFile, SubFile
using JSON format, also added support to read/write CrossReference objects
to Mongodb

Added CrossReferenceBuilder module to handle the logic to generate
CrossReference Python Object Module and modified the other module to use the new interface.

Also moved console logging logic to LogManager.py

Moved Visitor routines from WebpageGenerator.py to CrossReferenceConsole.py

Change-Id: Ib352b250a27a50e46cb10e5eb0c3a91c24518f25
Merge "EHN: Added Read/Write CrossReference to Mongodb"
Merge "Unit Tests for the Problem List Package"
Merge changes I77e620c3,Ie15cb198

* changes:
  Now checks for dependent routines
  Fix Unit Tests for the Problem List package
RAS functional test structure merge

removed the debug trace in FunctionalTest/CMakeLists.txt

Change-Id: Idb0465307ecf19636c52433fe2072209489c25ad
Clean up the logic related to UNKNOWN package

All routines/globals under UNKNOWN package should now move
to Uncategorized package

Change-Id: I2e41e223a80646f04434b3dccda9c7440ae28803
BUG: Fix pexpect sys path in OSEHRAHelper.py

The relative path "../pexpect" is interpreted different if running from the
ctest build directory, change to use absolute path

OSEHRA issue: http://issues.osehra.org/browse/VAF-15

Change-Id: I836b6515feb8977806e02a6e6db9918fb0d18a8f
Merge "Clean up the logic related to UNKNOWN package"
Update Problem List RAS Test

The 2012-08-24 FOIA introduced MSV-IV codes into the Problem List.  One of
the codes used also has a MSV-IV code at that number.

Change the catad function in PLActions.py to contain a multiwait with the
'Ok?' and 'Select 1-5' strings.  If the 'Select 1-5' string is found,
select the first option and have 4 returns in the write string.  Otherwise, the
original write statement should be used.

Change-Id: I9371427195b2908f2133d3ce82f43b417e6db8c0
Further updates to RAS_Pl_test

Remove the '?' from the multiwait in the catad function.  It is a regular
expression special character.  It causes the first string to match either
'O' or 'Ok', which always matched due to the capitalized 'STOP' in the
output.

Change the second potential match to "STOP or Select' to remove the number
range dependency.

Add another return to the end of the write command within the if statment.

Change-Id: Ib04671e9fd1bae51ae8d729fcb77ee11c1935a8c
Update PostImportsetupScript for new FOIA

With the release of the 26-08-2012 FOIA, the PostImportSetupScript failed
while running on GT.M. Cause was determined to be that the accompanying
Volume Set changed from FOI to PLA, the value we used.

Change the PostImportSetupScript to no longer use a long string to set the
volume set, but to have a multiwait.  The multiwait should determine if
the volume set is new ('Are you adding') or old ('VOLUME SET') and answer
accordingly.

JIRA Issue:  http://issues.osehra.org/browse/VAF-18

Change-Id: If43e3e9a024d86020ea5f0562fb9f4677f1ef83a