[oe-commits] [bitbake] 13/14: toaster: js test Update js tests to use correct url for layer REST
git at git.openembedded.org
git at git.openembedded.org
Mon Dec 12 20:46:07 UTC 2016
rpurdie pushed a commit to branch master
in repository bitbake.
commit 81764ce3ebf0d2fcb3dc6965f6f07931d39e5524
Author: Michael Wood <michael.g.wood at intel.com>
AuthorDate: Fri Dec 9 16:52:54 2016 +0000
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.
Signed-off-by: Michael Wood <michael.g.wood at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/toaster/toastergui/static/js/tests/test.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/toaster/toastergui/static/js/tests/test.js b/lib/toaster/toastergui/static/js/tests/test.js
index f3bf8d7..4a4c83f 100644
--- a/lib/toaster/toastergui/static/js/tests/test.js
+++ b/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){
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list