Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Side by Side Diff: appengine/swarming/elements/res/imp/botpage/bot-page-demo.html

Issue 2372553003: Show bootstrap and server bot_code version (Closed) Base URL: git@github.com:luci/luci-py@bootstrap
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!-- 1 <!--
2 Copyright 2016 The LUCI Authors. All rights reserved. 2 Copyright 2016 The LUCI Authors. All rights reserved.
3 Use of this source code is governed under the Apache License, Version 2.0 3 Use of this source code is governed under the Apache License, Version 2.0
4 that can be found in the LICENSE file. 4 that can be found in the LICENSE file.
5 5
6 --> 6 -->
7 <!DOCTYPE html> 7 <!DOCTYPE html>
8 <html> 8 <html>
9 <head> 9 <head>
10 <title>bot-page Demo</title> 10 <title>bot-page Demo</title>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 var permissions = { 67 var permissions = {
68 cancel_task: true, 68 cancel_task: true,
69 delete_bot: true, 69 delete_bot: true,
70 terminate_bot: true, 70 terminate_bot: true,
71 }; 71 };
72 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/permissions/, JSON.stringify(permissions)); 72 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/permissions/, JSON.stringify(permissions));
73 server.respondWith("GET", /^\/api\/swarming\/v1\/server\/permissions/, JSON. stringify(permissions)); 73 server.respondWith("GET", /^\/api\/swarming\/v1\/server\/permissions/, JSON. stringify(permissions));
74 74
75 var details = { 75 var details = {
76 server_version: "1234-deadbeef", 76 server_version: "1234-deadbeef",
77 bot_version: "abcdoeraymeyouandme",
77 }; 78 };
78 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/details/, JSON .stringify(details)); 79 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/details/, JSON .stringify(details));
79 server.respondWith("GET", /^\/api\/swarming\/v1\/server\/details/, JSON.stri ngify(details)); 80 server.respondWith("GET", /^\/api\/swarming\/v1\/server\/details/, JSON.stri ngify(details));
80 81
81 var deleteRequest = function(request) { 82 var deleteRequest = function(request) {
82 console.log("Deleting", request); 83 console.log("Deleting", request);
83 if (!request.requestHeaders.authorization) { 84 if (!request.requestHeaders.authorization) {
84 sinon.log("You must be logged in (check your Oauth?)"); 85 sinon.log("You must be logged in (check your Oauth?)");
85 request.respond(403, {}, "You must be logged in (check your Oauth?)"); 86 request.respond(403, {}, "You must be logged in (check your Oauth?)");
86 return; 87 return;
(...skipping 22 matching lines...) Expand all
109 </head> 110 </head>
110 <body> 111 <body>
111 112
112 <bot-page 113 <bot-page
113 bot_id="test-bot-001" 114 bot_id="test-bot-001"
114 client_id="20770472288-t5smpbpjptka4nd888fv0ctd23ftba2o.apps.googleusercontent .com"> 115 client_id="20770472288-t5smpbpjptka4nd888fv0ctd23ftba2o.apps.googleusercontent .com">
115 </bot-page> 116 </bot-page>
116 117
117 </body> 118 </body>
118 </html> 119 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698