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

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

Issue 2404883002: Add links to MP and resolve minor fixes (Closed)
Patch Set: Address Polymer comments 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 cancel_task: true, 73 cancel_task: true,
74 delete_bot: true, 74 delete_bot: true,
75 terminate_bot: true, 75 terminate_bot: true,
76 }; 76 };
77 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/permissions/, JSON.stringify(permissions)); 77 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/permissions/, JSON.stringify(permissions));
78 server.respondWith("GET", /^\/api\/swarming\/v1\/server\/permissions/, JSON. stringify(permissions)); 78 server.respondWith("GET", /^\/api\/swarming\/v1\/server\/permissions/, JSON. stringify(permissions));
79 79
80 var details = { 80 var details = {
81 server_version: "1234-deadbeef", 81 server_version: "1234-deadbeef",
82 bot_version: "abcdoeraymeyouandme", 82 bot_version: "abcdoeraymeyouandme",
83 machine_provider_template: "http://example.com#/leases/%s?foo=bar",
83 }; 84 };
84 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/details/, JSON .stringify(details)); 85 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/details/, JSON .stringify(details));
85 server.respondWith("GET", /^\/api\/swarming\/v1\/server\/details/, JSON.stri ngify(details)); 86 server.respondWith("GET", /^\/api\/swarming\/v1\/server\/details/, JSON.stri ngify(details));
86 87
87 var deleteRequest = function(request) { 88 var deleteRequest = function(request) {
88 console.log("Deleting", request); 89 console.log("Deleting", request);
89 if (!request.requestHeaders.authorization) { 90 if (!request.requestHeaders.authorization) {
90 sinon.log("You must be logged in (check your Oauth?)"); 91 sinon.log("You must be logged in (check your Oauth?)");
91 request.respond(403, {}, "You must be logged in (check your Oauth?)"); 92 request.respond(403, {}, "You must be logged in (check your Oauth?)");
92 return; 93 return;
(...skipping 22 matching lines...) Expand all
115 </head> 116 </head>
116 <body> 117 <body>
117 118
118 <bot-page 119 <bot-page
119 bot_id="test-bot-001" 120 bot_id="test-bot-001"
120 client_id="20770472288-t5smpbpjptka4nd888fv0ctd23ftba2o.apps.googleusercontent .com"> 121 client_id="20770472288-t5smpbpjptka4nd888fv0ctd23ftba2o.apps.googleusercontent .com">
121 </bot-page> 122 </bot-page>
122 123
123 </body> 124 </body>
124 </html> 125 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698