Return-Path: X-Original-To: apmail-falcon-commits-archive@minotaur.apache.org Delivered-To: apmail-falcon-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 476D11882A for ; Fri, 12 Jun 2015 11:36:45 +0000 (UTC) Received: (qmail 29342 invoked by uid 500); 12 Jun 2015 11:36:45 -0000 Delivered-To: apmail-falcon-commits-archive@falcon.apache.org Received: (qmail 29307 invoked by uid 500); 12 Jun 2015 11:36:45 -0000 Mailing-List: contact commits-help@falcon.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.apache.org Delivered-To: mailing list commits@falcon.apache.org Received: (qmail 29297 invoked by uid 99); 12 Jun 2015 11:36:45 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jun 2015 11:36:45 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B6F0BE04B0; Fri, 12 Jun 2015 11:36:44 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: rostafiychuk@apache.org To: commits@falcon.apache.org Date: Fri, 12 Jun 2015 11:36:44 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/3] falcon git commit: FALCON-1265 ListProcessInstancesTest test fixes. Contributed by Raghav Kumar Gautam 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 Authored: Fri Jun 12 14:31:28 2015 +0300 Committer: Ruslan Ostafiychuk 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,