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

Unified Diff: milo/appengine/job_source/buildbot/html_test.go

Issue 2944983003: [milo] {buildbucket,buildbot,swarming,logdog} -> backends/*. (Closed)
Patch Set: fix the tests 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « milo/appengine/job_source/buildbot/html_data.go ('k') | milo/appengine/job_source/buildbot/master.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/appengine/job_source/buildbot/html_test.go
diff --git a/milo/appengine/buildbot/html_test.go b/milo/appengine/job_source/buildbot/html_test.go
similarity index 90%
rename from milo/appengine/buildbot/html_test.go
rename to milo/appengine/job_source/buildbot/html_test.go
index 5fc29750e744f404be7a77163927d577dd73f9b6..4d98224d0b14d1ea1d2a856d972410b6a9b0f346 100644
--- a/milo/appengine/buildbot/html_test.go
+++ b/milo/appengine/job_source/buildbot/html_test.go
@@ -44,7 +44,7 @@ func request(c context.Context, params map[string]string) *router.Context {
func TestHtml(t *testing.T) {
c := memory.UseWithAppID(context.Background(), "dev~luci-milo")
c, _ = testclock.UseTime(c, testclock.TestTimeUTC)
- c = templates.Use(c, common.GetTemplateBundle("../frontend/templates"))
+ c = templates.Use(c, common.GetTemplateBundle("../../frontend/templates"))
c = auth.WithState(c, &authtest.FakeState{Identity: identity.AnonymousIdentity})
putDSMasterJSON(c, &buildbotMaster{
Name: "fake",
@@ -77,12 +77,6 @@ func TestHtml(t *testing.T) {
response := rc.Writer.(*httptest.ResponseRecorder)
So(response.Code, ShouldEqual, http.StatusBadRequest)
})
- Convey(`Normal build`, func() {
- rc := request(c, map[string]string{"master": "debug", "builder": "newline", "build": "1234"})
- BuildHandler(rc)
- response := rc.Writer.(*httptest.ResponseRecorder)
- So(response.Code, ShouldEqual, http.StatusOK)
- })
})
Convey(`Builder pages`, func() {
« no previous file with comments | « milo/appengine/job_source/buildbot/html_data.go ('k') | milo/appengine/job_source/buildbot/master.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698