本文整理匯總了Golang中bosh/settings/fakes.FakeSettingsService.AgentID方法的典型用法代碼示例。如果您正苦於以下問題:Golang FakeSettingsService.AgentID方法的具體用法?Golang FakeSettingsService.AgentID怎麽用?Golang FakeSettingsService.AgentID使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類bosh/settings/fakes.FakeSettingsService
的用法示例。
在下文中一共展示了FakeSettingsService.AgentID方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1:
})
})
It("get state should be synchronous", func() {
Expect(action.IsAsynchronous()).To(BeFalse())
})
It("is not persistent", func() {
Expect(action.IsPersistent()).To(BeFalse())
})
Describe("Run", func() {
Context("when current spec can be retrieved", func() {
Context("when vitals can be retrieved", func() {
It("returns state", func() {
settings.AgentID = "my-agent-id"
settings.VM.Name = "vm-abc-def"
jobSupervisor.StatusStatus = "running"
specService.Spec = boshas.V1ApplySpec{
Deployment: "fake-deployment",
}
expectedSpec := GetStateV1ApplySpec{
V1ApplySpec: boshas.V1ApplySpec{
NetworkSpecs: map[string]boshas.NetworkSpec{},
ResourcePoolSpecs: map[string]interface{}{},
PackageSpecs: map[string]boshas.PackageSpec{},
},
AgentID: "my-agent-id",