summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-12-09 16:52:54 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-12 20:44:54 +0000
commit92a9141208fea3548666f8aa672e8456a6b2f577 (patch)
treef6176c08718c870f90d603a9bc1191552e90bc0a /bitbake/lib/toaster
parent6f3d33c2931033dc5381cc67fe2c40a4c296fdca (diff)
downloadpoky-92a9141208fea3548666f8aa672e8456a6b2f577.tar.gz
bitbake: toaster: js test Update js tests to use correct url for layer REST
Update js tests so that we use the new Layer REST API. (Bitbake rev: 81764ce3ebf0d2fcb3dc6965f6f07931d39e5524) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/tests/test.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/tests/test.js b/bitbake/lib/toaster/toastergui/static/js/tests/test.js
index f3bf8d7733..4a4c83f4c9 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 @@
5QUnit.test("Layer alert notification", function(assert) { 5QUnit.test("Layer alert notification", function(assert) {
6 var layer = { 6 var layer = {
7 "layerdetailurl":"/toastergui/project/1/layer/22", 7 "layerdetailurl":"/toastergui/project/1/layer/22",
8 "xhrLayerUrl":"/toastergui/xhr_layer/1/9",
8 "vcs_url":"git://example.com/example.git", 9 "vcs_url":"git://example.com/example.git",
9 "detail":"[ git://example.com/example.git | master ]", 10 "detail":"[ git://example.com/example.git | master ]",
10 "vcs_reference":"master", 11 "vcs_reference":"master",
@@ -15,6 +16,7 @@ QUnit.test("Layer alert notification", function(assert) {
15 var layerDepsList = [ 16 var layerDepsList = [
16 { 17 {
17 "layerdetailurl":"/toastergui/project/1/layer/9", 18 "layerdetailurl":"/toastergui/project/1/layer/9",
19 "xhrLayerUrl":"/toastergui/xhr_layer/1/9",
18 "vcs_url":"git://example.com/example.git", 20 "vcs_url":"git://example.com/example.git",
19 "detail":"[ git://example.com/example.git | master ]", 21 "detail":"[ git://example.com/example.git | master ]",
20 "vcs_reference":"master", 22 "vcs_reference":"master",
@@ -23,6 +25,7 @@ QUnit.test("Layer alert notification", function(assert) {
23 }, 25 },
24 { 26 {
25 "layerdetailurl":"/toastergui/project/1/layer/9", 27 "layerdetailurl":"/toastergui/project/1/layer/9",
28 "xhrLayerUrl":"/toastergui/xhr_layer/1/9",
26 "vcs_url":"git://example.com/example.git", 29 "vcs_url":"git://example.com/example.git",
27 "detail":"[ git://example.com/example.git | master ]", 30 "detail":"[ git://example.com/example.git | master ]",
28 "vcs_reference":"master", 31 "vcs_reference":"master",
@@ -66,7 +69,8 @@ QUnit.test("Show notification", function(assert){
66var layer = { 69var layer = {
67 "id": 1, 70 "id": 1,
68 "name": "meta-testing", 71 "name": "meta-testing",
69 "layerdetailurl": "/toastergui/project/1/layer/1" 72 "layerdetailurl": "/toastergui/project/1/layer/1",
73 "xhrLayerUrl": "/toastergui/xhr_layer/1/1"
70}; 74};
71 75
72QUnit.test("Add layer", function(assert){ 76QUnit.test("Add layer", function(assert){