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

Side by Side Diff: milo/appengine/swarming/buildinfo_test.go

Issue 2915663002: milo: open swarming tasks with wide logs (Closed)
Patch Set: 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
1 // Copyright 2017 The LUCI Authors. All rights reserved. 1 // Copyright 2017 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 "fmt" 8 "fmt"
9 "testing" 9 "testing"
10 10
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 So(resp, ShouldResemble, &milo.BuildInfoResponse{ 128 So(resp, ShouldResemble, &milo.BuildInfoResponse{
129 Project: "testproject", 129 Project: "testproject",
130 Step: &miloProto.Step{ 130 Step: &miloProto.Step{
131 Command: &miloProto.Step_Command{ 131 Command: &miloProto.Step_Command{
132 CommandLine: []string{"foo", "ba r", "baz"}, 132 CommandLine: []string{"foo", "ba r", "baz"},
133 }, 133 },
134 Text: []string{"test step"}, 134 Text: []string{"test step"},
135 Link: &miloProto.Link{ 135 Link: &miloProto.Link{
136 Label: "Task 12340", 136 Label: "Task 12340",
137 Value: &miloProto.Link_Url{ 137 Value: &miloProto.Link_Url{
138 » » » » » » » Url: "https://swarming.e xample.com/task?id=12340&show_raw=1", 138 » » » » » » » Url: "https://swarming.e xample.com/task?id=12340&show_raw=1&wide_logs=true",
139 }, 139 },
140 }, 140 },
141 Property: []*miloProto.Step_Property{ 141 Property: []*miloProto.Step_Property{
142 {Name: "bar", Value: "log-bar"}, 142 {Name: "bar", Value: "log-bar"},
143 }, 143 },
144 }, 144 },
145 AnnotationStream: &miloProto.LogdogStream{ 145 AnnotationStream: &miloProto.LogdogStream{
146 Server: "example.com", 146 Server: "example.com",
147 Prefix: "swarm/swarming.example.com/1234 1", 147 Prefix: "swarm/swarming.example.com/1234 1",
148 Name: "annotations", 148 Name: "annotations",
(...skipping 23 matching lines...) Expand all
172 So(resp, ShouldResemble, &milo.BuildInfoResponse{ 172 So(resp, ShouldResemble, &milo.BuildInfoResponse{
173 Project: "testproject", 173 Project: "testproject",
174 Step: &miloProto.Step{ 174 Step: &miloProto.Step{
175 Command: &miloProto.Step_Command{ 175 Command: &miloProto.Step_Command{
176 CommandLine: []string{"foo", "ba r", "baz"}, 176 CommandLine: []string{"foo", "ba r", "baz"},
177 }, 177 },
178 Text: []string{"test step"}, 178 Text: []string{"test step"},
179 Link: &miloProto.Link{ 179 Link: &miloProto.Link{
180 Label: "Task 12340", 180 Label: "Task 12340",
181 Value: &miloProto.Link_Url{ 181 Value: &miloProto.Link_Url{
182 » » » » » » » Url: "https://swarming.e xample.com/task?id=12340&show_raw=1", 182 » » » » » » » Url: "https://swarming.e xample.com/task?id=12340&show_raw=1&wide_logs=true",
183 }, 183 },
184 }, 184 },
185 Property: []*miloProto.Step_Property{ 185 Property: []*miloProto.Step_Property{
186 {Name: "bar", Value: "log-bar"}, 186 {Name: "bar", Value: "log-bar"},
187 }, 187 },
188 }, 188 },
189 AnnotationStream: &miloProto.LogdogStream{ 189 AnnotationStream: &miloProto.LogdogStream{
190 Server: "example.com", 190 Server: "example.com",
191 Prefix: "swarm/swarming.example.com/1234 1", 191 Prefix: "swarm/swarming.example.com/1234 1",
192 Name: "annotations", 192 Name: "annotations",
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 } 227 }
228 228
229 for _, tc := range failures { 229 for _, tc := range failures {
230 Convey(fmt.Sprintf("Failes to parse %q / %q (%s)", tc.ta skID, tc.tryNumber, tc.err), func() { 230 Convey(fmt.Sprintf("Failes to parse %q / %q (%s)", tc.ta skID, tc.tryNumber, tc.err), func() {
231 _, err := getRunID(tc.taskID, tc.tryNumber) 231 _, err := getRunID(tc.taskID, tc.tryNumber)
232 So(err, ShouldErrLike, tc.err) 232 So(err, ShouldErrLike, tc.err)
233 }) 233 })
234 } 234 }
235 }) 235 })
236 } 236 }
OLDNEW
« no previous file with comments | « milo/appengine/swarming/build.go ('k') | milo/appengine/swarming/expectations/build-canceled.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698