From patchwork Thu Aug 30 03:21:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael-Doyle Hudson X-Patchwork-Id: 11035 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 417D023EFF for ; Thu, 30 Aug 2012 03:21:14 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id BE30BA18A9C for ; Thu, 30 Aug 2012 03:20:39 +0000 (UTC) Received: by iafj25 with SMTP id j25so2274775iaf.11 for ; Wed, 29 Aug 2012 20:21:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :content-type:mime-version:x-launchpad-project:x-launchpad-branch :x-launchpad-message-rationale:x-launchpad-branch-revision-number :x-launchpad-notification-type:to:from:subject:message-id:date :reply-to:sender:errors-to:precedence:x-generated-by :x-launchpad-hash:x-gm-message-state; bh=wpcpf7yMQYmQHPejplhB7mmuNNMB0xx+TpE0CgXg6RI=; b=LMlZeHcoMZwc9+F7L+8ymX1Zt5bGqqopF9TfKq6vVTfvoNwxocWk+LVMtbtpHPITB9 XBEBwGm012gPiUvsrdOBrnnzgdlu16DVzoznsTNLNB2mavGpcIGlUYRLdizkDcCJeGRy RKcveBS81IH9oCwJsPjlNcV1Y9W0NkkWGH/JAfDb2hLZdHWICCNOoloOrPf5pDFoqW69 7FxCgX34LxIeU8Ymrr6qUlsCjLmoq4QOmIMg/NYPnGt7Lj5bYn++o1nYdrSTwPHyAl9y 2UD2T+x59+J91VPkucFK46rpRdnZQjbfLlljBVJYUEyeP5Ze5jdRtonKzB5vShnPO1An lfPg== Received: by 10.50.207.106 with SMTP id lv10mr4095885igc.0.1346296873206; Wed, 29 Aug 2012 20:21:13 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp119560igc; Wed, 29 Aug 2012 20:21:12 -0700 (PDT) Received: by 10.180.86.3 with SMTP id l3mr44701346wiz.16.1346296871355; Wed, 29 Aug 2012 20:21:11 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id a7si1177129wiy.10.2012.08.29.20.21.10 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 29 Aug 2012 20:21:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1T6vJe-0002BB-FL for ; Thu, 30 Aug 2012 03:21:10 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 3EE2CE00A6 for ; Thu, 30 Aug 2012 03:21:10 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-scheduler X-Launchpad-Branch: ~linaro-validation/lava-scheduler/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 208 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-scheduler/trunk] Rev 208: fix the tests Message-Id: <20120830032110.7226.83356.launchpad@ackee.canonical.com> Date: Thu, 30 Aug 2012 03:21:10 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="15864"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 63b2253d121a7b24fa106aa1ebf38aa31d28d5ba X-Gm-Message-State: ALoCoQlhczZna9BxsXYEs7TdHi8HDtVGfQ9UrNUYr1yMFXCDjYkueBeTvmFN2GVNWCx4Mbfrxyu7 ------------------------------------------------------------ revno: 208 committer: Michael Hudson-Doyle branch nick: trunk timestamp: Thu 2012-08-30 15:20:40 +1200 message: fix the tests modified: lava_scheduler_app/tests.py --- lp:lava-scheduler https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk You are subscribed to branch lp:lava-scheduler. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk/+edit-subscription === modified file 'lava_scheduler_app/tests.py' --- lava_scheduler_app/tests.py 2012-03-15 01:41:32 +0000 +++ lava_scheduler_app/tests.py 2012-08-30 03:20:40 +0000 @@ -87,7 +87,7 @@ return device def make_job_data(self, actions=[], **kw): - data = {'actions': actions, 'timeout': 1} + data = {'actions': actions, 'timeout': 1, 'health_check': False} data.update(kw) if 'target' not in data and 'device_type' not in data: if DeviceType.objects.all(): @@ -375,7 +375,9 @@ def test_getBoardList(self): self.factory.make_device(hostname='panda01') - self.assertEqual(['panda01'], self.source.getBoardList()) + self.assertEqual( + [{'use_celery': False, 'hostname': 'panda01'}], + self.source.getBoardList()) def test_getJobForBoard_returns_json(self): device = self.factory.make_device(hostname='panda01')