Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id AD61DE00D89; Fri, 10 Jun 2016 08:51:28 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.220.53 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 681BFE00CE6 for ; Fri, 10 Jun 2016 08:51:24 -0700 (PDT) Received: by mail-pa0-f53.google.com with SMTP id bz2so24642506pad.1 for ; Fri, 10 Jun 2016 08:51:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=vmaKWc+1P4PFU1rm8jiNMM6YRH+dnHb6JGOJx1PC1xk=; b=NJ07RTZGcZHPUnMLmXYngOCRZHMZoJ1Y899+7J7gMhfPGKUHSyHLtkBIudtUGE1ieB PtPzlMJAoHdd2mXwt6GVTte6mV03c58R1bpe8B1FQmlhx2NUzuR76dhuklSnWhJBV5o4 RCo2koaJd/lYcd6yMzYod5HqFQXdqKIGXs7lcTriTnTHEeGSFKoBWWw9gQWdtfD6qfqG p+FInQHKTnC1Fc6YiCZ5TxF/6jQWHPlxeKyRhi1i7jMbLhNBhJa1MKX4eC28MWDTwNvU gFBEN9uuk60mY32riY46nOv3C8LSMq/PIMEhwbyShI7hzcSt7S9dmATZwumSS4Q2qF72 vn/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vmaKWc+1P4PFU1rm8jiNMM6YRH+dnHb6JGOJx1PC1xk=; b=DzSLOHX1fPYEDuLwSYYdiyjLbdOVsfNqLudrfNQp6Zk8yc43qSqPfmBkgUNCrfr9Wo 5bytFNWb0pf36aM0VzwjyRB9vWxTdrq5rqMj9wch8hal1dJhFAAmqiWE1G9mp8wNcbIt LVnajhZkoW3mSGPZJ4V93QB5RxO+mnZfPawT6cIVKa1PT/WWgmTsBERC6IG3hzxVdrq+ RzThz2KstjQxv4dK5XLj2Qntl5bqzco0+S6dCR8wAR2bGWstO3hoQDX7noWb+0QeNh1U 0POJMMymdc8onGPqnknSWllhzXdCxZ+UfvHSjKdPtfgGn70XYLgsUG/1JG1lkSYYAF3/ BE2Q== X-Gm-Message-State: ALyK8tI6cbDHDX+K6rlsm1tk13TwYptQRNnof4KUuMWhhFCkCMDcZheXaspgCGMqZlX0PjgD X-Received: by 10.66.145.35 with SMTP id sr3mr2948481pab.82.1465573884360; Fri, 10 Jun 2016 08:51:24 -0700 (PDT) Received: from orion.ger.corp.intel.com (fmdmzpr04-ext.fm.intel.com. [192.55.55.39]) by smtp.gmail.com with ESMTPSA id a88sm18621543pfc.71.2016.06.10.08.51.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Jun 2016 08:51:23 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Fri, 10 Jun 2016 16:51:18 +0100 Message-Id: <1465573878-10925-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [PATCH] toaster: selenium tests Update unique custom image string and fix import X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2016 15:51:28 -0000 - Update the string for recognising a duplicate image recipe - Fix an incorrect relative import Signed-off-by: Michael Wood --- bitbake/lib/toaster/tests/browser/test_builddashboard_page.py | 2 +- bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/toaster/tests/browser/test_builddashboard_page.py b/bitbake/lib/toaster/tests/browser/test_builddashboard_page.py index 5e08749..0d39abb 100644 --- a/bitbake/lib/toaster/tests/browser/test_builddashboard_page.py +++ b/bitbake/lib/toaster/tests/browser/test_builddashboard_page.py @@ -22,7 +22,7 @@ from django.core.urlresolvers import reverse from django.utils import timezone -from selenium_helpers import SeleniumTestCase +from tests.browser.selenium_helpers import SeleniumTestCase from orm.models import Project, Release, BitbakeVersion, Build, LogMessage from orm.models import Layer, Layer_Version, Recipe, CustomImageRecipe diff --git a/bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py b/bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py index 8906cb2..ab5a8e6 100644 --- a/bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py +++ b/bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py @@ -25,6 +25,7 @@ from tests.browser.selenium_helpers import SeleniumTestCase from orm.models import BitbakeVersion, Release, Project, ProjectLayer, Layer from orm.models import Layer_Version, Recipe, CustomImageRecipe + class TestNewCustomImagePage(SeleniumTestCase): CUSTOM_IMAGE_NAME = 'roopa-doopa' @@ -140,7 +141,7 @@ class TestNewCustomImagePage(SeleniumTestCase): self._create_custom_image(self.recipe.name) element = self.wait_until_visible('#invalid-name-help') self.assertRegexpMatches(element.text.strip(), - 'recipe with this name already exists') + 'image with this name already exists') def test_new_duplicates_project_image(self): """ -- 2.7.4