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

Side by Side Diff: milo/appengine/job_source/swarming/buildLog_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
OLDNEW
(Empty)
1 package swarming
2
3 import (
4 "context"
5 "strings"
6 "testing"
7
8 "github.com/luci/gae/impl/memory"
9 "github.com/luci/luci-go/common/clock/testclock"
10
11 . "github.com/smartystreets/goconvey/convey"
12 )
13
14 var testSvc = &debugSwarmingService{
15 tc: &testCase{
16 name: "build-patch-failure",
17 swarmResult: "build-patch-failure.swarm",
18 swarmOutput: "build-patch-failure",
19 },
20 }
21
22 func TestBuildLogs(t *testing.T) {
23 c := context.Background()
24 c, _ = testclock.UseTime(c, testclock.TestRecentTimeUTC)
25 c = memory.UseWithAppID(c, "dev~luci-milo")
26 Convey(`Build log tests`, t, func() {
27 _, _, err := swarmingBuildLogImpl(c, testSvc, "12340", "/update_ scripts/0/stdout")
28 So(err, ShouldBeNil)
29 })
30 Convey(`List available streams`, t, func() {
31 _, _, err := swarmingBuildLogImpl(c, testSvc, "12340", "/notexis t")
32 So(strings.HasPrefix(err.Error(), "stream \"steps/notexist\" not found"), ShouldEqual, true)
33 })
34 }
OLDNEW
« no previous file with comments | « milo/appengine/job_source/swarming/buildLog.go ('k') | milo/appengine/job_source/swarming/build_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698