From d0888e2a4c58c93f729233d7640391de484a3a61 Mon Sep 17 00:00:00 2001 From: Matteo Gastaldello Date: Fri, 17 Apr 2026 18:21:00 +0200 Subject: [PATCH] fix: update expected response body in TestResourcesHandler --- internal/handlers/resources/get/resources_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/handlers/resources/get/resources_test.go b/internal/handlers/resources/get/resources_test.go index 92eb081..040d9fa 100644 --- a/internal/handlers/resources/get/resources_test.go +++ b/internal/handlers/resources/get/resources_test.go @@ -98,7 +98,7 @@ func TestResourcesHandler(t *testing.T) { compositionDefinition: "focus.yaml", composition: "focus.yaml", expectedStatus: http.StatusOK, - expectedBody: `[{"group":"","version":"apiextensions.k8s.io","resource":"v1","name":"customresourcedefinitions","namespace":""},{"group":"finops.krateo.io","version":"v1alpha1","resource":"datapresentationazures","name":"focus-1-focus-data-presentation-azure","namespace":"krateo-system"},{"group":"finops.krateo.io","version":"v1alpha1","resource":"datapresentationazures","name":"focus-1-focus-data-presentation-azure","namespace":"krateo-system"}]`, + expectedBody: `[{"group":"finops.krateo.io","version":"v1alpha1","resource":"datapresentationazures","name":"focus-1-focus-data-presentation-azure","namespace":"krateo-system"},{"group":"finops.krateo.io","version":"v1alpha1","resource":"datapresentationazures","name":"focus-1-focus-data-presentation-azure","namespace":"krateo-system"}]`, }, }