mycloudnexus / kraken

Kraken Platform
Apache License 2.0
7 stars 3 forks source link

[FEATURE] [Quote-Add] Eline-"productRelationship" - id check #264

Open cheng0504 opened 1 day ago

cheng0504 commented 1 day ago

productRelationship[0].id and productRelationship[1].id 422 check

  1. id = "12345": pm.test("Check 'propertyPath' is '/quoteItem/0/product/productRelationship/0/id'", function () { var jsonData = pm.response.json(); pm.expect(jsonData[0].propertyPath).to.eql("/quoteItem/0/product/productRelationship/0/id"); });
  2. id = "": pm.test("Check 'reason' is 'quoteItem[0].product.productRelationship[0].id must not be blank", function () { pm.expect(jsonData.reason).to.eql("quoteItem[0].product.productRelationship[0].id must not be blank"); });
  3. id = null pm.test("Check 'reason' is 'quoteItem[0].product.productRelationship[0].id must not be blank", function () { pm.expect(jsonData.reason).to.eql("quoteItem[0].product.productRelationship[0].id must not be blank"); });
cheng0504 commented 1 day ago

check with amartus why they have this check?