From 52eab668fcc1b2e2fc579162ce1970d1766182a0 Mon Sep 17 00:00:00 2001 From: Jeffrey Clark Date: Tue, 13 Feb 2024 09:57:01 -0600 Subject: [PATCH] Add Ubuntu 24.04 noble codename --- lib/beaker/platform.rb | 3 ++- spec/beaker/platform_spec.rb | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/beaker/platform.rb b/lib/beaker/platform.rb index de8531c06..d2f71ac9c 100644 --- a/lib/beaker/platform.rb +++ b/lib/beaker/platform.rb @@ -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", diff --git a/spec/beaker/platform_spec.rb b/spec/beaker/platform_spec.rb index c2d3a5512..4df57cb1c 100644 --- a/spec/beaker/platform_spec.rb +++ b/spec/beaker/platform_spec.rb @@ -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'