From dcfa004dee2aabd9802b1d294ef5cfe076765524 Mon Sep 17 00:00:00 2001 From: Gnanakeethan Balasubramaniam Date: Tue, 10 Oct 2023 10:32:54 +0530 Subject: [PATCH] Compat with the Cloud instance metadata model Signed-off-by: Gnanakeethan Balasubramaniam --- src/lib/tdp-finder/index.test.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/lib/tdp-finder/index.test.ts b/src/lib/tdp-finder/index.test.ts index a0c51832c..6b47a1d3d 100644 --- a/src/lib/tdp-finder/index.test.ts +++ b/src/lib/tdp-finder/index.test.ts @@ -19,6 +19,18 @@ describe('tdp-finder:configure test', () => { tdp: 6.0, }, ]); + await expect( + model.calculate([ + { + 'physical-processor': 'Intel Xeon E5-2676 v3', + }, + ]) + ).resolves.toStrictEqual([ + { + 'physical-processor': 'Intel Xeon E5-2676 v3', + tdp: 120.0, + }, + ]); await expect( model.calculate([ {