From e52ccf38f5aa73e57b87d1d460139c24e60b5bee Mon Sep 17 00:00:00 2001
From: Zachary Sabourin <zachary.sabourin@eclipse-foundation.org>
Date: Tue, 22 Nov 2022 12:06:23 -0500
Subject: [PATCH] feat: Add response body validation to get calls in testing
 package

Resolves https://gitlab.eclipse.org/eclipsefdn/it/api/eclipsefdn-api-common/-/issues/29
---
 .../testing/templates/RestAssuredTemplates.java                | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testing/src/main/java/org/eclipsefoundation/testing/templates/RestAssuredTemplates.java b/testing/src/main/java/org/eclipsefoundation/testing/templates/RestAssuredTemplates.java
index f234a92c..81973545 100644
--- a/testing/src/main/java/org/eclipsefoundation/testing/templates/RestAssuredTemplates.java
+++ b/testing/src/main/java/org/eclipsefoundation/testing/templates/RestAssuredTemplates.java
@@ -50,7 +50,8 @@ public final class RestAssuredTemplates {
      * GET TESTS
      */
     public static void testGet(EndpointTestCase testCase) {
-        getValidatedResponse(testCase, HttpMethod.GET).statusCode(testCase.getStatusCode());
+        processResponseBody(getValidatedResponse(testCase, HttpMethod.GET).statusCode(testCase.getStatusCode()),
+                testCase.getBodyValidationParams());
     }
 
     public static void testGet_validateSchema(EndpointTestCase testCase) {
-- 
GitLab