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

Side by Side Diff: logdog/common/storage/bigtable/storage_test.go

Issue 2575383002: Add server/cache support to gaeconfig. (Closed)
Patch Set: Un-collapse. Created 3 years, 11 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 | « logdog/common/storage/bigtable/storage.go ('k') | logdog/server/archivist/archivist_test.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 2015 The LUCI Authors. All rights reserved. 1 // Copyright 2015 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 bigtable 5 package bigtable
6 6
7 import ( 7 import (
8 "bytes" 8 "bytes"
9 "strconv" 9 "strconv"
10 "testing" 10 "testing"
11 11
12 "github.com/luci/luci-go/common/data/recordio" 12 "github.com/luci/luci-go/common/data/recordio"
13 "github.com/luci/luci-go/logdog/common/storage" 13 "github.com/luci/luci-go/logdog/common/storage"
14 "github.com/luci/luci-go/logdog/common/storage/memory" 14 "github.com/luci/luci-go/logdog/common/storage/memory"
15 "github.com/luci/luci-go/logdog/common/types" 15 "github.com/luci/luci-go/logdog/common/types"
16 "github.com/luci/luci-go/luci_config/common/cfgtypes" 16 "github.com/luci/luci-go/luci_config/common/cfgtypes"
17
17 "golang.org/x/net/context" 18 "golang.org/x/net/context"
18 19
19 . "github.com/luci/luci-go/common/testing/assertions" 20 . "github.com/luci/luci-go/common/testing/assertions"
20 . "github.com/smartystreets/goconvey/convey" 21 . "github.com/smartystreets/goconvey/convey"
21 ) 22 )
22 23
23 func mustGetIndex(e *storage.Entry) types.MessageIndex { 24 func mustGetIndex(e *storage.Entry) types.MessageIndex {
24 idx, err := e.GetStreamIndex() 25 idx, err := e.GetStreamIndex()
25 if err != nil { 26 if err != nil {
26 panic(err) 27 panic(err)
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 }) 250 })
250 251
251 Convey(`A tail request for "INVALID" errors NOT FOUND.`, func() { 252 Convey(`A tail request for "INVALID" errors NOT FOUND.`, func() {
252 _, err := tail("INVALID") 253 _, err := tail("INVALID")
253 So(err, ShouldEqual, storage.ErrDoesNotE xist) 254 So(err, ShouldEqual, storage.ErrDoesNotE xist)
254 }) 255 })
255 }) 256 })
256 }) 257 })
257 }) 258 })
258 } 259 }
OLDNEW
« no previous file with comments | « logdog/common/storage/bigtable/storage.go ('k') | logdog/server/archivist/archivist_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698