| 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 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |