本文整理汇总了Golang中github.com/cloudfoundry/bosh-init/cloud/fakes.FakeCloud.CreateVMCID方法的典型用法代码示例。如果您正苦于以下问题:Golang FakeCloud.CreateVMCID方法的具体用法?Golang FakeCloud.CreateVMCID怎么用?Golang FakeCloud.CreateVMCID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类github.com/cloudfoundry/bosh-init/cloud/fakes.FakeCloud
的用法示例。
在下文中一共展示了FakeCloud.CreateVMCID方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1:
fakeUUIDGenerator := &fakeuuid.FakeGenerator{}
deploymentStateService := biconfig.NewFileSystemDeploymentStateService(fs, fakeUUIDGenerator, logger, "/fake/path")
stemcellRepo = biconfig.NewStemcellRepo(deploymentStateService, fakeUUIDGenerator)
fakeDiskDeployer = fakebivm.NewFakeDiskDeployer()
manager = NewManagerFactory(
fakeVMRepo,
stemcellRepo,
fakeDiskDeployer,
fakeUUIDGenerator,
fs,
logger,
).NewManager(fakeCloud, fakeAgentClient)
fakeCloud.CreateVMCID = "fake-vm-cid"
expectedNetworkInterfaces = map[string]biproperty.Map{
"fake-network-name": biproperty.Map{
"type": "dynamic",
"ip": "fake-ip",
"cloud_properties": biproperty.Map{},
"default": []bideplmanifest.NetworkDefault{"dns", "gateway"},
},
}
expectedCloudProperties = biproperty.Map{
"fake-cloud-property-key": "fake-cloud-property-value",
}
expectedEnv = biproperty.Map{
"fake-env-key": "fake-env-value",
}
deploymentManifest = bideplmanifest.Manifest{