Skip to content

Commit

Permalink
Merge pull request #1851 from h0tw1r3/backport-ubuntu-noble
Browse files Browse the repository at this point in the history
add Ubuntu 24.04 noble codename
  • Loading branch information
h0tw1r3 authored Mar 13, 2024
2 parents abd5b30 + 52eab66 commit 73424bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/beaker/platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class Platform < String
"jessie" => "8",
"wheezy" => "7",
"squeeze" => "6", },
:ubuntu => { "jammy" => "2204",
:ubuntu => { "noble" => "2404",
"jammy" => "2204",
"focal" => "2004",
"eoan" => "1910",
"disco" => "1904",
Expand Down
5 changes: 5 additions & 0 deletions spec/beaker/platform_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ module Beaker
expect( platform.with_version_codename ).to be === 'debian-squeeze-xxx'
end

it "can convert ubuntu-2404-xxx to ubuntu-noble-xxx" do
@name = 'ubuntu-2404-xxx'
expect(platform.with_version_codename).to be === 'ubuntu-noble-xxx'
end

it "can convert ubuntu-2204-xxx to ubuntu-jammy-xxx" do
@name = 'ubuntu-2204-xxx'
expect( platform.with_version_codename ).to be === 'ubuntu-jammy-xxx'
Expand Down

0 comments on commit 73424bd

Please sign in to comment.