OLD | NEW |
1 // Copyright 2015 The LUCI Authors. All rights reserved. | 1 // Copyright 2015 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 services | 5 package services |
6 | 6 |
7 import ( | 7 import ( |
8 "testing" | 8 "testing" |
9 | 9 |
10 "github.com/luci/luci-go/logdog/api/config/svcconfig" | 10 "github.com/luci/luci-go/logdog/api/config/svcconfig" |
(...skipping 24 matching lines...) Expand all Loading... |
35 }) | 35 }) |
36 | 36 |
37 Convey(`When logged in as a service, can retrieve the configurat
ion.`, func() { | 37 Convey(`When logged in as a service, can retrieve the configurat
ion.`, func() { |
38 env.JoinGroup("services") | 38 env.JoinGroup("services") |
39 | 39 |
40 cr, err := svr.GetConfig(c, nil) | 40 cr, err := svr.GetConfig(c, nil) |
41 So(err, ShouldBeRPCOK) | 41 So(err, ShouldBeRPCOK) |
42 So(cr, ShouldResemble, &logdog.GetConfigResponse{ | 42 So(cr, ShouldResemble, &logdog.GetConfigResponse{ |
43 ConfigServiceUrl: "test://example.com", | 43 ConfigServiceUrl: "test://example.com", |
44 ConfigSet: "services/app", | 44 ConfigSet: "services/app", |
45 » » » » ServiceConfigPath: svcconfig.ServiceConfigFilena
me, | 45 » » » » ServiceConfigPath: svcconfig.ServiceConfigPath, |
46 ConfigServiceHost: "example.com", | 46 ConfigServiceHost: "example.com", |
47 }) | 47 }) |
48 }) | 48 }) |
49 }) | 49 }) |
50 } | 50 } |
OLD | NEW |