Repository: falcon Updated Branches: refs/heads/master 8cbc33e0d -> c75653072
FALCON-1265 ListProcessInstancesTest test fixes. Contributed by Raghav Kumar Gautam Project: http://git-wip-us.apache.org/repos/asf/falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/falcon/commit/ec3e889a Tree: http://git-wip-us.apache.org/repos/asf/falcon/tree/ec3e889a Diff: http://git-wip-us.apache.org/repos/asf/falcon/diff/ec3e889a Branch: refs/heads/master Commit: ec3e889a755247d3e9ea83f8fc3096118647aa60 Parents: 8cbc33e Author: Ruslan Ostafiychuk <[email protected]> Authored: Fri Jun 12 14:31:28 2015 +0300 Committer: Ruslan Ostafiychuk <[email protected]> Committed: Fri Jun 12 14:31:28 2015 +0300 ---------------------------------------------------------------------- falcon-regression/CHANGES.txt | 2 ++ .../falcon/regression/lineage/ListProcessInstancesTest.java | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/falcon/blob/ec3e889a/falcon-regression/CHANGES.txt ---------------------------------------------------------------------- diff --git a/falcon-regression/CHANGES.txt b/falcon-regression/CHANGES.txt index a1d77ab..58fedcc 100644 --- a/falcon-regression/CHANGES.txt +++ b/falcon-regression/CHANGES.txt @@ -351,6 +351,8 @@ Trunk (Unreleased) FALCON-681 delete duplicate feed retention test from falcon regression (SamarthG) BUG FIXES + FALCON-1265 ListProcessInstancesTest test fixes (Raghav Kumar Gautam via Ruslan Ostafiychuk) + FALCON-1267 Fix Processsetuptest#testinoutstepdropdownfeeds (Namit Maheshwari via Raghav Kumar Gautam) FALCON-1264 Fix validity parsing in ProcessWizardPage (Paul Isaychuk via Ruslan Ostafiychuk) http://git-wip-us.apache.org/repos/asf/falcon/blob/ec3e889a/falcon-regression/merlin/src/test/java/org/apache/falcon/regression/lineage/ListProcessInstancesTest.java ---------------------------------------------------------------------- diff --git a/falcon-regression/merlin/src/test/java/org/apache/falcon/regression/lineage/ListProcessInstancesTest.java b/falcon-regression/merlin/src/test/java/org/apache/falcon/regression/lineage/ListProcessInstancesTest.java index a28472b..f35e12d 100644 --- a/falcon-regression/merlin/src/test/java/org/apache/falcon/regression/lineage/ListProcessInstancesTest.java +++ b/falcon-regression/merlin/src/test/java/org/apache/falcon/regression/lineage/ListProcessInstancesTest.java @@ -172,12 +172,12 @@ public class ListProcessInstancesTest extends BaseTestClass { //use start option without numResults. 10 instances expected r = prism.getProcessHelper().listInstances(processName, "start=" + startTime, null); - InstanceUtil.validateResponse(r, 10, 1, 0, 9, 0); + InstanceUtil.validateResponse(r, 10, 3, 0, 7, 0); //use start option with numResults value which is smaller then default. r = prism.getProcessHelper().listInstances(processName, "start=" + startTime + "&numResults=8", null); - InstanceUtil.validateResponse(r, 8, 0, 0, 8, 0); + InstanceUtil.validateResponse(r, 8, 3, 0, 5, 0); //use start option with numResults value greater then default. All 12 instances expected r = prism.getProcessHelper().listInstances(processName, @@ -242,6 +242,8 @@ public class ListProcessInstancesTest extends BaseTestClass { InstanceUtil.validateResponse(r, 1, 0, 0, 0, 1); //wait till new instances be RUNNING and total status count be stable + OozieUtil.createMissingDependencies(cluster, EntityType.PROCESS, processName, 0, 3); + OozieUtil.createMissingDependencies(cluster, EntityType.PROCESS, processName, 0, 4); InstanceUtil.waitTillInstanceReachState(clusterOC, processName, 3, CoordinatorAction.Status.RUNNING, EntityType.PROCESS, 3); @@ -300,7 +302,7 @@ public class ListProcessInstancesTest extends BaseTestClass { //only start, actual startTime, should get 10 most recent instances r = prism.getProcessHelper().listInstances(processName, "start=" + startTime, null); - InstanceUtil.validateResponse(r, 10, 1, 0, 9, 0); + InstanceUtil.validateResponse(r, 10, 3, 0, 7, 0); //only start, greater then actual startTime r = prism.getProcessHelper().listInstances(processName,
