Skip to content

Commit

Permalink
(PA-5568) Added platform for Amazon Linux 2023 for x86_64 & aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
span786 committed Oct 26, 2023
1 parent 8adf33f commit 5be4450
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions lib/packaging/platforms.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ module Platforms
},
},

'amazon' => {
'2023' => {
architectures: ['x86_64', 'aarch64'],
source_architecture: 'SRPMS',
package_format: 'rpm',
source_package_formats: ['src.rpm'],
signature_format: 'v4',
repo: true,
},
},

'debian' => {
'10' => {
codename: 'buster',
Expand Down
4 changes: 2 additions & 2 deletions spec/lib/packaging/platforms_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
describe '#by_package_format' do
it 'should return an array of platforms that use a given format' do
deb_platforms = ['debian', 'ubuntu']
rpm_platforms = ['aix', 'el', 'fedora', 'redhatfips', 'sles']
rpm_platforms = ['aix', 'amazon', 'el', 'fedora', 'redhatfips', 'sles']
expect(Pkg::Platforms.by_package_format('deb')).to match_array(deb_platforms)
expect(Pkg::Platforms.by_package_format('rpm')).to match_array(rpm_platforms)
end
Expand All @@ -19,7 +19,7 @@

describe '#supported_platforms' do
it 'should return all supported platforms' do
platforms = ['aix', 'debian', 'el', 'fedora', 'osx', 'redhatfips', 'sles', 'solaris', 'ubuntu', 'windows', 'windowsfips']
platforms = ['aix', 'amazon', 'debian', 'el', 'fedora', 'osx', 'redhatfips', 'sles', 'solaris', 'ubuntu', 'windows', 'windowsfips']
expect(Pkg::Platforms.supported_platforms).to match_array(platforms)
end
end
Expand Down

0 comments on commit 5be4450

Please sign in to comment.