| Index: logdog/appengine/coordinator/endpoints/services/getConfig_test.go
|
| diff --git a/logdog/appengine/coordinator/endpoints/services/getConfig_test.go b/logdog/appengine/coordinator/endpoints/services/getConfig_test.go
|
| index 618ade48b4b69157b83faf573700db1aea36e58d..3a4319548e945a630fb8f63658fe207857a5e5e8 100644
|
| --- a/logdog/appengine/coordinator/endpoints/services/getConfig_test.go
|
| +++ b/logdog/appengine/coordinator/endpoints/services/getConfig_test.go
|
| @@ -10,6 +10,7 @@ import (
|
| "github.com/luci/luci-go/logdog/api/config/svcconfig"
|
| "github.com/luci/luci-go/logdog/api/endpoints/coordinator/services/v1"
|
| ct "github.com/luci/luci-go/logdog/appengine/coordinator/coordinatorTest"
|
| + "github.com/luci/luci-go/luci_config/appengine/gaeconfig"
|
|
|
| . "github.com/luci/luci-go/common/testing/assertions"
|
| . "github.com/smartystreets/goconvey/convey"
|
| @@ -21,6 +22,11 @@ func TestGetConfig(t *testing.T) {
|
| Convey(`With a testing configuration`, t, func() {
|
| c, env := ct.Install()
|
|
|
| + s := gaeconfig.Settings{
|
| + ConfigServiceHost: "example.com",
|
| + }
|
| + So(s.SetIfChanged(c, "test", "test"), ShouldBeNil)
|
| +
|
| svr := New()
|
|
|
| Convey(`Returns Forbidden error if not a service.`, func() {
|
| @@ -34,9 +40,10 @@ func TestGetConfig(t *testing.T) {
|
| cr, err := svr.GetConfig(c, nil)
|
| So(err, ShouldBeRPCOK)
|
| So(cr, ShouldResemble, &logdog.GetConfigResponse{
|
| - ConfigServiceUrl: "memory://",
|
| + ConfigServiceUrl: "test://example.com",
|
| ConfigSet: "services/app",
|
| ServiceConfigPath: svcconfig.ServiceConfigFilename,
|
| + ConfigServiceHost: "example.com",
|
| })
|
| })
|
| })
|
|
|