1
// Copyright 2014 Canonical Ltd.
2
// Licensed under the AGPLv3, see LICENCE file for details.
7
"github.com/juju/juju/service/common"
8
svctesting "github.com/juju/juju/service/common/testing"
12
MakeJournalDirs = makeJournalDirs
13
MongoConfigPath = &mongoConfigPath
15
SharedSecretPath = sharedSecretPath
16
SSLKeyPath = sslKeyPath
20
HostWordSize = &hostWordSize
21
RuntimeGOOS = &runtimeGOOS
22
AvailSpace = &availSpace
23
MinOplogSizeMB = &minOplogSizeMB
24
PreallocFile = &preallocFile
26
DefaultOplogSize = defaultOplogSize
27
FsAvailSpace = fsAvailSpace
28
PreallocFileSizes = preallocFileSizes
29
PreallocFiles = preallocFiles
32
func PatchService(patchValue func(interface{}, interface{}), data *svctesting.FakeServiceData) {
33
patchValue(&discoverService, func(name string) (mongoService, error) {
34
svc := svctesting.NewFakeService(name, common.Conf{})
35
svc.FakeServiceData = data
38
patchValue(&newService, func(name string, conf common.Conf) (mongoService, error) {
39
svc := svctesting.NewFakeService(name, conf)
40
svc.FakeServiceData = data