Description of problem: The drift.js script that is packaged in the samples directory of the CLI distro uses classes and methods that have gone through several iterations of renaming after the script was initially written. There are several errors in the script consequently. The script needs to be updated to use the current drift APIs. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
The script has been updated along with documented usage. master commit hash: cc717fc0ac9b891306738842910b026d3a485085 release_jon3.x commit hash: 6347cab2a33758186d8751d78633cfb9965b2f85
sample script ... no impact on runtime. lowering the priority.
tested as follows: used the inline usage example in drift.js * usage: * // generates a snapshot that includes all change sets belonging to the * // mydrift drift configuration. * createSnapshot(123, 'mydrift') * ---------- actual results ... rhqadmin@localhost:7080$ exec -f util.js rhqadmin@localhost:7080$ exec -f drift.js rhqadmin@localhost:7080$ createSnapshot(123, 'mydrift1') Wrapped java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 (<Unknown source>#71) createSnapshot(123, 'mydrift1') ^ rhqadmin@localhost:7080$ createSnapshot(123, 'drift1') Wrapped java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 (<Unknown source>#71) createSnapshot(123, 'drift1') ^ jsanda ... advice? is this the expected behavior?
Mike, the example in the source docs is just that. Do you have a drift definition named mydrift1? If not then the errors may in fact be expected.
Setting back to ON_QA and re-targeting for JBoss ON 3.2 release for verification.
As this is MODIFIED or ON_QA, setting milestone to ER1.
I think this was moved to ON_QA in error. My apologies. Moving back to ASSIGNED state and into ER02.
Moving into ER3 as didn't make it into ER2.
Moving into ER04 as not completed in ER03.
Moving to ER05 as missed the cutoff for ER04.
I have gone ahead and made some minor updates in the examples listed in the source code docs. The problem in comment 3 is due to the fact that the function was called using the example verbatim. Since the function takes as input a resource id and a drift definition name, I think (and hope) it is fairly obvious that the function arguments in the example are just that - examples and not actual values. release/jon3.2.x commit hash: 05715a631
Moving to ON_QA for test with new brew build.
Covered by automation and passing .. http://jenkins.jonqe.lab.eng.bos.redhat.com:9080/view/Core%20tests/job/rhq-core-cli-js-test/276/HTML_Report/?