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" | 104 » public_subscription: "projects/luci-milo/subscriptions/buildbot-public" |
105 » internal_topic: "projects/luci-milo/subscriptions/buildbot-private" | 105 » internal_subscription: "projects/luci-milo/subscriptions/buildbot-privat
e" |
106 } | 106 } |
107 ` | 107 ` |
108 | 108 |
109 var bbAclConfigs = map[string]memcfg.ConfigSet{ | 109 var bbAclConfigs = map[string]memcfg.ConfigSet{ |
110 "services/luci-milo": { | 110 "services/luci-milo": { |
111 "settings.cfg": internalConfig, | 111 "settings.cfg": internalConfig, |
112 }, | 112 }, |
113 } | 113 } |
OLD | NEW |