Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions cell/lrp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,16 @@ var _ = Describe("LRP", func() {
})
})

Context("Extra preloaded rootfs is requested", func() {
BeforeEach(func() {
lrp = helpers.LRPCreateRequestWithRootFS(componentMaker.Addresses(), processGuid, helpers.ExtraPreloadedRootFs)
})

It("starts the LRP", func() {
Eventually(helpers.LRPStatePoller(lgr, bbsClient, processGuid, nil)).Should(Equal(models.ActualLRPStateRunning))
})
})

Context("Unsupported preloaded rootfs is requested", func() {
BeforeEach(func() {
lrp = helpers.LRPCreateRequestWithRootFS(componentMaker.Addresses(), processGuid, helpers.BogusPreloadedRootFS)
Expand Down
Binary file added fixtures/diego-extra-rootfs.tar
Binary file not shown.
1 change: 1 addition & 0 deletions helpers/bbs_requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const defaultLogGuid = "logGuid"

var defaultPreloadedRootFS = "preloaded:" + world.DefaultStack
var SecondaryPreloadedRootFS = "preloaded:" + world.PreloadedStacks[1]
var ExtraPreloadedRootFs = "preloaded:diego-extra-rootfs"

const BogusPreloadedRootFS = "preloaded:bogus-rootfs"
const dockerRootFS = "docker:///cloudfoundry/diego-docker-app#latest"
Expand Down
1 change: 1 addition & 0 deletions world/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -1548,6 +1548,7 @@ func (maker v1ComponentMaker) RepN(n int, modifyConfigFuncs ...func(*repconfig.R
ReportInterval: durationjson.Duration(1 * time.Minute),
EvacuationPollingInterval: durationjson.Duration(1 * time.Second),
EvacuationTimeout: durationjson.Duration(1 * time.Second),
ExtraRootfsDir: filepath.Join("..", "fixtures"),
LockTTL: durationjson.Duration(10 * time.Second),
LockRetryInterval: durationjson.Duration(1 * time.Second),
ServerCertFile: maker.repSSL.ServerCert,
Expand Down