From 0223c87ee7f8b59eb9f48a568b6dfd0b829a1d5a Mon Sep 17 00:00:00 2001 From: John McCrae Date: Tue, 17 Oct 2023 10:41:51 -0700 Subject: [PATCH 1/2] Updated the metadata versions Signed-off-by: John McCrae --- lib/ohai/mixin/azure_metadata.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ohai/mixin/azure_metadata.rb b/lib/ohai/mixin/azure_metadata.rb index 12a8ab6b0..26f412137 100644 --- a/lib/ohai/mixin/azure_metadata.rb +++ b/lib/ohai/mixin/azure_metadata.rb @@ -41,7 +41,8 @@ module AzureMetadata AZURE_SUPPORTED_VERSIONS ||= %w{ 2018-10-01 2019-02-01 2019-03-11 2019-04-30 2019-06-01 2019-06-04 2019-08-01 2019-08-15 2019-11-01 2020-06-01 2020-07-15 2020-09-01 2020-10-01 2020-12-01 2021-01-01 - 2021-02-01 2021-03-01 2021-05-01 2021-10-01 }.freeze + 2021-02-01 2021-03-01 2021-05-01 2021-10-01 2021-11-01 + 2021-11-15 2021-12-13 }.freeze def best_api_version @api_version ||= begin From 2e5ce224724a421b83e6a6a6294c471c2db4daa6 Mon Sep 17 00:00:00 2001 From: John McCrae Date: Tue, 17 Oct 2023 10:55:37 -0700 Subject: [PATCH 2/2] Updated the metadata versions and this time, the tests too Signed-off-by: John McCrae --- spec/unit/mixin/azure_metadata_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/unit/mixin/azure_metadata_spec.rb b/spec/unit/mixin/azure_metadata_spec.rb index 0a3c0455c..c98e4cf46 100644 --- a/spec/unit/mixin/azure_metadata_spec.rb +++ b/spec/unit/mixin/azure_metadata_spec.rb @@ -66,7 +66,7 @@ let(:response) { double("Net::HTTP Response", code: "404") } it "returns the most recent version we know of" do - expect(mixin.best_api_version).to eq("2021-10-01") + expect(mixin.best_api_version).to eq("2021-12-13") end end