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 1e8f42a commit 560e9ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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
UsrTestCaseName string
TestCaseName string
}

// Request can be used as both the request to make and a means to verify
Expand Down Expand Up @@ -237,8 +237,8 @@ func CompareRequest(cReq *roundtripper.CapturedRequest, cRes *roundtripper.Captu
func (er *ExpectedResponse) GetTestCaseName(i int) string {

// If TestCase name is provided then use that or else generate one.
if er.UsrTestCaseName != "" {
return er.UsrTestCaseName
if er.TestCaseName != "" {
return er.TestCaseName
}

headerStr := ""
Expand Down

0 comments on commit 560e9ab

Please sign in to comment.