OLD | NEW |
1 // Copyright 2016 The LUCI Authors. All rights reserved. | 1 // Copyright 2016 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 buildbucket | 5 package buildbucket |
6 | 6 |
7 import ( | 7 import ( |
8 "encoding/json" | 8 "encoding/json" |
9 "flag" | 9 "flag" |
10 "fmt" | 10 "fmt" |
11 "io/ioutil" | 11 "io/ioutil" |
12 "os" | 12 "os" |
13 "path/filepath" | 13 "path/filepath" |
14 "testing" | 14 "testing" |
15 | 15 |
16 "github.com/luci/gae/impl/memory" | 16 "github.com/luci/gae/impl/memory" |
17 "github.com/luci/luci-go/common/clock/testclock" | 17 "github.com/luci/luci-go/common/clock/testclock" |
18 memcfg "github.com/luci/luci-go/common/config/impl/memory" | 18 memcfg "github.com/luci/luci-go/common/config/impl/memory" |
19 "github.com/luci/luci-go/luci_config/server/cfgclient/backend/testconfig
" | 19 "github.com/luci/luci-go/luci_config/server/cfgclient/backend/testconfig
" |
20 » "github.com/luci/luci-go/milo/appengine/common" | 20 » "github.com/luci/luci-go/milo/common" |
21 "golang.org/x/net/context" | 21 "golang.org/x/net/context" |
22 | 22 |
23 . "github.com/smartystreets/goconvey/convey" | 23 . "github.com/smartystreets/goconvey/convey" |
24 ) | 24 ) |
25 | 25 |
26 var generate = flag.Bool("test.generate", false, "Generate expectations instead
of running tests.") | 26 var generate = flag.Bool("test.generate", false, "Generate expectations instead
of running tests.") |
27 | 27 |
28 func TestBuilder(t *testing.T) { | 28 func TestBuilder(t *testing.T) { |
29 t.Parallel() | 29 t.Parallel() |
30 | 30 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 buildbucket: { | 75 buildbucket: { |
76 host: "debug" | 76 host: "debug" |
77 } | 77 } |
78 ` | 78 ` |
79 | 79 |
80 var bktConfigFull = map[string]memcfg.ConfigSet{ | 80 var bktConfigFull = map[string]memcfg.ConfigSet{ |
81 "services/luci-milo-dev": { | 81 "services/luci-milo-dev": { |
82 "settings.cfg": bktConfig, | 82 "settings.cfg": bktConfig, |
83 }, | 83 }, |
84 } | 84 } |
OLD | NEW |