本文整理汇总了Golang中github.com/cloudfoundry/bosh-init/deployment/instance/state/mocks.MockBuilder类的典型用法代码示例。如果您正苦于以下问题:Golang MockBuilder类的具体用法?Golang MockBuilder怎么用?Golang MockBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了MockBuilder类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1:
var (
fs *fakesys.FakeFileSystem
logger boshlog.Logger
registryServerManager biregistry.ServerManager
releaseManager birel.Manager
mockInstaller *mock_install.MockInstaller
mockInstallerFactory *mock_install.MockInstallerFactory
mockCloudFactory *mock_cloud.MockFactory
mockCloud *mock_cloud.MockCloud
mockAgentClient *mock_agentclient.MockAgentClient
mockAgentClientFactory *mock_httpagent.MockAgentClientFactory
mockReleaseExtractor *mock_release.MockExtractor
mockStateBuilderFactory *mock_instance_state.MockBuilderFactory
mockStateBuilder *mock_instance_state.MockBuilder
mockState *mock_instance_state.MockState
mockBlobstoreFactory *mock_blobstore.MockFactory
mockBlobstore *mock_blobstore.MockBlobstore
fakeStemcellExtractor *fakebistemcell.FakeExtractor
fakeUUIDGenerator *fakeuuid.FakeGenerator
fakeRegistryUUIDGenerator *fakeuuid.FakeGenerator
fakeRepoUUIDGenerator *fakeuuid.FakeGenerator
fakeAgentIDGenerator *fakeuuid.FakeGenerator
fakeSHA1Calculator *fakebicrypto.FakeSha1Calculator
legacyDeploymentStateMigrator biconfig.LegacyDeploymentStateMigrator
deploymentStateService biconfig.DeploymentStateService
vmRepo biconfig.VMRepo
diskRepo biconfig.DiskRepo
stemcellRepo biconfig.StemcellRepo
deploymentRepo biconfig.DeploymentRepo
releaseRepo biconfig.ReleaseRepo
sshTunnelFactory bisshtunnel.Factory
diskManagerFactory bidisk.ManagerFactory
diskDeployer bivm.DiskDeployer
stdOut *gbytes.Buffer
stdErr *gbytes.Buffer
fakeStage *fakebiui.FakeStage
stemcellManagerFactory bistemcell.ManagerFactory
vmManagerFactory bivm.ManagerFactory
applySpec bias.ApplySpec
directorID string
stemcellTarballPath = "/fake-stemcell-release.tgz"
deploymentManifestPath = "/deployment-dir/fake-deployment-manifest.yml"
deploymentStatePath = "/deployment-dir/fake-deployment-manifest-state.json"
stemcellImagePath = "fake-stemcell-image-path"
stemcellCID = "fake-stemcell-cid"
stemcellCloudProperties = biproperty.Map{}
vmCloudProperties = biproperty.Map{}
vmEnv = biproperty.Map{}
diskCloudProperties = biproperty.Map{}
networkInterfaces = map[string]biproperty.Map{
"network-1": biproperty.Map{
"type": "dynamic",
"default": []bideplmanifest.NetworkDefault{"dns", "gateway"},
"cloud_properties": biproperty.Map{},
},
}
agentRunningState = biagentclient.AgentState{JobState: "running"}
mbusURL = "http://fake-mbus-url"
expectHasVM1 *gomock.Call
expectDeleteVM1 *gomock.Call
sshConfig *SSHConfig
)
开发者ID:vestel,项目名称:bosh-init,代码行数:81,代码来源:deploy_test.go
示例2:
mockCtrl = gomock.NewController(GinkgoT())
})
AfterEach(func() {
mockCtrl.Finish()
})
var (
mockStateBuilder *mock_instance_state.MockBuilder
mockState *mock_instance_state.MockState
fakeVMManager *fakebivm.FakeManager
fakeVM *fakebivm.FakeVM
fakeSSHTunnelFactory *fakebisshtunnel.FakeFactory
fakeSSHTunnel *fakebisshtunnel.FakeTunnel
fakeStage *fakebiui.FakeStage
instance Instance
pingTimeout = 1 * time.Second
pingDelay = 500 * time.Millisecond
jobName = "fake-job-name"
jobIndex = 0
)
BeforeEach(func() {
fakeVMManager = fakebivm.NewFakeManager()
fakeVM = fakebivm.NewFakeVM("fake-vm-cid")
fakeSSHTunnelFactory = fakebisshtunnel.NewFakeFactory()
fakeSSHTunnel = fakebisshtunnel.NewFakeTunnel()
开发者ID:vestel,项目名称:bosh-init,代码行数:32,代码来源:instance_test.go
示例3:
mockCtrl.Finish()
})
var (
deployer Deployer
mockVMManagerFactory *mock_vm.MockManagerFactory
fakeVMManager *fakebivm.FakeManager
mockAgentClient *mock_agentclient.MockAgentClient
mockAgentClientFactory *mock_httpagent.MockAgentClientFactory
fakeSSHTunnelFactory *fakebisshtunnel.FakeFactory
fakeSSHTunnel *fakebisshtunnel.FakeTunnel
cloud *fakebicloud.FakeCloud
deploymentManifest bideplmanifest.Manifest
diskPool bideplmanifest.DiskPool
registryConfig biinstallmanifest.Registry
fakeStage *fakebiui.FakeStage
fakeVM *fakebivm.FakeVM
cloudStemcell bistemcell.CloudStemcell
applySpec bias.ApplySpec
mockStateBuilderFactory *mock_instance_state.MockBuilderFactory
mockStateBuilder *mock_instance_state.MockBuilder
mockState *mock_instance_state.MockState
mockBlobstore *mock_blobstore.MockBlobstore
)
BeforeEach(func() {
diskPool = bideplmanifest.DiskPool{
开发者ID:mattcui,项目名称:bosh-init,代码行数:31,代码来源:deployer_test.go
注:本文中的github.com/cloudfoundry/bosh-init/deployment/instance/state/mocks.MockBuilder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论