本文整理汇总了Golang中code/cloudfoundry/org/cli/cf/models.Application.PackageUpdatedAt方法的典型用法代码示例。如果您正苦于以下问题:Golang Application.PackageUpdatedAt方法的具体用法?Golang Application.PackageUpdatedAt怎么用?Golang Application.PackageUpdatedAt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类code/cloudfoundry/org/cli/cf/models.Application
的用法示例。
在下文中一共展示了Application.PackageUpdatedAt方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1:
It("prints appropriate output", func() {
Expect(err).NotTo(HaveOccurred())
Expect(ui.Outputs()).To(ContainSubstrings(
[]string{"Showing health and status", "fake-app-name", "my-org", "my-space", "my-user"},
[]string{"state", "stopped"},
[]string{"instances", "0/1"},
[]string{"usage", "1G x 1 instances"},
[]string{"There are no running instances of this app."},
))
})
})
})
Context("when the package updated at is missing", func() {
BeforeEach(func() {
getAppSummaryModel.PackageUpdatedAt = nil
appSummaryRepo.GetSummaryReturns(getAppSummaryModel, nil)
})
It("prints 'unknown' as last uploaded", func() {
Expect(err).NotTo(HaveOccurred())
Expect(ui.Outputs()).To(ContainSubstrings(
[]string{"last uploaded: unknown"},
))
})
})
Context("when the application has no app ports", func() {
BeforeEach(func() {
getAppSummaryModel.AppPorts = []int{}