Optum / mockiato

A web-based platform for API virtualization
Apache License 2.0
24 stars 9 forks source link

Duplicate Validation check is not working for multiple RR pairs #468

Closed pkotha5 closed 5 years ago

pkotha5 commented 5 years ago

1.Create first RR Pair ( request payload :blank,response payload :"test1") for the POST method 2.Create second RR pair ( request payload :"test1",response payload :"test1") for the POST method 3.Create third RR pair ( request payload :"blank" ,response payload :"test2") for the POST method 4.Create fourth RR pair ( request payload :"test2" ,response payload :"test2") for the POST method 5.Click on publish , It's displaying "duplicate validation error" then click on "Back" 6.Delete third RR pair and Click on "add" to add another RR Pair 7.Create another RR Pair ( request payload :"blank" ,response payload :"test2") 8.Click on "update"

Actual Result: Service creation successfully for the first time

Pradeep298 commented 5 years ago

@jhymasree I saw the below fix is done in "myMenuAppController" i.e; for service create scenario. if( servicevo.rawpairs[i].requestpayload == '' || servicevo.rawpairs[i].requestpayload === null){

The same code is there in "showDraftController" & "updateController". Can you check if it is required to fix there also.

Pradeep298 commented 5 years ago

This is done with issue458_respDelay. We can close this now.

pkotha5 commented 5 years ago

It's not working