savedVersions = append(savedVersions, db.SavedVersionedResource{
									Enabled: true,
									VersionedResource: db.VersionedResource{
										Version: db.Version(version),
									},
								})
							}
						}
						savedVersionsForEachResource[resourceInfo.config.Name] = savedVersions
					}

					fakePipelineDB.GetLatestEnabledVersionedResourceStub = func(resourceName string) (db.SavedVersionedResource, bool, error) {
						savedVersions := savedVersionsForEachResource[resourceName]

						if len(savedVersions) == 0 {
							return db.SavedVersionedResource{}, false, nil
						}

						return savedVersions[len(savedVersions)-1], true, nil
					}

					fakePipelineDBs[name] = fakePipelineDB
				}

				fakeBaggageCollectorDB.GetAllPipelinesReturns(savedPipelines, nil)

				fakePipelineDBFactory.BuildStub = func(savedPipeline db.SavedPipeline) db.PipelineDB {
					return fakePipelineDBs[savedPipeline.Name]
				}

				fakeVolumes := map[string]*bcfakes.FakeVolume{}