aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake
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
parent6f3d33c2931033dc5381cc67fe2c40a4c296fdca (diff)
downloadopenembedded-core-contrib-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')
-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 @@
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){