Remove legacy distribution. Change-Id: I0652f606efb99a4c8bcb06df8418413c3cc68d8c Signed-off-by: Ed Warnicke <eaw@cisco.com>
Bulk-add copyright headers to java files Change-Id: I8c23739a21f3f6cecb138f62a54efbabf03b9c55 Signed-off-by: Robert Varga <rovarga@cisco.com>
This sanity test is sporatically failing in Jenkins for no good reason. Reverting to restabalize Revert "Bug 116 - Revisit SanityTest" This reverts commit effdf86b58e39060b75e6090596b123ec6e8ef69. Change-Id: Iff90bdb275681451952b9ab21eb0d04c07786be2 Signed-off-by: Ed Warnicke <eaw@cisco.com>
Bug 116 - Revisit SanityTest - Sanity test is now an integration test - Introduce maven-controller-plugin to handle startup & shutdown of controller process and run away processes - Fix run.bat issue with -start option Change-Id: I4489f2f581561377da8afe103291fbc9f1bdf6f0 Signed-off-by: Prasanth Pallamreddy <ppallamr@cisco.com>
Changing the file names from run.sh/run.bat to runsanity.sh/runsanity.bat to make it explicit. A lot of human errors were made due to the identical name to the run.sh under target. Change-Id: Ic8289d22ba3dd7fec004a9421eac3fbd978fc5fb Signed-off-by: Madhu Venugopal <mavenugo@gmail.com>
Make the sanity test countup limit a constant and set it to 120 Also add some additional output indicating how long we've been tryign to start. Change-Id: I02778bdbee6b9778249cae318debff360ca89a7a Signed-off-by: Ed Warnicke <eaw@cisco.com>
Slight fix to actually handle exception in Sanitytest. Actually handle Thread.sleep InteruptException Change-Id: I43ed0d976da336cfd71071e1d4196a24b031e01b Signed-off-by: Ed Warnicke <eaw@cisco.com>
Add code for working sanity test in windows. Refactor application windows batch file to avoid delayed execution issues. Add windows batch file to run sanity test. Refactor sanity test class to call windows batch file properly. Refactor activator class to close System.out stream before exiting so that ProcessBuilder detects the exit. Refactor to first check at 10 seconds and then recheck every second if bundles are still in the STARTING state. Refactor to inherit IO and add limit of 60 retries. And fix style errors Change-Id: Ifa4d78ebfcf0eeaaccf99e56e84a88d33377f0fa Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
Reduce the fragility of the Sanity Test by not trying to access anything outside the current project Change-Id: I4f563ae82becde73ff412aeddc159cf7c7051433 Signed-off-by: Moiz Raja <moraja@cisco.com>
Sanity test to verify that the bundles that are included as plugins in the controller load properly Change-Id: Id472ab9f17f7a604e473177096b8a5045af913d3 Signed-off-by: Moiz Raja <moraja@cisco.com>
Revert "Integrate the Distribution Sanity Test with the build" It failed merge the patch is not behaving well. This reverts commit d78e985bc4ed590407c8c7800ba796d5ea55aa6c. Change-Id: Id2d3a6215f7373165217ad92dfda7a4e9b07d7d8 Signed-off-by: Giovanni Meo <gmeo@cisco.com>
Integrate the Distribution Sanity Test with the build Added the sanity test to the build. The sanity test plugin is built but not added to the distribution. In the package phase the test is executed and if the test fails (that is finds modules that are not active or resolved) then the build fails Change-Id: Iac8831811e6bf004dc0219043d1b8e23ffbfd33e Signed-off-by: Moiz Raja <moraja@cisco.com>
Simple Sanity Test to validate that all the bundles in a distribution are active and resolved The idea behind the Sanity Test is to ultimately fail a build when the test fails. The test would launch run.sh but with a slightly modified config.ini where the sanitytest bundle would be injected as a framework bundle. The test waits for 30 seconds for the container to finish loading all the bundles. It then gets all the bundles from the BundleContext and checks if they are ACTIVE or RESOLVED. If they are neither it prints out the name of the bundle and it's state and returns an error code. Change-Id: Ia6905318f1cf63e852791ba107193094a83fddf1 Signed-off-by: Moiz Raja <moraja@cisco.com>