Пример #1
0
			})
		})
	})

	Describe("GetAll", func() {
		Context("when reading LRPs from BBS succeeds", func() {
			BeforeEach(func() {
				fakeBBS.DesiredLRPsReturns([]models.DesiredLRP{
					{
						ProcessGuid: "process-guid-1",
						Domain:      "domain-1",
						Action: &models.RunAction{
							User: "******",
							Path: "the-path",
						},
					},
					{
						ProcessGuid: "process-guid-2",
						Domain:      "domain-2",
						Action: &models.RunAction{
							User: "******",
							Path: "the-path",
						},
					},
				}, nil)

				fakeBBS.DesiredLRPsByDomainReturns([]models.DesiredLRP{
					{
						ProcessGuid: "process-guid-2",
						Domain:      "domain-2",
						Action: &models.RunAction{
							User: "******",