diff options
Diffstat (limited to 'backend/tests')
-rw-r--r-- | backend/tests/product/chair.json | 6 | ||||
-rw-r--r-- | backend/tests/product/dumb_sofa.json | 4 | ||||
-rw-r--r-- | backend/tests/product/recliner.json | 8 | ||||
-rw-r--r-- | backend/tests/product/single_chair.json | 10 | ||||
-rw-r--r-- | backend/tests/product/smart_sofa.json | 6 | ||||
-rw-r--r-- | backend/tests/requests.txt | 2 |
6 files changed, 24 insertions, 12 deletions
diff --git a/backend/tests/product/chair.json b/backend/tests/product/chair.json index bb13c8b..0564d01 100644 --- a/backend/tests/product/chair.json +++ b/backend/tests/product/chair.json | |||
@@ -1,6 +1,8 @@ | |||
1 | { | 1 | { |
2 | "name": "Urban Ladder Teak Chair", | 2 | "name": "Teak Chair", |
3 | "kind": "Chair", | 3 | "kind": "Chair", |
4 | "price": 3500, | 4 | "price": 3500, |
5 | "description": "Sleek, modern chair for offices and workplaces" | 5 | "description": "High quality teak chair ideal for casual use.", |
6 | "src": "https://poly.googleusercontent.com/downloads/c/fp/1607083617515204/7Jl72KgiRl-/2lfpoCUD7hi/WoodChair_01(1).gltf", | ||
7 | "ios_src": "https://poly.googleusercontent.com/downloads/c/fp/1607083617515204/7Jl72KgiRl-/40_ivv2I3M2/WoodChair_01(1).usdz" | ||
6 | } | 8 | } |
diff --git a/backend/tests/product/dumb_sofa.json b/backend/tests/product/dumb_sofa.json deleted file mode 100644 index 2b09a58..0000000 --- a/backend/tests/product/dumb_sofa.json +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | { | ||
2 | "name": "Home Town Leather Sofa", | ||
3 | "price": 5400 | ||
4 | } | ||
diff --git a/backend/tests/product/recliner.json b/backend/tests/product/recliner.json new file mode 100644 index 0000000..f390351 --- /dev/null +++ b/backend/tests/product/recliner.json | |||
@@ -0,0 +1,8 @@ | |||
1 | { | ||
2 | "name": "Leather Recliner", | ||
3 | "kind": "Sofa", | ||
4 | "price": 12500, | ||
5 | "description": "Fully mechanical recliner, with leg rest and 120 degree recline angle.", | ||
6 | "src": "https://poly.googleusercontent.com/downloads/c/fp/1605210857124678/eBafYyUfz60/5UrSr1r5w8r/model.gltf", | ||
7 | "ios_src": "https://poly.googleusercontent.com/downloads/c/fp/1605210857124678/eBafYyUfz60/1WxZLhYggZm/model.usdz" | ||
8 | } | ||
diff --git a/backend/tests/product/single_chair.json b/backend/tests/product/single_chair.json new file mode 100644 index 0000000..5990985 --- /dev/null +++ b/backend/tests/product/single_chair.json | |||
@@ -0,0 +1,10 @@ | |||
1 | { | ||
2 | "name": "Single Cushioned Chair", | ||
3 | "kind": "Chair", | ||
4 | "price": 8200, | ||
5 | "description": "Casual single chair with cushioned bottom and back. Contains strudy steel frame and rubber bottom legs.", | ||
6 | "src": "https://poly.googleusercontent.com/downloads/c/fp/1606863385683627/4-etwKK4ifB/c29G_sc6wH8/KEYSHOT9PRO_UV6D_single%20chair-DIM.gltf", | ||
7 | "ios_src": "https://poly.googleusercontent.com/downloads/c/fp/1606863385683627/4-etwKK4ifB/7QDBFnQJcRu/KEYSHOT9PRO_UV6D_single%20chair-DIM.usdz" | ||
8 | } | ||
9 | |||
10 | |||
diff --git a/backend/tests/product/smart_sofa.json b/backend/tests/product/smart_sofa.json deleted file mode 100644 index 5d7f7d4..0000000 --- a/backend/tests/product/smart_sofa.json +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | { | ||
2 | "name": "Home Town Leather Sofa", | ||
3 | "kind": "Sofa", | ||
4 | "description": "Comfortable, authentic leather, wooden frame sofa, for living rooms", | ||
5 | "price": 5400 | ||
6 | } | ||
diff --git a/backend/tests/requests.txt b/backend/tests/requests.txt index 7e2ca5c..0ce1cb9 100644 --- a/backend/tests/requests.txt +++ b/backend/tests/requests.txt | |||
@@ -19,3 +19,5 @@ http POST :7878/cart/remove Cookie: product_id:=1 | |||
19 | http POST :7878/rating/add Cookie: product_id:=1 stars:=3 comment_text=Very good functional chair | 19 | http POST :7878/rating/add Cookie: product_id:=1 stars:=3 comment_text=Very good functional chair |
20 | 20 | ||
21 | http :7878/product/reviews/1 | 21 | http :7878/product/reviews/1 |
22 | |||
23 | http :7878/transaction/list Cookie: | ||