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

Unified Diff: scheduler/appengine/task/swarming/swarming_test.go

Issue 2991213003: scheduler: Make 'https://' optional in 'server' config field. (Closed)
Patch Set: Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scheduler/appengine/task/swarming/swarming.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scheduler/appengine/task/swarming/swarming_test.go
diff --git a/scheduler/appengine/task/swarming/swarming_test.go b/scheduler/appengine/task/swarming/swarming_test.go
index 1547db9cb0697086fe88d4f6d4aa4fddff70208e..c5775746c31ef23c99bc71efef83b6089a976a37 100644
--- a/scheduler/appengine/task/swarming/swarming_test.go
+++ b/scheduler/appengine/task/swarming/swarming_test.go
@@ -47,7 +47,7 @@ func TestValidateProtoMessage(t *testing.T) {
Convey("ValidateProtoMessage passes good minimal msg", t, func() {
So(tm.ValidateProtoMessage(&messages.SwarmingTask{
- Server: "https://blah.com",
+ Server: "blah.com",
Command: []string{"echo", "Hi!"},
}), ShouldBeNil)
})
@@ -69,7 +69,7 @@ func TestValidateProtoMessage(t *testing.T) {
}
So(call(""), ShouldErrLike, "field 'server' is required")
So(call("%%%%"), ShouldErrLike, "invalid URL")
- So(call("/abc"), ShouldErrLike, "not an absolute url")
+ So(call("/abc"), ShouldErrLike, "not a host root url")
So(call("https://host/not-root"), ShouldErrLike, "not a host root url")
})
« no previous file with comments | « scheduler/appengine/task/swarming/swarming.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698