From 112900d11a3e35d6faf0c3ea5e2a37dd747932f3 Mon Sep 17 00:00:00 2001
From: shreyvishal <shreya.vishal@eminds.ai>
Date: Fri, 26 Apr 2024 15:43:43 +0530
Subject: [PATCH] Added: Test cases for DSEP

---
 .../response-from-ps/search.response.json     | 27 +--------------
 .../response-to-ui/resopnse.cancel.json       |  5 +++
 .../response-to-ui/response.confirm.json      | 27 +++++++++------
 .../retail/response-to-ui/response.init.json  |  5 +++
 .../response-to-ui/response.search.json       | 34 -------------------
 .../response-to-ui/response.select.json       |  8 ++++-
 .../response-to-ui/response.status.json       |  5 +++
 7 files changed, 40 insertions(+), 71 deletions(-)

diff --git a/src/test/retail/response-from-ps/search.response.json b/src/test/retail/response-from-ps/search.response.json
index 881ecaf..5bdb97b 100644
--- a/src/test/retail/response-from-ps/search.response.json
+++ b/src/test/retail/response-from-ps/search.response.json
@@ -84,32 +84,7 @@
                   "recommended": true,
                   "location_id": "./retail.kirana/ind.blr/1@tourism-bpp-infra2.becknprotocol.io.provider_location",
                   "category_id": "c1",
-                  "fulfillment_id": "f1",
-                  "tags": [
-                    {
-                      "descriptor": { "name": "item-cataegory" },
-                      "list": [
-                        {
-                          "descriptor": { "name": "category" },
-                          "value": "retail"
-                        }
-                      ],
-                      "display": true
-                    },
-                    {
-                      "descriptor": { "name": "item-properties" },
-                      "list": [
-                        {
-                          "descriptor": { "name": "waterbottle" },
-                          "value": "y"
-                        },
-                        { "descriptor": { "name": "Trekking" }, "value": "y" },
-                        { "descriptor": { "name": "Sipper" }, "value": "y" },
-                        { "descriptor": { "name": "Hiking" }, "value": "y" }
-                      ],
-                      "display": true
-                    }
-                  ]
+                  "fulfillment_id": "f1"
                 }
               ]
             }
diff --git a/src/test/retail/response-to-ui/resopnse.cancel.json b/src/test/retail/response-to-ui/resopnse.cancel.json
index f2d33d5..5d8b5f3 100644
--- a/src/test/retail/response-to-ui/resopnse.cancel.json
+++ b/src/test/retail/response-to-ui/resopnse.cancel.json
@@ -37,6 +37,11 @@
               "name": "Isothermal Stainless Steel Hiking Flask MH500 Yellow - Water bottle",
               "short_desc": "InstaCuppa Stainless Steel Thermos Flask Water Bottle with Sports Sipper Lid, Double Walled Vacuum Insulation",
               "long_desc": "<div> <ul> <li>ULTRA MODERN DESIGN - Our thermos bottle is crafted with a unique and modern design. Gone are the days of old and boring flasks. Guaranteed to impress your colleagues, friends & family.</li> <li>ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!</li> <li>ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..</li> <li>LEAK-PROOF and ECO-FRIENDLY – Remove, and clean, the large, screw on lid provides faster access to water inside and won’t spill a drop even when it’s tipped upside or put in your gym bag.</li> <li>The distress quilted jacket is a versatile fashion choice you can wear on any occasion. A style essential piece for Women which will reveal your strong sense of personality</li> </ul> <div> <p><b>Product Details</b></p> <ul> <li>Advanced Temperature Retention.This thermos water bottle ensures your beverages will remain hot or cold for a long time.Hot for up to 12 hours.Cold for up to 24 hours.</li> <li>Retains Original Flavors.Vacuum insulation ensures this travel thermos water bottle is airtight and retains the original flavor of your beverages.Also, this bottle is B.P.A Free.</li> <li>Premium Quality Materials.This stylish bottle is a double-walled vacuum insulated and made from premium 304-grade stainless steel - which makes this flask bottle.</li> </ul> </div>",
+              "images": [
+                {
+                  "url": "https://tourism-bpp-infra2.becknprotocol.io/attachments/view/253.jpg"
+                }
+              ],
               "price": {
                 "listed_value": "1200.0",
                 "currency": "INR",
diff --git a/src/test/retail/response-to-ui/response.confirm.json b/src/test/retail/response-to-ui/response.confirm.json
index 5dc4693..25319bc 100644
--- a/src/test/retail/response-to-ui/response.confirm.json
+++ b/src/test/retail/response-to-ui/response.confirm.json
@@ -30,17 +30,24 @@
           "id": "./retail.kirana/ind.blr/33@tourism-bpp-infra2.becknprotocol.io.provider",
           "name": "Venky.Mahadevan@Bazaar"
         },
-        "items": {
-          "id": "./retail.kirana/ind.blr/247@tourism-bpp-infra2.becknprotocol.io.item",
-          "name": "Isothermal Stainless Steel Hiking Flask MH500 Yellow - Water bottle",
-          "short_desc": "InstaCuppa Stainless Steel Thermos Flask Water Bottle with Sports Sipper Lid, Double Walled Vacuum Insulation",
-          "long_desc": "<div> <ul> <li>ULTRA MODERN DESIGN - Our thermos bottle is crafted with a unique and modern design. Gone are the days of old and boring flasks. Guaranteed to impress your colleagues, friends & family.</li> <li>ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!</li> <li>ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..</li> <li>LEAK-PROOF and ECO-FRIENDLY – Remove, and clean, the large, screw on lid provides faster access to water inside and won’t spill a drop even when it’s tipped upside or put in your gym bag.</li> <li>The distress quilted jacket is a versatile fashion choice you can wear on any occasion. A style essential piece for Women which will reveal your strong sense of personality</li> </ul> <div> <p><b>Product Details</b></p> <ul> <li>Advanced Temperature Retention.This thermos water bottle ensures your beverages will remain hot or cold for a long time.Hot for up to 12 hours.Cold for up to 24 hours.</li> <li>Retains Original Flavors.Vacuum insulation ensures this travel thermos water bottle is airtight and retains the original flavor of your beverages.Also, this bottle is B.P.A Free.</li> <li>Premium Quality Materials.This stylish bottle is a double-walled vacuum insulated and made from premium 304-grade stainless steel - which makes this flask bottle.</li> </ul> </div>",
-          "price": {
-            "listed_value": "1200.0",
-            "currency": "INR",
-            "value": "1200.0"
+        "items": [
+          {
+            "id": "./retail.kirana/ind.blr/247@tourism-bpp-infra2.becknprotocol.io.item",
+            "name": "Isothermal Stainless Steel Hiking Flask MH500 Yellow - Water bottle",
+            "short_desc": "InstaCuppa Stainless Steel Thermos Flask Water Bottle with Sports Sipper Lid, Double Walled Vacuum Insulation",
+            "long_desc": "<div> <ul> <li>ULTRA MODERN DESIGN - Our thermos bottle is crafted with a unique and modern design. Gone are the days of old and boring flasks. Guaranteed to impress your colleagues, friends & family.</li> <li>ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!</li> <li>ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..</li> <li>LEAK-PROOF and ECO-FRIENDLY – Remove, and clean, the large, screw on lid provides faster access to water inside and won’t spill a drop even when it’s tipped upside or put in your gym bag.</li> <li>The distress quilted jacket is a versatile fashion choice you can wear on any occasion. A style essential piece for Women which will reveal your strong sense of personality</li> </ul> <div> <p><b>Product Details</b></p> <ul> <li>Advanced Temperature Retention.This thermos water bottle ensures your beverages will remain hot or cold for a long time.Hot for up to 12 hours.Cold for up to 24 hours.</li> <li>Retains Original Flavors.Vacuum insulation ensures this travel thermos water bottle is airtight and retains the original flavor of your beverages.Also, this bottle is B.P.A Free.</li> <li>Premium Quality Materials.This stylish bottle is a double-walled vacuum insulated and made from premium 304-grade stainless steel - which makes this flask bottle.</li> </ul> </div>",
+            "images": [
+              {
+                "url": "https://tourism-bpp-infra2.becknprotocol.io/attachments/view/253.jpg"
+              }
+            ],
+            "price": {
+              "listed_value": "1200.0",
+              "currency": "INR",
+              "value": "1200.0"
+            }
           }
-        },
+        ],
         "fulfillments": [
           {
             "type": "Delivery",
diff --git a/src/test/retail/response-to-ui/response.init.json b/src/test/retail/response-to-ui/response.init.json
index 1d1735a..a9da78b 100644
--- a/src/test/retail/response-to-ui/response.init.json
+++ b/src/test/retail/response-to-ui/response.init.json
@@ -37,6 +37,11 @@
               "name": "Isothermal Stainless Steel Hiking Flask MH500 Yellow - Water bottle",
               "short_desc": "InstaCuppa Stainless Steel Thermos Flask Water Bottle with Sports Sipper Lid, Double Walled Vacuum Insulation",
               "long_desc": "<div> <ul> <li>ULTRA MODERN DESIGN - Our thermos bottle is crafted with a unique and modern design. Gone are the days of old and boring flasks. Guaranteed to impress your colleagues, friends & family.</li> <li>ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!</li> <li>ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..</li> <li>LEAK-PROOF and ECO-FRIENDLY – Remove, and clean, the large, screw on lid provides faster access to water inside and won’t spill a drop even when it’s tipped upside or put in your gym bag.</li> <li>The distress quilted jacket is a versatile fashion choice you can wear on any occasion. A style essential piece for Women which will reveal your strong sense of personality</li> </ul> <div> <p><b>Product Details</b></p> <ul> <li>Advanced Temperature Retention.This thermos water bottle ensures your beverages will remain hot or cold for a long time.Hot for up to 12 hours.Cold for up to 24 hours.</li> <li>Retains Original Flavors.Vacuum insulation ensures this travel thermos water bottle is airtight and retains the original flavor of your beverages.Also, this bottle is B.P.A Free.</li> <li>Premium Quality Materials.This stylish bottle is a double-walled vacuum insulated and made from premium 304-grade stainless steel - which makes this flask bottle.</li> </ul> </div>",
+              "images": [
+                {
+                  "url": "https://tourism-bpp-infra2.becknprotocol.io/attachments/view/253.jpg"
+                }
+              ],
               "price": {
                 "listed_value": "1200.0",
                 "currency": "INR",
diff --git a/src/test/retail/response-to-ui/response.search.json b/src/test/retail/response-to-ui/response.search.json
index c3b1a1c..473f172 100644
--- a/src/test/retail/response-to-ui/response.search.json
+++ b/src/test/retail/response-to-ui/response.search.json
@@ -50,40 +50,6 @@
                   {
                     "url": "https://tourism-bpp-infra2.becknprotocol.io/attachments/view/253.jpg"
                   }
-                ],
-                "tags": [
-                  {
-                    "name": "item-cataegory",
-                    "display": true,
-                    "list": [
-                      {
-                        "name": "category",
-                        "value": "retail"
-                      }
-                    ]
-                  },
-                  {
-                    "name": "item-properties",
-                    "display": true,
-                    "list": [
-                      {
-                        "name": "waterbottle",
-                        "value": "y"
-                      },
-                      {
-                        "name": "Trekking",
-                        "value": "y"
-                      },
-                      {
-                        "name": "Sipper",
-                        "value": "y"
-                      },
-                      {
-                        "name": "Hiking",
-                        "value": "y"
-                      }
-                    ]
-                  }
                 ]
               }
             ]
diff --git a/src/test/retail/response-to-ui/response.select.json b/src/test/retail/response-to-ui/response.select.json
index 313e8d9..71176ee 100644
--- a/src/test/retail/response-to-ui/response.select.json
+++ b/src/test/retail/response-to-ui/response.select.json
@@ -59,13 +59,19 @@
               "name": "Isothermal Stainless Steel Hiking Flask MH500 Yellow - Water bottle",
               "short_desc": "InstaCuppa Stainless Steel Thermos Flask Water Bottle with Sports Sipper Lid, Double Walled Vacuum Insulation",
               "long_desc": "<div> <ul> <li>ULTRA MODERN DESIGN - Our thermos bottle is crafted with a unique and modern design. Gone are the days of old and boring flasks. Guaranteed to impress your colleagues, friends & family.</li> <li>ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!</li> <li>ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..</li> <li>LEAK-PROOF and ECO-FRIENDLY – Remove, and clean, the large, screw on lid provides faster access to water inside and won’t spill a drop even when it’s tipped upside or put in your gym bag.</li> <li>The distress quilted jacket is a versatile fashion choice you can wear on any occasion. A style essential piece for Women which will reveal your strong sense of personality</li> </ul> <div> <p><b>Product Details</b></p> <ul> <li>Advanced Temperature Retention.This thermos water bottle ensures your beverages will remain hot or cold for a long time.Hot for up to 12 hours.Cold for up to 24 hours.</li> <li>Retains Original Flavors.Vacuum insulation ensures this travel thermos water bottle is airtight and retains the original flavor of your beverages.Also, this bottle is B.P.A Free.</li> <li>Premium Quality Materials.This stylish bottle is a double-walled vacuum insulated and made from premium 304-grade stainless steel - which makes this flask bottle.</li> </ul> </div>",
+              "images": [
+                {
+                  "url": "https://tourism-bpp-infra2.becknprotocol.io/attachments/view/253.jpg"
+                }
+              ],
               "price": {
                 "listed_value": "1200.0",
                 "currency": "INR",
                 "value": "1200.0"
               }
             }
-          ]
+          ],
+          "fulfillments": [{ "id": "f1", "tracking": false }]
         }
       }
     }
diff --git a/src/test/retail/response-to-ui/response.status.json b/src/test/retail/response-to-ui/response.status.json
index d8c8182..991f6f3 100644
--- a/src/test/retail/response-to-ui/response.status.json
+++ b/src/test/retail/response-to-ui/response.status.json
@@ -33,6 +33,11 @@
               "name": "Isothermal Stainless Steel Hiking Flask MH500 Yellow - Water bottle",
               "short_desc": "InstaCuppa Stainless Steel Thermos Flask Water Bottle with Sports Sipper Lid, Double Walled Vacuum Insulation",
               "long_desc": "<div> <ul> <li>ULTRA MODERN DESIGN - Our thermos bottle is crafted with a unique and modern design. Gone are the days of old and boring flasks. Guaranteed to impress your colleagues, friends & family.</li> <li>ADVANCED TEMPERATURE CONTROL – A double-wall, vacuum-insulated design helps lock in heat for up to 12 hours and cold for up to 24!</li> <li>ELIMINATES CONDENSATION – Offering improved grip and control, these innovative dual-layer bottles offer a slip-resistant surface that’s free of sweat and condensation..</li> <li>LEAK-PROOF and ECO-FRIENDLY – Remove, and clean, the large, screw on lid provides faster access to water inside and won’t spill a drop even when it’s tipped upside or put in your gym bag.</li> <li>The distress quilted jacket is a versatile fashion choice you can wear on any occasion. A style essential piece for Women which will reveal your strong sense of personality</li> </ul> <div> <p><b>Product Details</b></p> <ul> <li>Advanced Temperature Retention.This thermos water bottle ensures your beverages will remain hot or cold for a long time.Hot for up to 12 hours.Cold for up to 24 hours.</li> <li>Retains Original Flavors.Vacuum insulation ensures this travel thermos water bottle is airtight and retains the original flavor of your beverages.Also, this bottle is B.P.A Free.</li> <li>Premium Quality Materials.This stylish bottle is a double-walled vacuum insulated and made from premium 304-grade stainless steel - which makes this flask bottle.</li> </ul> </div>",
+              "images": [
+                {
+                  "url": "https://tourism-bpp-infra2.becknprotocol.io/attachments/view/253.jpg"
+                }
+              ],
               "price": {
                 "listed_value": "1200.0",
                 "currency": "INR",
-- 
GitLab