| 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 buildbot | 5 package buildbot |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "encoding/json" | 8 "encoding/json" |
| 9 "flag" | 9 "flag" |
| 10 "fmt" | 10 "fmt" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 }) | 94 }) |
| 95 _, err := getBuild(c, "fake", "fake", 1) | 95 _, err := getBuild(c, "fake", "fake", 1) |
| 96 So(err, ShouldResemble, errNotAuth) | 96 So(err, ShouldResemble, errNotAuth) |
| 97 }) | 97 }) |
| 98 }) | 98 }) |
| 99 } | 99 } |
| 100 | 100 |
| 101 var internalConfig = ` | 101 var internalConfig = ` |
| 102 buildbot: { | 102 buildbot: { |
| 103 internal_reader: "googlers" | 103 internal_reader: "googlers" |
| 104 public_topic: "projects/luci-milo/subscriptions/buildbot-public" |
| 105 internal_topic: "projects/luci-milo/subscriptions/buildbot-private" |
| 104 } | 106 } |
| 105 ` | 107 ` |
| 106 | 108 |
| 107 var bbAclConfigs = map[string]memcfg.ConfigSet{ | 109 var bbAclConfigs = map[string]memcfg.ConfigSet{ |
| 108 "services/luci-milo": { | 110 "services/luci-milo": { |
| 109 "settings.cfg": internalConfig, | 111 "settings.cfg": internalConfig, |
| 110 }, | 112 }, |
| 111 } | 113 } |
| OLD | NEW |