diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/product/chair.json (renamed from tests/json_data/chair.json) | 0 | ||||
-rw-r--r-- | tests/product/dumb_sofa.json (renamed from tests/json_data/dumb_sofa.json) | 0 | ||||
-rw-r--r-- | tests/product/smart_sofa.json (renamed from tests/json_data/smart_sofa.json) | 0 | ||||
-rw-r--r-- | tests/requests.txt | 17 | ||||
-rw-r--r-- | tests/users/add_akshay.json | 8 | ||||
-rw-r--r-- | tests/users/add_user.json (renamed from tests/json_data/add_user.json) | 3 |
6 files changed, 27 insertions, 1 deletions
diff --git a/tests/json_data/chair.json b/tests/product/chair.json index bb13c8b..bb13c8b 100644 --- a/tests/json_data/chair.json +++ b/tests/product/chair.json | |||
diff --git a/tests/json_data/dumb_sofa.json b/tests/product/dumb_sofa.json index 2b09a58..2b09a58 100644 --- a/tests/json_data/dumb_sofa.json +++ b/tests/product/dumb_sofa.json | |||
diff --git a/tests/json_data/smart_sofa.json b/tests/product/smart_sofa.json index 5d7f7d4..5d7f7d4 100644 --- a/tests/json_data/smart_sofa.json +++ b/tests/product/smart_sofa.json | |||
diff --git a/tests/requests.txt b/tests/requests.txt new file mode 100644 index 0000000..7e38905 --- /dev/null +++ b/tests/requests.txt | |||
@@ -0,0 +1,17 @@ | |||
1 | http POST :7878/user/login username=akshay password=password | ||
2 | |||
3 | http POST :7878/user/login username=akshay password=nigga | ||
4 | |||
5 | http POST :7878/user/change_password Cookie:user-login=mKT3PRPSKJp/AdsfPCXg3GICmQW2wViUwUKPpsXKp+70ug== old_password=nigga new_password=nigga | ||
6 | |||
7 | http :7878/user/change_password username=akshay password=password | ||
8 | |||
9 | http :7878/product/catalog | ||
10 | |||
11 | http :7878/product/1 | ||
12 | |||
13 | http POST :7878/cart/add Cookie:user-login=mKT3PRPSKJp/AdsfPCXg3GICmQW2wViUwUKPpsXKp+70ug== product_id:=1 | ||
14 | |||
15 | http :7878/cart/items Cookie:user-login=mKT3PRPSKJp/AdsfPCXg3GICmQW2wViUwUKPpsXKp+70ug== | ||
16 | |||
17 | http POST :7878/cart/remove Cookie: product_id:=1 | ||
diff --git a/tests/users/add_akshay.json b/tests/users/add_akshay.json new file mode 100644 index 0000000..1d6c405 --- /dev/null +++ b/tests/users/add_akshay.json | |||
@@ -0,0 +1,8 @@ | |||
1 | |||
2 | { | ||
3 | "username": "Akshay", | ||
4 | "password": "akshay", | ||
5 | "phone_number": "123454234", | ||
6 | "email_id": "[email protected]", | ||
7 | "address": "Rv College of Engineering, Mysuru Road, 560087, Near Metro station" | ||
8 | } | ||
diff --git a/tests/json_data/add_user.json b/tests/users/add_user.json index c7b2c15..1f481e9 100644 --- a/tests/json_data/add_user.json +++ b/tests/users/add_user.json | |||
@@ -2,5 +2,6 @@ | |||
2 | "username": "Ramu Kaka", | 2 | "username": "Ramu Kaka", |
3 | "password": "ramu123", | 3 | "password": "ramu123", |
4 | "phone_number": "123454234", | 4 | "phone_number": "123454234", |
5 | "email_id": "[email protected]" | 5 | "email_id": "[email protected]", |
6 | "address": "RA-602, Purva Riviera" | ||
6 | } | 7 | } |