Skip to content

Commit

Permalink
Merge pull request #1847 from h0tw1r3/add-ubuntu-noble-platform
Browse files Browse the repository at this point in the history
Add Ubuntu 24.04 noble codename
  • Loading branch information
bastelfreak committed Feb 13, 2024
2 parents c61ee38 + 6776d1b commit 56ea1f7
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 @@ -17,7 +17,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 @@ -88,6 +88,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 56ea1f7

Please sign in to comment.