-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo_usecase_run.sh
34 lines (27 loc) · 3.88 KB
/
demo_usecase_run.sh
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
#!/bin/sh
# Description: This file contains series of RPC calls that test Interview Scheduler application
# resetting dbs
curl -d '{}' -H "Content-Type: application/json" -X POST http://localhost:5000/reset_scheduler
# sending schedules choices of candidate 1
curl -d '{"name":"Candidate 1", "email":"[email protected]", "day": "Monday", "start_time": "12:30", "end_time": "14:30"}' -H "Content-Type: application/json" -X POST http://localhost:5000/candidate_schedule
curl -d '{"name":"Candidate 1", "email":"[email protected]", "day": "Monday", "start_time": "14:00", "end_time": "15:00"}' -H "Content-Type: application/json" -X POST http://localhost:5000/candidate_schedule
curl -d '{"name":"Candidate 1", "email":"[email protected]", "day": "Tuesday", "start_time": "10:00", "end_time": "12:00"}' -H "Content-Type: application/json" -X POST http://localhost:5000/candidate_schedule
curl -d '{"name":"Candidate 1", "email":"[email protected]", "day": "Tuesday", "start_time": "14:00", "end_time": "15:00"}' -H "Content-Type: application/json" -X POST http://localhost:5000/candidate_schedule
# sending schedules choices of candidate 2
curl -d '{"name":"Candidate 2", "email":"[email protected]", "day": "Tuesday", "start_time": "12:30", "end_time": "14:00"}' -H "Content-Type: application/json" -X POST http://localhost:5000/candidate_schedule
curl -d '{"name":"Candidate 2", "email":"[email protected]", "day": "Tuesday", "start_time": "14:00", "end_time": "16:00"}' -H "Content-Type: application/json" -X POST http://localhost:5000/candidate_schedule
curl -d '{"name":"Candidate 2", "email":"[email protected]", "day": "Wednesday", "start_time": "10:00", "end_time": "12:00"}' -H "Content-Type: application/json" -X POST http://localhost:5000/candidate_schedule
curl -d '{"name":"Candidate 2", "email":"[email protected]", "day": "Wednesday", "start_time": "14:00", "end_time": "15:00"}' -H "Content-Type: application/json" -X POST http://localhost:5000/candidate_schedule
# sending schedules choices of interviewer 1
curl -d '{"name":"Emp 1", "email":"[email protected]", "day": "Monday", "start_time": "10:00", "end_time": "15:00"}' -H "Content-Type: application/json" -X POST http://localhost:5000/emp_schedule
curl -d '{"name":"Emp 1", "email":"[email protected]", "day": "Monday", "start_time": "18:00", "end_time": "20:00"}' -H "Content-Type: application/json" -X POST http://localhost:5000/emp_schedule
curl -d '{"name":"Emp 1", "email":"[email protected]", "day": "Thursday", "start_time": "10:00", "end_time": "11:00"}' -H "Content-Type: application/json" -X POST http://localhost:5000/emp_schedule
curl -d '{"name":"Emp 1", "email":"[email protected]", "day": "Thursday", "start_time": "13:00", "end_time": "14:00"}' -H "Content-Type: application/json" -X POST http://localhost:5000/emp_schedule
# sending schedules choices of interviewer 2
curl -d '{"name":"Emp 2", "email":"[email protected]", "day": "Monday", "start_time": "12:30", "end_time": "14:30"}' -H "Content-Type: application/json" -X POST http://localhost:5000/emp_schedule
curl -d '{"name":"Emp 2", "email":"[email protected]", "day": "Monday", "start_time": "18:00", "end_time": "20:00"}' -H "Content-Type: application/json" -X POST http://localhost:5000/emp_schedule
curl -d '{"name":"Emp 2", "email":"[email protected]", "day": "Friday", "start_time": "20:00", "end_time": "22:00"}' -H "Content-Type: application/json" -X POST http://localhost:5000/emp_schedule
curl -d '{"name":"Emp 2", "email":"[email protected]", "day": "Friday", "start_time": "00:00", "end_time": "02:00"}' -H "Content-Type: application/json" -X POST http://localhost:5000/emp_schedule
# calculating interview schedule time
curl -d '{"candidate_email": "[email protected]", "interviewers_email": "[email protected], [email protected]"}' -H "Content-Type: application/json" -X POST http://localhost:5000/schedule_interview
curl -d '{"candidate_email": "[email protected]", "interviewers_email": "[email protected], [email protected]"}' -H "Content-Type: application/json" -X POST http://localhost:5000/schedule_interview