-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
47 lines (36 loc) · 1.36 KB
/
test.sh
File metadata and controls
47 lines (36 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
http -v POST localhost:5000/sign-up name=임용택1 email=teang19951@ajou.ac.kr
echo "First user signed in."
sleep 1
http -v POST localhost:5000/sign-up name=임용택2 email=teang19952@ajou.ac.kr
echo "Second user signed in."
sleep 1
http -v POST localhost:5000/sign-up name=임용택3 email=teang19953@ajou.ac.kr
echo "Third user signed in."
sleep 1
http -v POST localhost:5000/sign-up name=임용택4 email=teang19954@ajou.ac.kr
echo "Fourth user signed in."
sleep 1
http -v POST localhost:5000/tweet id:=1 tweet="My First Tweet"
echo "user1 tweeted."
sleep 1
http -v POST localhost:5000/tweet id:=5 tweet="My First Tweet -> will raise error"
echo "user5 tried to tweet, but user5 not exists so it raise error."
sleep 1
http -v POST localhost:5000/follow id:=1 follow:=2
echo "user1 followed user2"
sleep 1
http -v POST localhost:5000/follow id:=1 follow:=5
echo "user1 followed user5 but user5 not exists so it raise error."
sleep 1
http -v POST localhost:5000/follow id:=5 follow:=1
echo "user5 tried to unfollow user1 but user5 not exists so it raise error."
sleep 1
http -v POST localhost:5000/follow id:=1 follow:=5
echo "user1 tried to unfollow user5 but user5 not exists so it raise error."
sleep 1
http -v POST localhost:5000/unfollow id:=1 unfollow:=2
echo "user1 unfollowed user2."
sleep 1
http -v GET localhost:5000/timeline/1
echo "Get user1's timeline"
sleep 1