Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: appengine/logdog/coordinator/coordinatorTest/context.go

Issue 1970463005: LogDog: enable services to fetch project configs (Closed) Base URL: https://github.com/luci/luci-go@logdog-project-coordinator-config
Patch Set: Slightly reorder logging keys. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/logdog/coordinator/coordinatorTest/context.go
diff --git a/appengine/logdog/coordinator/coordinatorTest/context.go b/appengine/logdog/coordinator/coordinatorTest/context.go
index c2327641bad6b7cb944ac921933d79368e07e1ce..61e052847b0951b2d4241b0892da2b08f68de58b 100644
--- a/appengine/logdog/coordinator/coordinatorTest/context.go
+++ b/appengine/logdog/coordinator/coordinatorTest/context.go
@@ -183,9 +183,11 @@ func Install() (context.Context, *Environment) {
e.ConfigIface = luciConfig.Get(c)
// luci-config: Projects.
- addProjectConfig := func(name luciConfig.ProjectName, localName string, access ...string) {
+ addProjectConfig := func(proj luciConfig.ProjectName, localName string, access ...string) {
+ configSet, configPath := config.ProjectConfigPath(c, proj)
+
var cfg configProto.ProjectCfg
- e.modTextProtobuf(fmt.Sprintf("projects/%s", name), "project.cfg", &cfg, func() {
+ e.modTextProtobuf(configSet, configPath, &cfg, func() {
cfg.Name = &localName
cfg.Access = access
})

Powered by Google App Engine
This is Rietveld 408576698