Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 06C4CE0097C; Thu, 8 Dec 2016 10:43:03 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [74.125.82.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-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6A8D2E00546 for ; Thu, 8 Dec 2016 10:43:00 -0800 (PST) Received: by mail-wm0-f53.google.com with SMTP id f82so39678050wmf.1 for ; Thu, 08 Dec 2016 10:43:00 -0800 (PST) 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:in-reply-to:references; bh=BX+QTOr0qoCBVbwqLlJq9SGIkNugnqWrFpNlaFxfdjs=; b=eS4weMWFMfkBNf4y+7QxNjS8KkFwvaC1uBZxJPvZoRQBq672pE4ctBMCpFYARWfdC5 r5enCmXXovm3ulWtpyONiv/RIau5CQzO7p1DdtR3YCqSfk+0rj8pXo2FMsRlcxsFPTHE Eo3MTOXzt26VHKtuqet5gveDysQvgIbhCZZFu7qbMt5ankU7GVgU49lHAec8qqJxH3mI HT8yVY1lulG2Tlcg8r32Xu1FGSmQCordw5oyDbr7LvDZwBxvgIcJ5lEKFSboCdFAavxX VJ6+lF4EUfQH6YdcID/kMYX8U5GcOIwm18mMThhgCJpzJfqFxWHU98hWztwhLV/tJg/u tGCg== 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:in-reply-to :references; bh=BX+QTOr0qoCBVbwqLlJq9SGIkNugnqWrFpNlaFxfdjs=; b=AC1v5gzXxvgU+8J2ugQH+VeH2u3sxGveulIJCmZYix5sC+Pw3rZ9tjo+9V0uTEX2eC by2Z52jqwj+xSWOmfI4yrPz/Jz2KG6sp25EMpcW14jg+4aKtqZE6Z+4c7dT7bRt/2K8g EEwbjqF0IYx6HV7mfVT5k6lRr5YQjzLd3G1jKti3eBdq3faxwzkN34GbT5MXyaHu1gdJ 7XUhOgUHRKpdKkBe4fxBkw4rj/wm5u0sU8+2j3G74Oh2FoKhMEGe6W1SWcRvSR9N8wFJ grYjzaCqtwJTv57ItZiBOR1HLvBlzDG2C4sTKziM5rhpPxppS4KWnjtGbK0KSGQvfcQJ oaYA== X-Gm-Message-State: AKaTC03oYZhvKRzdEDN+8BZTstUa1fEgKVRSNHWTAJLFOQYaHMnyd23ripjvAnPF2wyFCo1c X-Received: by 10.28.105.194 with SMTP id z63mr3402823wmh.78.1481222580070; Thu, 08 Dec 2016 10:43:00 -0800 (PST) Received: from localhost.localdomain ([192.198.151.62]) by smtp.gmail.com with ESMTPSA id d64sm16637008wmh.3.2016.12.08.10.42.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Dec 2016 10:42:59 -0800 (PST) From: Michael Wood To: toaster@yoctoproject.org Date: Thu, 8 Dec 2016 18:42:50 +0000 Message-Id: <1481222571-17651-5-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1481222571-17651-1-git-send-email-michael.g.wood@intel.com> References: <1481222571-17651-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 4/5] toaster: js test Update js tests to use correct url for layer REST 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: Thu, 08 Dec 2016 18:43:03 -0000 Update js tests so that we use the new Layer REST API. Signed-off-by: Michael Wood --- bitbake/lib/toaster/toastergui/static/js/tests/test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bitbake/lib/toaster/toastergui/static/js/tests/test.js b/bitbake/lib/toaster/toastergui/static/js/tests/test.js index f3bf8d7..4a4c83f 100644 --- a/bitbake/lib/toaster/toastergui/static/js/tests/test.js +++ b/bitbake/lib/toaster/toastergui/static/js/tests/test.js @@ -5,6 +5,7 @@ QUnit.test("Layer alert notification", function(assert) { var layer = { "layerdetailurl":"/toastergui/project/1/layer/22", + "xhrLayerUrl":"/toastergui/xhr_layer/1/9", "vcs_url":"git://example.com/example.git", "detail":"[ git://example.com/example.git | master ]", "vcs_reference":"master", @@ -15,6 +16,7 @@ QUnit.test("Layer alert notification", function(assert) { var layerDepsList = [ { "layerdetailurl":"/toastergui/project/1/layer/9", + "xhrLayerUrl":"/toastergui/xhr_layer/1/9", "vcs_url":"git://example.com/example.git", "detail":"[ git://example.com/example.git | master ]", "vcs_reference":"master", @@ -23,6 +25,7 @@ QUnit.test("Layer alert notification", function(assert) { }, { "layerdetailurl":"/toastergui/project/1/layer/9", + "xhrLayerUrl":"/toastergui/xhr_layer/1/9", "vcs_url":"git://example.com/example.git", "detail":"[ git://example.com/example.git | master ]", "vcs_reference":"master", @@ -66,7 +69,8 @@ QUnit.test("Show notification", function(assert){ var layer = { "id": 1, "name": "meta-testing", - "layerdetailurl": "/toastergui/project/1/layer/1" + "layerdetailurl": "/toastergui/project/1/layer/1", + "xhrLayerUrl": "/toastergui/xhr_layer/1/1" }; QUnit.test("Add layer", function(assert){ -- 2.7.4