From 1e8f42ae51d4960e958c2deb6670d116639ea9e0 Mon Sep 17 00:00:00 2001 From: Abhijit Date: Wed, 3 Aug 2022 09:38:29 +0530 Subject: [PATCH] Rectified Conformance Test Name Generation --- conformance/utils/http/http.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/conformance/utils/http/http.go b/conformance/utils/http/http.go index e57379deb3..ff77d80439 100644 --- a/conformance/utils/http/http.go +++ b/conformance/utils/http/http.go @@ -42,7 +42,7 @@ type ExpectedResponse struct { Namespace string // User Given TestCase name - TestCaseName string + UsrTestCaseName string } // Request can be used as both the request to make and a means to verify @@ -236,9 +236,9 @@ func CompareRequest(cReq *roundtripper.CapturedRequest, cRes *roundtripper.Captu // Get User-defined test case name or generate from expected response to a given request. func (er *ExpectedResponse) GetTestCaseName(i int) string { - /* If TestCase name is provided then use that or else generate one */ - if er.TestCaseName != "" { - return er.TestCaseName + // If TestCase name is provided then use that or else generate one. + if er.UsrTestCaseName != "" { + return er.UsrTestCaseName } headerStr := ""