| OLD | NEW |
| 1 // Copyright 2016 The LUCI Authors. All rights reserved. | 1 // Copyright 2016 The LUCI Authors. All rights reserved. |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
| 4 | 4 |
| 5 package frontend | 5 package frontend |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "fmt" | 8 "fmt" |
| 9 | 9 |
| 10 "github.com/luci/gae/impl/memory" | 10 "github.com/luci/gae/impl/memory" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 "Builder": &resp.Builder{ | 47 "Builder": &resp.Builder{ |
| 48 Name: "Sample Builder", | 48 Name: "Sample Builder", |
| 49 }, | 49 }, |
| 50 }, | 50 }, |
| 51 }, | 51 }, |
| 52 { | 52 { |
| 53 Description: "Basic Test with builds", | 53 Description: "Basic Test with builds", |
| 54 Data: templates.Args{ | 54 Data: templates.Args{ |
| 55 "Builder": &resp.Builder{ | 55 "Builder": &resp.Builder{ |
| 56 Name: "Sample Builder", | 56 Name: "Sample Builder", |
| 57 MachinePool: &resp.MachinePool{ |
| 58 Total: 15, |
| 59 Disconnected: 13, |
| 60 Idle: 5, |
| 61 Busy: 8, |
| 62 }, |
| 57 CurrentBuilds: []*resp.BuildSummary{ | 63 CurrentBuilds: []*resp.BuildSummary{ |
| 58 { | 64 { |
| 59 Link: &resp.Link{ | 65 Link: &resp.Link{ |
| 60 URL: "https://
some.url/path", | 66 URL: "https://
some.url/path", |
| 61 Label: "Some cur
rent build", | 67 Label: "Some cur
rent build", |
| 62 }, | 68 }, |
| 63 Revision: "deadbeef", | 69 Revision: "deadbeef", |
| 64 }, | 70 }, |
| 65 }, | 71 }, |
| 66 PendingBuilds: []*resp.BuildSummary{ | 72 PendingBuilds: []*resp.BuildSummary{ |
| (...skipping 12 matching lines...) Expand all Loading... |
| 79 Label: "Some cur
rent build", | 85 Label: "Some cur
rent build", |
| 80 }, | 86 }, |
| 81 Revision: "deadbeef", | 87 Revision: "deadbeef", |
| 82 }, | 88 }, |
| 83 }, | 89 }, |
| 84 }, | 90 }, |
| 85 }, | 91 }, |
| 86 }, | 92 }, |
| 87 } | 93 } |
| 88 } | 94 } |
| OLD | NEW |