Return-Path: X-Original-To: apmail-aurora-reviews-archive@minotaur.apache.org Delivered-To: apmail-aurora-reviews-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9D6E111E50 for ; Wed, 21 May 2014 02:17:46 +0000 (UTC) Received: (qmail 4765 invoked by uid 500); 21 May 2014 02:17:46 -0000 Delivered-To: apmail-aurora-reviews-archive@aurora.apache.org Received: (qmail 4728 invoked by uid 500); 21 May 2014 02:17:46 -0000 Mailing-List: contact reviews-help@aurora.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@aurora.incubator.apache.org Delivered-To: mailing list reviews@aurora.incubator.apache.org Received: (qmail 4720 invoked by uid 99); 21 May 2014 02:17:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 May 2014 02:17:46 +0000 X-ASF-Spam-Status: No, hits=-1998.5 required=5.0 tests=ALL_TRUSTED,HTML_MESSAGE,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 21 May 2014 02:17:46 +0000 Received: (qmail 3145 invoked by uid 99); 21 May 2014 02:17:21 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 May 2014 02:17:21 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 9AE071D9248; Wed, 21 May 2014 02:17:13 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============4679689806396410674==" MIME-Version: 1.0 Subject: Re: Review Request 21739: Add a test to catch regressions in scheduler_client connect_scheduler. From: "Joe Smith" To: "Mark Chu-Carroll" , "Kevin Sweeney" Cc: "Aurora" , "Joe Smith" Date: Wed, 21 May 2014 02:17:13 -0000 Message-ID: <20140521021713.21125.73539@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Joe Smith" X-ReviewGroup: Aurora X-ReviewRequest-URL: https://reviews.apache.org/r/21739/ X-Sender: "Joe Smith" References: <20140521013447.21125.43116@reviews.apache.org> In-Reply-To: <20140521013447.21125.43116@reviews.apache.org> Reply-To: "Joe Smith" X-ReviewRequest-Repository: aurora X-Virus-Checked: Checked by ClamAV on apache.org --===============4679689806396410674== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit > On May 20, 2014, 6:34 p.m., Mark Chu-Carroll wrote: > > src/main/python/apache/aurora/client/api/scheduler_client.py, line 87 > > > > > > Not necessary, but you could just use a patch in the test, instead of changing this. > > > > > > I'm happy to, but kts has suggested I use this (more explicit) method instead. I kinda appreciate this more explicit call out as well, mind if I hang tight for his opinion? - Joe ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/21739/#review43567 ----------------------------------------------------------- On May 20, 2014, 4:57 p.m., Joe Smith wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/21739/ > ----------------------------------------------------------- > > (Updated May 20, 2014, 4:57 p.m.) > > > Review request for Aurora, Kevin Sweeney and Mark Chu-Carroll. > > > Bugs: AURORA-453 > https://issues.apache.org/jira/browse/AURORA-453 > > > Repository: aurora > > > Description > ------- > > Add a test to catch regressions in scheduler_client connect_scheduler. > > Tested with the previous diff found in https://reviews.apache.org/r/21735/ > > > [tw-172-25-139-200 aurora (master)]$ ./pants ./src/test/python/apache/aurora/client/api:scheduler_client > > def _connect_scheduler(host, port, clock=time): > > transport = THttpClient('http://%s:%s/api' % (host, port)) > E TypeError: 'module' object is not callable > > /var/folders/kk/_7jrv7jd0095tg5x9w1qd8mw0000gp/T/tmphtP8nk/apache/aurora/client/api/scheduler_client.py:88: TypeError > ======================================================================================================================================= 1 failed, 47 passed, 1 skipped in 4.44 seconds ======================================================================================================================================= > src.test.python.apache.aurora.client.api.scheduler_client ..... FAILURE > > > Diffs > ----- > > src/main/python/apache/aurora/client/api/scheduler_client.py c0089f6911e704a3f6e918ecaf6a8690c532a81f > src/test/python/apache/aurora/client/api/BUILD f0fa58fe7beec803f69f1f34c826e7ca0e0b177d > src/test/python/apache/aurora/client/api/test_scheduler_client.py 7bf2c327723833b547da0b09ba5ad9373a991ef4 > > Diff: https://reviews.apache.org/r/21739/diff/ > > > Testing > ------- > > [tw-172-25-139-200 aurora (master)]$ ./pants ./src/test/python/apache/aurora/client/api:scheduler_client > Build operating on targets: OrderedSet([PythonTests(src/test/python/apache/aurora/client/api/BUILD:scheduler_client)]) > ==================================================================================================================================================== test session starts ===================================================================================================================================================== > platform darwin -- Python 2.6.8 -- py-1.4.20 -- pytest-2.5.2 > plugins: cov > collected 48 items / 1 skipped > > src/test/python/apache/aurora/client/api/test_scheduler_client.py ................................................ > > ============================================================================================================================================ 48 passed, 1 skipped in 4.53 seconds ============================================================================================================================================ > src.test.python.apache.aurora.client.api.scheduler_client ..... SUCCESS > > > Thanks, > > Joe Smith > > --===============4679689806396410674==--