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

Side by Side Diff: milo/job_source/buildbucket/builder_test.go

Issue 2949783002: [milo] appengine/* -> * (Closed)
Patch Set: rebase 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/job_source/buildbucket/builder.go ('k') | milo/job_source/buildbucket/common.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 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
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 }
OLDNEW
« no previous file with comments | « milo/job_source/buildbucket/builder.go ('k') | milo/job_source/buildbucket/common.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698