2020-04-22 20:31:56 +00:00
|
|
|
package tenant_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/influxdata/influxdb/v2"
|
|
|
|
"github.com/influxdata/influxdb/v2/tenant"
|
|
|
|
influxdbtesting "github.com/influxdata/influxdb/v2/testing"
|
|
|
|
"go.uber.org/zap/zaptest"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestBucketLoggingService(t *testing.T) {
|
2020-08-11 14:56:42 +00:00
|
|
|
influxdbtesting.BucketService(initInmemBucketLoggingService, t)
|
2020-04-22 20:31:56 +00:00
|
|
|
}
|
|
|
|
|
2020-08-11 14:56:42 +00:00
|
|
|
func initInmemBucketLoggingService(f influxdbtesting.BucketFields, t *testing.T) (influxdb.BucketService, string, func()) {
|
|
|
|
svc, s, closer := initInmemBucketService(f, t)
|
2020-04-22 20:31:56 +00:00
|
|
|
return tenant.NewBucketLogger(zaptest.NewLogger(t), svc), s, closer
|
|
|
|
}
|