spec/beaker/host/unix/file_spec.rb in beaker-4.41.2 vs spec/beaker/host/unix/file_spec.rb in beaker-4.42.0

- old
+ new

@@ -135,9 +135,17 @@ filename = instance.repo_filename( 'pkg_name', 'pkg_version9' ) correct = 'pl-pkg_name-pkg_version9-el-21-x86_64.repo' expect( filename ).to be === correct end + it 'builds the filename correctly for amazon-based platforms' do + @platform = 'amazon-2023-x86_64' + allow(instance).to receive(:is_pe?).and_return(true) + filename = instance.repo_filename('pkg_name', 'pkg_version') + correct = 'pl-pkg_name-pkg_version-amazon-2023-x86_64.repo' + expect(filename).to be === correct + end + it 'builds the filename correctly for debian-based platforms' do @platform = 'debian-8-x86_64' filename = instance.repo_filename( 'pkg_name', 'pkg_version10' ) correct = 'pl-pkg_name-pkg_version10-jessie.list' expect( filename ).to be === correct