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

Side by Side Diff: milo/build_source/swarming/html_data.go

Issue 2948143003: [milo] job_source -> build_source. (Closed)
Patch Set: fix tests Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « milo/build_source/swarming/html.go ('k') | milo/build_source/swarming/html_test.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 swarming 5 package swarming
6 6
7 import ( 7 import (
8 "encoding/json" 8 "encoding/json"
9 "fmt" 9 "fmt"
10 "io/ioutil" 10 "io/ioutil"
(...skipping 30 matching lines...) Expand all
41 swarmingRelDir string 41 swarmingRelDir string
42 42
43 swarmResult string 43 swarmResult string
44 swarmOutput string 44 swarmOutput string
45 annotations string 45 annotations string
46 } 46 }
47 47
48 func getTestCases(swarmingRelDir string) []*testCase { 48 func getTestCases(swarmingRelDir string) []*testCase {
49 testCases := make(map[string]*testCase) 49 testCases := make(map[string]*testCase)
50 50
51 » // References "milo/appengine/job_source/swarming/testdata". 51 » // References "milo/appengine/build_source/swarming/testdata".
52 testdata := filepath.Join(swarmingRelDir, "testdata") 52 testdata := filepath.Join(swarmingRelDir, "testdata")
53 f, err := ioutil.ReadDir(testdata) 53 f, err := ioutil.ReadDir(testdata)
54 if err != nil { 54 if err != nil {
55 panic(err) 55 panic(err)
56 } 56 }
57 for _, fi := range f { 57 for _, fi := range f {
58 fileName := fi.Name() 58 fileName := fi.Name()
59 parts := strings.SplitN(fileName, ".", 2) 59 parts := strings.SplitN(fileName, ".", 2)
60 60
61 name := parts[0] 61 name := parts[0]
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 ` 290 `
291 291
292 var aclConfgs = map[string]memcfg.ConfigSet{ 292 var aclConfgs = map[string]memcfg.ConfigSet{
293 "projects/secret": { 293 "projects/secret": {
294 "project.cfg": secretProjectCfg, 294 "project.cfg": secretProjectCfg,
295 }, 295 },
296 "projects/opensource": { 296 "projects/opensource": {
297 "project.cfg": publicProjectCfg, 297 "project.cfg": publicProjectCfg,
298 }, 298 },
299 } 299 }
OLDNEW
« no previous file with comments | « milo/build_source/swarming/html.go ('k') | milo/build_source/swarming/html_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698