Skip to content

Commit

Permalink
Rectified Conformance Test Name Generation
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijit-dev82 committed Aug 3, 2022
1 parent 3f40ef7 commit 1e8f42a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions conformance/utils/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 := ""
Expand Down

0 comments on commit 1e8f42a

Please sign in to comment.