let_it_be(:component_file3){create("debian_#{container_type}_component_file",component: component_main,architecture: architecture_amd64,updated_at: '2020-01-24T10:54:59Z',file_sha256: 'b')}# destroyed, 1 second before last generation
let_it_be(:component_file4){create("debian_#{container_type}_component_file",component: component_contrib,architecture: architecture_all,updated_at: '2020-01-24T10:55:00Z',file_sha256: 'c')}# kept, last generation
distribution.signed_file.use_filedo|file_path|
let_it_be(:component_file5){create("debian_#{container_type}_component_file",component: component_contrib,architecture: architecture_all,updated_at: '2020-01-24T10:55:00Z',file_sha256: 'd')}# kept, last generation
expect(File.read(file_path)).tostart_with("-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA512\n\n#{expected_release_content}-----BEGIN PGP SIGNATURE-----\n")
let_it_be(:component_file6){create("debian_#{container_type}_component_file",component: component_contrib,architecture: architecture_amd64,updated_at: '2020-01-25T15:17:18Z',file_sha256: 'e')}# kept, less than 1 hour ago
let_it_be(:component_file3){create("debian_#{container_type}_component_file",component: component_main,architecture: architecture_amd64,updated_at: '2020-01-24T10:54:59Z',file_sha256: 'b')}# destroyed, 1 second before last generation
expect{subject}
let_it_be(:component_file4){create("debian_#{container_type}_component_file",component: component_contrib,architecture: architecture_all,updated_at: '2020-01-24T10:55:00Z',file_sha256: 'c')}# kept, last generation
.tonot_change{Packages::Package.count}
let_it_be(:component_file5){create("debian_#{container_type}_component_file",component: component_contrib,architecture: architecture_all,updated_at: '2020-01-24T10:55:00Z',file_sha256: 'd')}# kept, last generation
.andnot_change{Packages::PackageFile.count}
let_it_be(:component_file6){create("debian_#{container_type}_component_file",component: component_contrib,architecture: architecture_amd64,updated_at: '2020-01-25T15:17:18Z',file_sha256: 'e')}# kept, less than 1 hour ago