本文整理汇总了Golang中github.com/cloudfoundry-incubator/consuladapter/consulrunner.ClusterRunner类的典型用法代码示例。如果您正苦于以下问题:Golang ClusterRunner类的具体用法?Golang ClusterRunner怎么用?Golang ClusterRunner使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ClusterRunner类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1:
"testing"
)
var (
trafficControllerAddress string
trafficControllerPort int
trafficControllerURL string
etcdPort int
consulRunner *consulrunner.ClusterRunner
listenerPort int
listenerAddr string
listener ifrit.Process
runner *ginkgomon.Runner
listenerPath string
fakeCC *ghttp.Server
etcdRunner *etcdstorerunner.ETCDClusterRunner
store storeadapter.StoreAdapter
bbsClient bbs.Client
logger *lagertest.TestLogger
bbsPath string
bbsURL *url.URL
)
var bbsArgs bbstestrunner.Args
var bbsRunner *ginkgomon.Runner
示例2:
etcdclient "github.com/coreos/go-etcd/etcd"
. "github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/config"
. "github.com/onsi/gomega"
"github.com/pivotal-golang/clock/fakeclock"
"github.com/pivotal-golang/lager/lagertest"
"testing"
)
var etcdPort int
var etcdUrl string
var etcdRunner *etcdstorerunner.ETCDClusterRunner
var storeClient etcd.StoreClient
var fakeStoreClient *fakes.FakeStoreClient
var consulRunner *consulrunner.ClusterRunner
var consulSession *consuladapter.Session
var fakeAuctioneerClient *auctioneerfakes.FakeClient
var fakeRepClient *repfakes.FakeClient
var fakeRepClientFactory *repfakes.FakeClientFactory
var fakeTaskCompletionClient *faketaskworkpool.FakeTaskCompletionClient
var logger *lagertest.TestLogger
var clock *fakeclock.FakeClock
var etcdHelper *etcd_helpers.ETCDHelper
var consulHelper *test_helpers.ConsulHelper
var serviceClient bbs.ServiceClient
var etcdDB db.DB
var etcdDBWithFakeStore db.DB
示例3: TestSSHProxy
"github.com/cloudfoundry-incubator/diego-ssh/keys"
. "github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/config"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gexec"
"github.com/tedsuo/ifrit"
"github.com/tedsuo/ifrit/ginkgomon"
)
var (
sshProxyPath string
sshdPath string
sshdProcess ifrit.Process
sshdPort int
sshProxyPort int
hostKeyPem string
privateKeyPem string
publicAuthorizedKey string
consulRunner *consulrunner.ClusterRunner
)
func TestSSHProxy(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "SSH Proxy Suite")
}
var _ = SynchronizedBeforeSuite(func() []byte {
sshProxy, err := gexec.Build("github.com/cloudfoundry-incubator/diego-ssh/cmd/ssh-proxy", "-race")
Expect(err).NotTo(HaveOccurred())
示例4: TestRep
"github.com/cloudfoundry/storeadapter/storerunner/etcdstorerunner"
. "github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/config"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gexec"
"github.com/onsi/gomega/ghttp"
"github.com/tedsuo/ifrit"
"github.com/tedsuo/ifrit/ginkgomon"
)
var cellID string
var representativePath string
var etcdRunner *etcdstorerunner.ETCDClusterRunner
var etcdPort, natsPort int
var serverPort int
var consulRunner *consulrunner.ClusterRunner
var consulSession *consuladapter.Session
var bbsArgs bbstestrunner.Args
var bbsBinPath string
var bbsURL *url.URL
var bbsRunner *ginkgomon.Runner
var bbsProcess ifrit.Process
var bbsClient bbs.Client
var auctioneerServer *ghttp.Server
func TestRep(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Rep Integration Suite")
}
示例5: TestBBS
var etcdPort int
var etcdUrl string
var etcdRunner *etcdstorerunner.ETCDClusterRunner
var etcdClient *etcdclient.Client
var logger lager.Logger
var client bbs.Client
var bbsBinPath string
var bbsAddress string
var bbsArgs testrunner.Args
var bbsRunner *ginkgomon.Runner
var bbsProcess ifrit.Process
var consulSession *consuladapter.Session
var consulRunner *consulrunner.ClusterRunner
var etcdHelper *etcd_helpers.ETCDHelper
var auctioneerServer *ghttp.Server
func TestBBS(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "BBS Cmd Suite")
}
var _ = SynchronizedBeforeSuite(
func() []byte {
bbsConfig, err := gexec.Build("github.com/cloudfoundry-incubator/bbs/cmd/bbs", "-race")
Expect(err).NotTo(HaveOccurred())
return []byte(bbsConfig)
},
func(bbsConfig []byte) {
示例6: TestBBS
)
var (
etcdPort int
etcdUrl string
etcdRunner *etcdstorerunner.ETCDClusterRunner
etcdClient *etcdclient.Client
storeClient etcd.StoreClient
logger lager.Logger
client bbs.InternalClient
bbsBinPath string
bbsAddress string
bbsHealthAddress string
bbsPort int
bbsURL *url.URL
bbsArgs testrunner.Args
bbsRunner *ginkgomon.Runner
bbsProcess ifrit.Process
consulRunner *consulrunner.ClusterRunner
consulClient consuladapter.Client
consulHelper *test_helpers.ConsulHelper
auctioneerServer *ghttp.Server
testMetricsListener net.PacketConn
testMetricsChan chan *events.Envelope
sqlProcess ifrit.Process
sqlRunner sqlrunner.SQLRunner
)
func TestBBS(t *testing.T) {
示例7: TestListener
"github.com/onsi/ginkgo/config"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gexec"
"github.com/onsi/gomega/ghttp"
)
var (
listenerPath string
bbsURL *url.URL
fakeBBS *ghttp.Server
)
var natsPort int
var consulRunner *consulrunner.ClusterRunner
var consulClient consuladapter.Client
func TestListener(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Listener Suite")
}
var _ = SynchronizedBeforeSuite(func() []byte {
listener, err := gexec.Build("github.com/cloudfoundry-incubator/nsync/cmd/nsync-listener", "-race")
Expect(err).NotTo(HaveOccurred())
payload, err := json.Marshal(map[string]string{
"listener": listener,
})
Expect(err).NotTo(HaveOccurred())
示例8:
exitDuration = 4 * time.Second
convergeRepeatInterval = 500 * time.Millisecond
taskKickInterval = convergeRepeatInterval
expireCompletedTaskDuration = 3 * convergeRepeatInterval
expirePendingTaskDuration = 30 * time.Minute
)
var (
binPaths BinPaths
etcdRunner *etcdstorerunner.ETCDClusterRunner
bbsArgs bbsrunner.Args
bbsProcess ifrit.Process
bbsClient bbs.Client
convergerConfig *convergerrunner.Config
convergerProcess ifrit.Process
runner *ginkgomon.Runner
consulRunner *consulrunner.ClusterRunner
consulSession *consuladapter.Session
etcdClient storeadapter.StoreAdapter
logger lager.Logger
)
SynchronizedBeforeSuite(func() []byte {
convergerBinPath, err := Build("github.com/cloudfoundry-incubator/converger/cmd/converger", "-race")
Expect(err).NotTo(HaveOccurred())
bbsBinPath, err := Build("github.com/cloudfoundry-incubator/bbs/cmd/bbs", "-race")
Expect(err).NotTo(HaveOccurred())
bytes, err := json.Marshal(BinPaths{
示例9: TestMeasurements
var etcdUrl string
var etcdSSLConfig *etcdstorerunner.SSLConfig
var etcdRunner *etcdstorerunner.ETCDClusterRunner
var etcdClient *etcdclient.Client
var logger lager.Logger
var client bbs.Client
var bbsBinPath string
var bbsAddress string
var bbsURL *url.URL
var bbsArgs testrunner.Args
var bbsRunner *ginkgomon.Runner
var bbsProcess ifrit.Process
var consulSession *consuladapter.Session
var consulRunner *consulrunner.ClusterRunner
var etcdHelper *etcd_helpers.ETCDHelper
var auctioneerServer *ghttp.Server
func TestMeasurements(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Measurements Suite")
}
var _ = SynchronizedBeforeSuite(
func() []byte {
os.Setenv("GOMAXPROCS", strconv.Itoa(runtime.NumCPU()))
bbsConfig, err := gexec.Build("github.com/cloudfoundry-incubator/bbs/cmd/bbs", "-race")
Expect(err).NotTo(HaveOccurred())
return []byte(bbsConfig)
},